1 # 2 # spec file for package SUNWgnome-img-viewer 3 # 4 # includes module(s): eog 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: rickju 11 # 12 %include Solaris.inc 13 14 %define eog_bindir /usr/bin 15 %define eog_libdir /usr/lib 16 %define eog_libexecdir /usr/lib 17 18 %use eog = eog.spec 19 20 %define _bindir %{eog_bindir} 21 %define _libexecdir %{eog_libexecdir} 22 %define _libdir %{eog_libdir} 23 24 Name: SUNWgnome-img-viewer 25 Summary: GNOME image viewer 26 Version: %{default_pkg_version} 27 Source: %{name}-manpages-0.1.tar.gz 28 SUNW_BaseDir: %{_basedir} 29 SUNW_Copyright: %{name}.copyright 30 BuildRoot: %{_tmppath}/%{name}-%{version}-build 31 32 %include default-depend.inc 33 Requires: SUNWgnome-libs 34 Requires: SUNWgnome-print 35 Requires: SUNWgnome-img-viewer-root 36 Requires: SUNWgnome-file-mgr 37 Requires: SUNWgnome-camera 38 Requires: SUNWgnome-base-libs 39 Requires: SUNWgnome-component 40 Requires: SUNWgnome-config 41 Requires: SUNWgnome-panel 42 Requires: SUNWgnome-vfs 43 Requires: SUNWjpg 44 Requires: SUNWlibexif 45 Requires: SUNWlibms 46 Requires: SUNWlibpopt 47 Requires: SUNWpostrun 48 Requires: SUNWlcms 49 BuildRequires: SUNWgnome-component-devel 50 BuildRequires: SUNWgnome-config-devel 51 BuildRequires: SUNWgnome-panel-devel 52 BuildRequires: SUNWgnome-vfs-devel 53 BuildRequires: SUNWjpg-devel 54 BuildRequires: SUNWlibexif-devel 55 BuildRequires: SUNWlibpopt-devel 56 BuildRequires: SUNWgnome-file-mgr-devel 57 BuildRequires: SUNWgnome-camera-devel 58 BuildRequires: SUNWgnome-libs-devel 59 BuildRequires: SUNWgnome-print-devel 60 BuildRequires: SUNWgnome-base-libs-devel 61 BuildRequires: SUNWlcms 62 63 %if %build_l10n 64 %package l10n 65 Summary: %{summary} - l10n files 66 SUNW_BaseDir: %{_basedir} 67 %include default-depend.inc 68 Requires: %{name} 69 %endif 70 71 %package root 72 Summary: %{summary} - / filesystem 73 SUNW_BaseDir: / 74 %include default-depend.inc 75 Requires: SUNWpostrun-root 76 Requires: SUNWgnome-config 77 78 %package devel 79 Summary: %{summary} - development files 80 SUNW_BaseDir: %{_basedir} 81 %include default-depend.inc 82 Requires: SUNWgnome-libs 83 Requires: SUNWgnome-print 84 Requires: SUNWgnome-img-viewer-root 85 Requires: SUNWgnome-file-mgr 86 Requires: SUNWgnome-camera 87 Requires: SUNWgnome-base-libs 88 Requires: SUNWgnome-component 89 Requires: SUNWgnome-config 90 Requires: SUNWgnome-panel 91 Requires: SUNWgnome-vfs 92 Requires: SUNWjpg 93 Requires: SUNWlibexif 94 Requires: SUNWlibms 95 Requires: SUNWlibpopt 96 97 %prep 98 rm -rf %name-%version 99 mkdir %name-%version 100 %eog.prep -d %name-%version 101 cd %{_builddir}/%name-%version 102 gzcat %SOURCE0 | tar xf - 103 104 %build 105 export PKG_CONFIG_PATH="%{_pkg_config_path}:/usr/sfw/lib/pkgconfig" 106 export CFLAGS="%optflags -I%{_includedir}" 107 export RPM_OPT_FLAGS="$CFLAGS" 108 export CPPFLAGS="-I/usr/sfw/include" 109 export LDFLAGS="%_ldflags -lm -L/usr/sfw/lib -R/usr/sfw/lib" 110 111 %eog.build -d %name-%version 112 113 %install 114 rm -rf $RPM_BUILD_ROOT 115 %eog.install -d %name-%version 116 117 rm -rf $RPM_BUILD_ROOT%{_mandir} 118 cd %{_builddir}/%name-%version/sun-manpages 119 make install DESTDIR=$RPM_BUILD_ROOT 120 121 chmod 0755 $RPM_BUILD_ROOT%{_mandir}/man1/eog.1 122 123 install -d $RPM_BUILD_ROOT%{eog_libdir}/bonobo/servers 124 125 # Remove *.a and *.la 126 # .a files are no longer installed (2.23.4.1 tarball) 127 #rm $RPM_BUILD_ROOT%{eog_libdir}/eog/plugins/*.a 128 rm $RPM_BUILD_ROOT%{eog_libdir}/eog/plugins/*.la 129 130 # Never install English locales because should support full functions 131 # on English locales as same as Solaris. 132 rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/eog/en_GB 133 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/en_GB 134 rm $RPM_BUILD_ROOT%{_datadir}/omf/eog/eog-en_GB.omf 135 136 %if %build_l10n 137 %else 138 # REMOVE l10n FILES 139 rm -r $RPM_BUILD_ROOT%{_datadir}/locale 140 rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/eog/[a-z]* 141 rm $RPM_BUILD_ROOT%{_datadir}/omf/eog/eog-[a-z][a-z].omf 142 rm $RPM_BUILD_ROOT%{_datadir}/omf/eog/eog-[a-z][a-z]_[A-Z][A-Z].omf 143 %endif 144 # Remove scrollkeeper files. 145 #rm -r $RPM_BUILD_ROOT/var 146 #rm -r $RPM_BUILD_ROOT%{_prefix}/var 147 148 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}(eog):$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 149 150 %clean 151 rm -rf $RPM_BUILD_ROOT 152 153 %post 154 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 155 echo '/usr/bin/update-desktop-database' 156 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait 157 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 158 echo '/usr/bin/scrollkeeper-update' 159 ) | $BASEDIR/lib/postrun -b -u -c JDS 160 161 %postun 162 test -x $BASEDIR/lib/postrun || exit 0 163 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 164 echo '/usr/bin/update-desktop-database' 165 ) | $BASEDIR/lib/postrun -b -u -c JDS 166 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 167 echo '/usr/bin/scrollkeeper-update' 168 ) | $BASEDIR/lib/postrun -b -u -c JDS 169 170 %post root 171 %include gconf-install.script 172 173 %preun root 174 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 175 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 176 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 177 echo ' exit 0'; 178 echo '}'; 179 echo 'umask 0022'; 180 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 181 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 182 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 183 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 184 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 185 echo 'schemas="$SDIR/eog.schemas"'; 186 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 187 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 188 189 %files 190 %defattr (-, root, bin) 191 %dir %attr (0755, root, bin) %{_bindir} 192 %{eog_bindir}/* 193 %dir %attr (0755, root, bin) %{_libdir} 194 %{eog_libdir}/bonobo/servers 195 %{eog_libdir}/eog 196 # %{eog_libdir}/eog-collection-view 197 # %{eog_libdir}/eog-image-viewer 198 %dir %attr (0755, root, sys) %{_datadir} 199 %dir %attr (0755, root, other) %{_datadir}/applications 200 %{_datadir}/applications/* 201 %{_datadir}/eog 202 %{_datadir}/gtk-doc 203 %dir %attr (0755, root, other) %{_datadir}/gnome 204 %{_datadir}/gnome/help/*/C 205 # %{_datadir}/idl 206 %{_datadir}/omf/*/*-C.omf 207 %dir %attr (-, root, other) %{_datadir}/icons 208 %dir %attr (-, root, other) %{_datadir}/icons/hicolor 209 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 210 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps 211 %{_datadir}/icons/hicolor/16x16/apps/eog.png 212 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22 213 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps 214 %{_datadir}/icons/hicolor/22x22/apps/eog.png 215 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24 216 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps 217 %{_datadir}/icons/hicolor/24x24/apps/eog.png 218 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 219 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps 220 %{_datadir}/icons/hicolor/32x32/apps/eog.png 221 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable 222 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps 223 %{_datadir}/icons/hicolor/scalable/apps/eog.svg 224 %dir %attr(0755, root, bin) %{_mandir} 225 %dir %attr(0755, root, bin) %{_mandir}/* 226 %{_mandir}/*/* 227 228 %if %build_l10n 229 %files l10n 230 %defattr (-, root, bin) 231 %dir %attr (0755, root, sys) %{_datadir} 232 %attr (-, root, other) %{_datadir}/locale 233 %dir %attr (0755, root, other) %{_datadir}/gnome 234 %{_datadir}/gnome/help/eog/[a-z]* 235 %{_datadir}/omf/eog/eog-[a-z][a-z].omf 236 %{_datadir}/omf/eog/eog-[a-z][a-z]_[A-Z][A-Z].omf 237 %endif 238 239 %files root 240 %defattr (-, root, sys) 241 %attr (0755, root, sys) %dir %{_sysconfdir} 242 %{_sysconfdir}/gconf/schemas/eog.schemas 243 244 %files devel 245 %defattr (-, root, bin) 246 %dir %attr (0755, root, bin) %dir %{_libdir} 247 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 248 %{_libdir}/pkgconfig/* 249 %dir %attr (0755, root, bin) %dir %{_includedir} 250 %{_includedir}/* 251 252 %changelog 253 * Wed Jun 18 2008 - damien.carbery@sun.com 254 - *.a are no longer installed so comment out their deletion. 255 * Wed Jun 11 2008 - damien.carbery@sun.com 256 - Delete *.a/*.la during %install; add %{_datadir}/gtk-doc and 257 %{eog_libdir}/eog to %files. 258 * Wed May 21 2008 - damien.carbery@sun.com 259 - Add Build/Requires: SUNWlcms after check-deps.pl run. 260 * Thu Jan 3 2008 - laca@sun.com 261 - use gconf-install.script instead of an inline script 262 * Fri Sep 28 2007 - laca@sun.com 263 - delete Nevada X dep 264 * Tue Aug 28 2007 - damien.carbery@sun.com 265 - Remove pixmaps from %files because they are not installed by new tarball. 266 * Sat Aug 18 2007 - damien.carbery@sun.com 267 - Comment out removal of /var and /usr/var dirs as they are no longer installed. 268 * Thu Aug 16 2007 - damien.carbery@sun.com 269 - Remove actions icons from %files after tarball bump. 270 * Wed Jul 11 2007 - damien.carbery@sun.com 271 - Add eog-image-collection.png and thumbnail-frame.png to %files. 272 * Wed May 16 2007 - damien.carbery@sun.com 273 - Add devel package; add icons to base package. 274 * Thu May 10 2007 - damien.carbery@sun.com 275 - Remove pixmaps dir from %files as it is no longer populated. 276 * Tue Apr 24 2007 - laca@sun.com 277 - s/0755/-/ in defattr so that files are not made all executable 278 * Wed Feb 14 2006 - damien.carbery@sun.com 279 - Delete en_GB files in %install. 280 * Thu Jan 11 2006 - damien.carbery@sun.com 281 - Add new icons to %files. 282 * Wed Dec 13 2006 - damien.carbery@sun.com 283 - Delete some l10n omf files in %install when not building l10n packages. 284 * Wed Dec 06 2006 - damien.carbery@sun.com 285 - Update packaging for new tarball - remove scrollkeeper files, add omf files 286 to the l10n package. 287 * Wed Nov 29 2006 - damien.carbery@sun.com 288 - Fix packaging as some locales have been removed. 289 * Fri Oct 20 2006 - damien.carbery@sun.com 290 - Fix packaging for new locales. 291 * Mon Sep 04 2006 - Matt.Keenan@sun.com 292 - New Manpage tarball 293 * Sat Aug 12 2006 - laca@sun.com 294 - delete some unnecessary env variables 295 * Fri Jul 28 2006 - damien.carbery@sun.com 296 - Remove scrollkeeper files before packaging. Update l10n package as some 297 files are no longer installed. 298 * Fri Jul 14 2006 - laca@sun.com 299 - update %post/%postun/etc scripts to support diskless client setup, 300 part of 6448317 301 * Thu Jun 29 2006 - laca@sun.com 302 - update postrun scripts 303 * Sun Jun 11 2006 - laca@sun.com 304 - change group from other to bin/sys 305 * Fri Jun 2 2006 - laca@sun.com 306 - use post/preun scripts to install schemas into the merged gconf files 307 * Wed May 10 2006 - laca@sun.com 308 - merge -share pkg(s) into the base pkg(s) 309 * Tue May 09 2006 - damien.carbery@sun.com 310 - Move gthumb to spec-files-extra/SUNWgnome-img-organizer as it has been EOL'd. 311 * Mon May 01 2006 - damien.carbery (at] sun.com 312 - Add %{_datadir}/icons to share package. 313 * Mon Feb 20 2006 - damien.carbery (at] sun.com 314 - Complete update of Build/Requires after running check-deps.pl script. 315 * Thu Feb 16 2006 - damien.carbery (at] sun.com 316 - Update Build/Requires after running check-deps.pl script. 317 * Wed Feb 15 2006 - damien.carbery (at] sun.com 318 - Set PKG_CONFIG_PATH to find libgphoto; Set LDFLAGS to link with libpng. 319 * Sat Jan 28 2006 - damien.carbery (at] sun.com 320 - Add BuildRequires for '-devel' equivalents of the Requires packages. 321 - Added BuildRequires SUNWgnome-camera-devel for gthumb. 322 * Sat Dec 3 2005 - laca (at] sun.com 323 - add %post script that runs update-desktop-database 324 * Tue Nov 29 2005 - laca (at] sun.com 325 - remove javahelp stuff 326 * Mon Oct 03 2005 - damien.carbery (at] sun.com 327 - Remove unpackaged files. 328 * Sat Dec 18 2004 - damien.carbery (at] sun.com 329 - Move gthumb to /usr/sfw per ARC decision. 330 * Sun Nov 14 2004 - laca (at] sun.com 331 - move gthumb to /usr/demo/jds 332 * Sat Oct 02 2004 - laca (at] sun.com 333 - added %pkgbuild_postprocess 334 * Mon Aug 23 2004 - laca (at] sun.com 335 - s/SUNWpl5u/SUNWperl584usr/ 336 * Mon Jun 26 2004 shirley.woo (at] sun.com 337 - change eog.1 permissions to 0755 for Solaris integration error 338 * Sat Jun 26 2004 shirley.woo (at] sun.com 339 - Changed install location to /usr/... 340 * Wed Jun 2 2004 - takao.fujiwara (at] sun.com 341 - Added %{_datadir}/locale to install l10n messages 342 * Tue May 18 2004 - laca (at] sun.com 343 - add sfw to LDFLAGS/CPPFLAGS (patch from Shirley) 344 * Tue May 11 2004 - brian.cameron (at] sun.com 345 - add %{_datadir}/eog to files share so glade files 346 get installed. This corrects core dumping problem 347 when bringing up preferences dialog. 348 * Tue May 04 2004 - laca (at] sun.com 349 - add SUNWgnome-camera dependency 350 * Fri Mar 26 2004 - laca (at] sun.com 351 - add SUNWgnome-file-mgr dependency (for eel) 352 * Wed Mar 24 2004 - brian.cameron (at] sun.com 353 - Added SGML man page integration 354 * Mon Mar 01 2004 - <laca (at] sun.com> 355 - fix dependencies 356 - define PERL5LIB 357 - file %files share 358 * Mon Feb 23 2004 - <niall.power (at] sun.com> 359 - install gconf schemas at the end of the install stage 360