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 %defattr (-, root, bin) 135 %dir %attr (0755, root, bin) %{_bindir} 136 %{_bindir}/* 137 %dir %attr (0755, root, bin) %{_libdir} 138 %{_libdir}/libgthumb.so 139 %{_libdir}/bonobo/servers/GNOME_GThumb.server 140 %{_libdir}/gthumb/modules/lib*.so* 141 %dir %attr (0755, root, sys) %{_datadir} 142 %dir %attr (0755, root, other) %{_datadir}/applications 143 %{_datadir}/applications/* 144 %dir %attr (0755, root, other) %{_datadir}/gnome 145 %{_datadir}/gnome/help/*/C 146 %{_datadir}/gthumb 147 %attr (-, root, other) %{_datadir}/icons 148 %dir %attr(0755, root, bin) %{_mandir} 149 %dir %attr(0755, root, bin) %{_mandir}/* 150 %{_mandir}/*/* 151 152 %if %build_l10n 153 %files l10n 154 %defattr (-, root, bin) 155 %dir %attr (0755, root, sys) %{_datadir} 156 %attr (-, root, other) %{_datadir}/locale 157 %dir %attr (0755, root, other) %{_datadir}/gnome 158 %{_datadir}/gnome/help/gthumb/[a-z][a-z] 159 %endif 160 161 %files root 162 %defattr (-, root, sys) 163 %attr (0755, root, sys) %dir %{_sysconfdir} 164 %{_sysconfdir}/gconf/schemas/gthumb.schemas 165 166 %changelog 167 * Wed May 07 2008 - damien.carbery@sun.com 168 - Remove PERL5LIB setting as it is not necessary. 169 * Thu Jan 3 2008 - laca@sun.com 170 - use gconf-install.script instead of an inline script 171 * Fri Sep 28 2007 - laca@sun.com 172 - delete Nevada X dep 173 * Tue Aug 28 2007 - damien.carbery@sun.com 174 - Update %files with GNOME_GThumb.server as installed by the new tarball. 175 * Tue Apr 24 2007 - laca@sun.com 176 - use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install 177 (CR 6537817) 178 * Tue Apr 24 2007 - laca@sun.com 179 - s/0755/-/ in defattr so that files are not made all executable 180 * Tue Mar 20 2007 - damien.carbery@sun.com 181 - Update %files for new tarball (remove the %{datadir}/application-registry 182 dir). 183 * Mon Mar 14 2007 - laca@sun.com 184 - update postrun scripts to the latest and greatest 185 - delete some unnecessary env variables 186 * Mon Feb 19 2007 - damien.carbery@sun.com 187 - Minor updates for new gthumb tarball. 188 * Wed Oct 11 2006 - laca@sun.com 189 - fix icondir permissions 190 * Fri Jun 2 2006 - laca@sun.com 191 - use post/postun scripts to install schemas into the merged gconf files 192 * Thu May 11 2006 - laca@sun.com 193 - kill -share pkg, remove eog.1 man page. 194 * Mon May 01 2006 - damien.carbery@sun.com 195 - Add %{_datadir}/icons to share package. 196 * Mon Feb 20 2006 - damien.carbery@sun.com 197 - Complete update of Build/Requires after running check-deps.pl script. 198 * Thu Feb 16 2006 - damien.carbery@sun.com 199 - Update Build/Requires after running check-deps.pl script. 200 * Wed Feb 15 2006 - damien.carbery@sun.com 201 - Set PKG_CONFIG_PATH to find libgphoto; Set LDFLAGS to link with libpng. 202 * Sat Jan 28 2006 - damien.carbery@sun.com 203 - Add BuildRequires for '-devel' equivalents of the Requires packages. 204 - Added BuildRequires SUNWgnome-camera-devel for gthumb. 205 * Sat Dec 3 2005 - laca@sun.com 206 - add %post script that runs update-desktop-database 207 * Tue Nov 29 2005 - laca.com 208 - remove javahelp stuff 209 * Mon Oct 03 2005 - damien.carbery@sun.com 210 - Remove unpackaged files. 211 * Sat Dec 18 2004 - damien.carbery@sun.com 212 - Move gthumb to /usr/sfw per ARC decision. 213 * Sun Nov 14 2004 - laca@sun.com 214 - move gthumb to /usr/demo/jds 215 * Sat Oct 02 2004 - laca@sun.com 216 - added %pkgbuild_postprocess 217 * Mon Aug 23 2004 - laca@sun.com 218 - s/SUNWpl5u/SUNWperl584usr/ 219 * Mon Jun 26 2004 shirley.woo@sun.com 220 - change eog.1 permissions to 0755 for Solaris integration error 221 * Sat Jun 26 2004 shirley.woo@sun.com 222 - Changed install location to /usr/... 223 * Wed Jun 2 2004 - takao.fujiwara@sun.com 224 - Added %{_datadir}/locale to install l10n messages 225 * Tue May 18 2004 - laca@sun.com 226 - add sfw to LDFLAGS/CPPFLAGS (patch from Shirley) 227 * Tue May 11 2004 - brian.cameron@sun.com 228 - add %{_datadir}/eog to files share so glade files 229 get installed. This corrects core dumping problem 230 when bringing up preferences dialog. 231 * Tue May 04 2004 - laca@sun.com 232 - add SUNWgnome-camera dependency 233 * Fri Mar 26 2004 - laca@sun.com 234 - add SUNWgnome-file-mgr dependency (for eel) 235 * Wed Mar 24 2004 - brian.cameron@sun.com 236 - Added SGML man page integration 237 * Mon Mar 01 2004 - <laca@sun.com> 238 - fix dependencies 239 - define PERL5LIB 240 - file %files share 241 * Mon Feb 23 2004 - <niall.power@sun.com> 242 - install gconf schemas at the end of the install stage 243