1 # 2 # spec file for package SUNWgnome-img-organizer 3 # 4 # includes module(s): gthumb 5 # 6 # Copyright 2008 Sun Microsystems, Inc. 7 # This file and all modifications and additions to the pristine 8 # package are under the same license as the package itself. 9 # 10 # Owner: jerrytan 11 12 %include Solaris.inc 13 14 %use gthumb = gthumb.spec 15 16 Name: SUNWgnome-img-organizer 17 Summary: GNOME image organizer (gthumb) 18 Version: %{default_pkg_version} 19 SUNW_Copyright: %{name}.copyright 20 SUNW_BaseDir: %{_basedir} 21 BuildRoot: %{_tmppath}/%{name}-%{version}-build 22 23 %include default-depend.inc 24 Requires: SUNWgnome-libs 25 Requires: SUNWgnome-print 26 Requires: SUNWgnome-img-organizer-root 27 Requires: SUNWgnome-file-mgr 28 Requires: SUNWgnome-camera 29 Requires: SUNWgnome-base-libs 30 Requires: SUNWgnome-component 31 Requires: SUNWgnome-config 32 Requires: SUNWgnome-panel 33 Requires: SUNWgnome-vfs 34 Requires: SUNWjpg 35 Requires: SUNWlibexif 36 Requires: SUNWlibms 37 Requires: SUNWlibpopt 38 Requires: SUNWpostrun 39 BuildRequires: SUNWgnome-component-devel 40 BuildRequires: SUNWgnome-config-devel 41 BuildRequires: SUNWgnome-panel-devel 42 BuildRequires: SUNWgnome-vfs-devel 43 BuildRequires: SUNWjpg-devel 44 BuildRequires: SUNWlibexif-devel 45 BuildRequires: SUNWlibpopt-devel 46 BuildRequires: SUNWgnome-file-mgr-devel 47 BuildRequires: SUNWgnome-camera-devel 48 BuildRequires: SUNWgnome-libs-devel 49 BuildRequires: SUNWgnome-print-devel 50 BuildRequires: SUNWgnome-base-libs-devel 51 52 %if %build_l10n 53 %package l10n 54 Summary: %{summary} - l10n files 55 SUNW_BaseDir: %{_basedir} 56 %include default-depend.inc 57 Requires: %{name} 58 %endif 59 60 %package root 61 Summary: %{summary} - / filesystem 62 SUNW_BaseDir: / 63 %include default-depend.inc 64 Requires: SUNWpostrun-root 65 Requires: SUNWgnome-config 66 67 %prep 68 rm -rf %name-%version 69 mkdir %name-%version 70 %gthumb.prep -d %name-%version 71 72 %build 73 export CFLAGS="%optflags" 74 export RPM_OPT_FLAGS="$CFLAGS" 75 export CPPFLAGS="-I/usr/sfw/include" 76 export LDFLAGS="%_ldflags -lm -L/usr/sfw/lib -R/usr/sfw/lib" 77 78 %gthumb.build -d %name-%version 79 80 %install 81 rm -rf $RPM_BUILD_ROOT 82 %gthumb.install -d %name-%version 83 84 %if %build_l10n 85 %else 86 # REMOVE l10n FILES 87 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 88 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* 89 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z]*.omf 90 %endif 91 92 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}(gthumb):$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT/usr} 93 94 %clean 95 rm -rf $RPM_BUILD_ROOT 96 97 %post 98 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 99 echo '/usr/bin/update-desktop-database' 100 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait 101 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 102 echo '/usr/bin/scrollkeeper-update' 103 ) | $BASEDIR/lib/postrun -b -u -c JDS 104 105 %postun 106 test -x $BASEDIR/lib/postrun || exit 0 107 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 108 echo '/usr/bin/update-desktop-database' 109 ) | $BASEDIR/lib/postrun -b -u -c JDS 110 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 111 echo '/usr/bin/scrollkeeper-update' 112 ) | $BASEDIR/lib/postrun -b -u -c JDS 113 114 %post root 115 %include gconf-install.script 116 117 %preun root 118 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 119 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 120 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 121 echo ' exit 0'; 122 echo '}'; 123 echo 'umask 0022'; 124 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 125 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 126 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 127 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 128 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 129 echo 'schemas="$SDIR/gthumb.schemas"'; 130 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 131 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 132 133 %files 134 %doc -d gthumb-%{gthumb.version} README AUTHORS 135 %doc(bzip2) -d gthumb-%{gthumb.version} ChangeLog NEWS doc/ChangeLog po/ChangeLog 136 %dir %attr (0755, root, other) %{_datadir}/doc 137 %defattr (-, root, bin) 138 %dir %attr (0755, root, bin) %{_bindir} 139 %{_bindir}/* 140 %dir %attr (0755, root, bin) %{_libdir} 141 %{_libdir}/libgthumb.so 142 %{_libdir}/bonobo/servers/GNOME_GThumb.server 143 %{_libdir}/gthumb/modules/lib*.so* 144 %dir %attr (0755, root, sys) %{_datadir} 145 %dir %attr (0755, root, other) %{_datadir}/applications 146 %{_datadir}/applications/* 147 %dir %attr (0755, root, other) %{_datadir}/gnome 148 %{_datadir}/gnome/help/*/C 149 %{_datadir}/gthumb 150 %dir %attr(0755, root, other) %{_datadir}/icons 151 %dir %attr(0755, root, other) %{_datadir}/icons/hicolor 152 %dir %attr(0755, root, other) %{_datadir}/icons/hicolor/48x48 153 %dir %attr(0755, root, other) %{_datadir}/icons/hicolor/48x48/apps 154 %{_datadir}/icons/hicolor/48x48/apps/gthumb.png 155 %dir %attr(0755, root, bin) %{_mandir} 156 %dir %attr(0755, root, bin) %{_mandir}/* 157 %{_mandir}/*/* 158 159 %if %build_l10n 160 %files l10n 161 %defattr (-, root, bin) 162 %dir %attr (0755, root, sys) %{_datadir} 163 %attr (-, root, other) %{_datadir}/locale 164 %dir %attr (0755, root, other) %{_datadir}/gnome 165 %{_datadir}/gnome/help/gthumb/[a-z][a-z] 166 %endif 167 168 %files root 169 %defattr (-, root, sys) 170 %attr (0755, root, sys) %dir %{_sysconfdir} 171 %{_sysconfdir}/gconf/schemas/gthumb.schemas 172 173 %changelog 174 * Wed May 07 2008 - damien.carbery@sun.com 175 - Remove PERL5LIB setting as it is not necessary. 176 * Thu Jan 3 2008 - laca@sun.com 177 - use gconf-install.script instead of an inline script 178 * Fri Sep 28 2007 - laca@sun.com 179 - delete Nevada X dep 180 * Tue Aug 28 2007 - damien.carbery@sun.com 181 - Update %files with GNOME_GThumb.server as installed by the new tarball. 182 * Tue Apr 24 2007 - laca@sun.com 183 - use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install 184 (CR 6537817) 185 * Tue Apr 24 2007 - laca@sun.com 186 - s/0755/-/ in defattr so that files are not made all executable 187 * Tue Mar 20 2007 - damien.carbery@sun.com 188 - Update %files for new tarball (remove the %{datadir}/application-registry 189 dir). 190 * Mon Mar 14 2007 - laca@sun.com 191 - update postrun scripts to the latest and greatest 192 - delete some unnecessary env variables 193 * Mon Feb 19 2007 - damien.carbery@sun.com 194 - Minor updates for new gthumb tarball. 195 * Wed Oct 11 2006 - laca@sun.com 196 - fix icondir permissions 197 * Fri Jun 2 2006 - laca@sun.com 198 - use post/postun scripts to install schemas into the merged gconf files 199 * Thu May 11 2006 - laca@sun.com 200 - kill -share pkg, remove eog.1 man page. 201 * Mon May 01 2006 - damien.carbery@sun.com 202 - Add %{_datadir}/icons to share package. 203 * Mon Feb 20 2006 - damien.carbery@sun.com 204 - Complete update of Build/Requires after running check-deps.pl script. 205 * Thu Feb 16 2006 - damien.carbery@sun.com 206 - Update Build/Requires after running check-deps.pl script. 207 * Wed Feb 15 2006 - damien.carbery@sun.com 208 - Set PKG_CONFIG_PATH to find libgphoto; Set LDFLAGS to link with libpng. 209 * Sat Jan 28 2006 - damien.carbery@sun.com 210 - Add BuildRequires for '-devel' equivalents of the Requires packages. 211 - Added BuildRequires SUNWgnome-camera-devel for gthumb. 212 * Sat Dec 3 2005 - laca@sun.com 213 - add %post script that runs update-desktop-database 214 * Tue Nov 29 2005 - laca.com 215 - remove javahelp stuff 216 * Mon Oct 03 2005 - damien.carbery@sun.com 217 - Remove unpackaged files. 218 * Sat Dec 18 2004 - damien.carbery@sun.com 219 - Move gthumb to /usr/sfw per ARC decision. 220 * Sun Nov 14 2004 - laca@sun.com 221 - move gthumb to /usr/demo/jds 222 * Sat Oct 02 2004 - laca@sun.com 223 - added %pkgbuild_postprocess 224 * Mon Aug 23 2004 - laca@sun.com 225 - s/SUNWpl5u/SUNWperl584usr/ 226 * Mon Jun 26 2004 shirley.woo@sun.com 227 - change eog.1 permissions to 0755 for Solaris integration error 228 * Sat Jun 26 2004 shirley.woo@sun.com 229 - Changed install location to /usr/... 230 * Wed Jun 2 2004 - takao.fujiwara@sun.com 231 - Added %{_datadir}/locale to install l10n messages 232 * Tue May 18 2004 - laca@sun.com 233 - add sfw to LDFLAGS/CPPFLAGS (patch from Shirley) 234 * Tue May 11 2004 - brian.cameron@sun.com 235 - add %{_datadir}/eog to files share so glade files 236 get installed. This corrects core dumping problem 237 when bringing up preferences dialog. 238 * Tue May 04 2004 - laca@sun.com 239 - add SUNWgnome-camera dependency 240 * Fri Mar 26 2004 - laca@sun.com 241 - add SUNWgnome-file-mgr dependency (for eel) 242 * Wed Mar 24 2004 - brian.cameron@sun.com 243 - Added SGML man page integration 244 * Mon Mar 01 2004 - <laca@sun.com> 245 - fix dependencies 246 - define PERL5LIB 247 - file %files share 248 * Mon Feb 23 2004 - <niall.power@sun.com> 249 - install gconf schemas at the end of the install stage 250