Home | History | Annotate | Download | only in gnome-2-24
      1 #
      2 # spec file for package SUNWgnome-file-mgr
      3 #
      4 # includes module(s): eel, nautilus, gnome-mount,
      5 #                     gnome-volume-manager
      6 #
      7 # Copyright 2008 Sun Microsystems, Inc.
      8 # This file and all modifications and additions to the pristine
      9 # package are under the same license as the package itself.
     10 #
     11 # Owner: stephen
     12 
     13 %include Solaris.inc
     14 
     15 %define with_hal %(pkginfo -q SUNWhal && echo 1 || echo 0)
     16 
     17 %use eel = eel.spec
     18 %use nautilus = nautilus.spec
     19 %use open_terminal= nautilus-open-terminal.spec
     20 
     21 %if %with_hal
     22 %use gmount = gnome-mount.spec
     23 %use gvm = gnome-volume-manager.spec
     24 %endif
     25 
     26 Name:                    SUNWgnome-file-mgr
     27 Summary:                 GNOME file manager
     28 Version:                 %{default_pkg_version}
     29 Source:                  %{name}-manpages-0.1.tar.gz
     30 SUNW_BaseDir:            %{_basedir}
     31 SUNW_Copyright:          %{name}.copyright
     32 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     33 
     34 %include default-depend.inc
     35 BuildRequires: SUNWgnome-component-devel
     36 BuildRequires: SUNWlibrsvg-devel
     37 BuildRequires: SUNWgnome-audio-devel
     38 BuildRequires: SUNWlibexif-devel
     39 BuildRequires: SUNWlibpopt-devel
     40 BuildRequires: SUNWgnome-libs-devel
     41 BuildRequires: SUNWgnome-vfs-devel
     42 BuildRequires: SUNWgnome-base-libs-devel
     43 BuildRequires: SUNWgnome-config-devel
     44 BuildRequires: SUNWgnome-panel-devel
     45 BuildRequires: SUNWgnome-print-devel
     46 Requires: SUNWgnome-file-mgr-root
     47 Requires: SUNWgnome-libs
     48 Requires: SUNWgnome-vfs
     49 Requires: SUNWgnome-base-libs
     50 Requires: SUNWgnome-config
     51 Requires: SUNWgnome-panel
     52 Requires: SUNWgnome-print
     53 Requires: SUNWgnome-audio
     54 Requires: SUNWgnome-component
     55 Requires: SUNWlibexif
     56 Requires: SUNWlibms
     57 Requires: SUNWlibpopt
     58 Requires: SUNWlibrsvg
     59 Requires: SUNWperl584usr
     60 Requires: SUNWbzip
     61 Requires: SUNWzlib
     62 Requires: SUNWlxml
     63 Requires: SUNWpostrun
     64 %if %with_hal
     65 Requires: SUNWhal
     66 %endif
     67 
     68 %package root
     69 Summary:                 %{summary} - / filesystem
     70 SUNW_BaseDir:            /
     71 %include default-depend.inc
     72 Requires: SUNWpostrun-root
     73 Requires: SUNWgnome-config
     74 
     75 %package devel
     76 Summary:                 %{summary} - development files
     77 SUNW_BaseDir:            %{_basedir}
     78 %include default-depend.inc
     79 
     80 %if %build_l10n
     81 %package l10n
     82 Summary:                 %{summary} - l10n files
     83 SUNW_BaseDir:            %{_basedir}
     84 %include default-depend.inc
     85 Requires:                %{name}
     86 %endif
     87 
     88 %prep
     89 rm -rf %name-%version
     90 mkdir %name-%version
     91 %eel.prep -d %name-%version
     92 %nautilus.prep -d %name-%version
     93 %open_terminal.prep -d %name-%version
     94 
     95 %if %with_hal
     96 %gmount.prep -d %name-%version
     97 %gvm.prep -d %name-%version
     98 %endif
     99 cd %{_builddir}/%name-%version
    100 gzcat %SOURCE0 | tar xf -
    101 
    102 %build
    103 PKG_CONFIG_DISABLE_UNINSTALLED=
    104 unset PKG_CONFIG_DISABLE_UNINSTALLED
    105 
    106 export PKG_CONFIG_PATH=../eel-%{eel.version}:../nautilus-%{nautilus.version}/libnautilus-extension:%{_pkg_config_path}
    107 export CFLAGS="%optflags -I%{_includedir} -DGNOME_DESKTOP_USE_UNSTABLE_API"
    108 export RPM_OPT_FLAGS="$CFLAGS"
    109 export LDFLAGS="%_ldflags"
    110 export ACLOCAL_FLAGS="-I /usr/share/aclocal"
    111 
    112 %eel.build -d %name-%version
    113 %nautilus.build -d %name-%version
    114 %open_terminal.build -d %name-%version
    115 
    116 %if %with_hal
    117 export LDFLAGS="%_ldflags -L/usr/X11/lib -R/usr/X11/lib -lX11 -lresolv"
    118 %gmount.build -d %name-%version
    119 %gvm.build -d %name-%version
    120 %endif
    121 
    122 %install
    123 rm -rf $RPM_BUILD_ROOT
    124 %eel.install -d %name-%version
    125 %nautilus.install -d %name-%version
    126 %open_terminal.install -d %name-%version
    127 
    128 %if %with_hal
    129 %gmount.install -d %name-%version
    130 %gvm.install -d %name-%version
    131 %endif
    132 
    133 rm -rf $RPM_BUILD_ROOT%{_mandir}
    134 cd %{_builddir}/%name-%version/sun-manpages
    135 make install DESTDIR=$RPM_BUILD_ROOT
    136 
    137 # generated in the postinstall scripts (update-mime-database)
    138 rm -rf $RPM_BUILD_ROOT%{_datadir}/mime
    139 
    140 %if %build_l10n
    141 %else
    142 # REMOVE l10n FILES
    143 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    144 %endif
    145 
    146 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    147 
    148 %clean
    149 rm -rf $RPM_BUILD_ROOT
    150 
    151 %post
    152 ( echo 'test -x /usr/bin/update-desktop-database || exit 0';
    153   echo '/usr/bin/update-desktop-database'
    154 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait
    155 ( echo 'test -x %{_bindir}/update-mime-database || exit 0';
    156   echo '%{_bindir}/update-mime-database %{_datadir}/mime'
    157 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait
    158 
    159 %postun
    160 test -x $BASEDIR/lib/postrun || exit 0
    161 ( echo 'test -x /usr/bin/update-desktop-database || exit 0';
    162   echo '/usr/bin/update-desktop-database'
    163 ) | $BASEDIR/lib/postrun -b -u -c JDS
    164 ( echo 'test -x %{_bindir}/update-mime-database || exit 0';
    165   echo '%{_bindir}/update-mime-database %{_datadir}/mime'
    166 ) | $BASEDIR/lib/postrun -b -u -c JDS
    167 
    168 %post root
    169 %include gconf-install.script
    170 
    171 %preun root
    172 test -x $BASEDIR/var/lib/postrun/postrun || exit 0
    173 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
    174   echo '  echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
    175   echo '  exit 0';
    176   echo '}';
    177   echo 'umask 0022';
    178   echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
    179   echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
    180   echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
    181   echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
    182   echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
    183 %if %with_hal
    184   echo 'schemas="$SDIR/apps_nautilus_preferences.schemas';
    185   echo '         $SDIR/gnome-mount.schemas';
    186   echo '         $SDIR/gnome-volume-control.schemas"';
    187 %else
    188   echo 'schemas="$SDIR/apps_nautilus_preferences.schemas';
    189   echo '         $SDIR/nautilus-open-terminal.schemas"';
    190 %endif
    191   echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
    192 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
    193 
    194 %files
    195 %doc eel-%{eel.version}/AUTHORS eel-%{eel.version}/MAINTAINERS 
    196 %doc eel-%{eel.version}/README
    197 %doc(bzip2) eel-%{eel.version}/COPYING eel-%{eel.version}/COPYING.LIB 
    198 %doc(bzip2) eel-%{eel.version}/NEWS eel-%{eel.version}/ChangeLog
    199 %doc gnome-mount-%{gmount.version}/AUTHORS gnome-mount-%{gmount.version}/README
    200 %doc(bzip2) gnome-mount-%{gmount.version}/COPYING 
    201 %doc(bzip2) gnome-mount-%{gmount.version}/NEWS 
    202 %doc(bzip2) gnome-mount-%{gmount.version}/ChangeLog
    203 %doc gnome-volume-manager-%{gvm.version}/AUTHORS 
    204 %doc gnome-volume-manager-%{gvm.version}/README
    205 %doc(bzip2) gnome-volume-manager-%{gvm.version}/COPYING
    206 %doc(bzip2) gnome-volume-manager-%{gvm.version}/NEWS
    207 %doc(bzip2) gnome-volume-manager-%{gvm.version}/ChangeLog
    208 %doc nautilus-%{nautilus.version}/README
    209 %doc nautilus-%{nautilus.version}/AUTHORS
    210 %doc nautilus-%{nautilus.version}/MAINTAINERS
    211 %doc(bzip2) nautilus-%{nautilus.version}/COPYING
    212 %doc(bzip2) nautilus-%{nautilus.version}/NEWS
    213 %doc(bzip2) nautilus-%{nautilus.version}/ChangeLog
    214 %doc nautilus-open-terminal-%{open_terminal.version}/AUTHORS
    215 %doc nautilus-open-terminal-%{open_terminal.version}/README
    216 %doc(bzip2) nautilus-open-terminal-%{open_terminal.version}/COPYING
    217 %doc(bzip2) nautilus-open-terminal-%{open_terminal.version}/NEWS
    218 %doc(bzip2) nautilus-open-terminal-%{open_terminal.version}/ChangeLog
    219 %dir %attr (0755, root, other) %{_datadir}/doc
    220 %defattr (-, root, bin)
    221 %dir %attr (0755, root, bin) %{_bindir}
    222 %{_bindir}/*
    223 %dir %attr (0755, root, bin) %{_libdir}
    224 %{_libdir}/bonobo/servers
    225 %{_libdir}/nautilus/extensions-2.0/*.so
    226 %{_libdir}/lib*.so*
    227 %if %with_hal
    228 %{_libexecdir}/gnome-volume-manager
    229 %endif
    230 %dir %attr (0755, root, sys) %{_datadir}
    231 %dir %attr (0755, root, other) %{_datadir}/applications
    232 %{_datadir}/applications/*
    233 %if %with_hal
    234 %dir %attr (0755, root, other) %{_datadir}/gnome-mount
    235 %{_datadir}/gnome-mount/*
    236 %dir %attr (0755, root, other) %{_datadir}/gnome-volume-manager
    237 %{_datadir}/gnome-volume-manager/*
    238 %endif
    239 %{_datadir}/gtk-doc
    240 %dir %attr (-, root, other) %{_datadir}/icons
    241 %dir %attr (-, root, other) %{_datadir}/icons/hicolor
    242 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
    243 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
    244 %{_datadir}/icons/hicolor/16x16/apps/nautilus.png
    245 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
    246 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
    247 %{_datadir}/icons/hicolor/22x22/apps/nautilus.png
    248 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
    249 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
    250 %{_datadir}/icons/hicolor/24x24/apps/nautilus.png
    251 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
    252 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
    253 %{_datadir}/icons/hicolor/32x32/apps/nautilus.png
    254 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
    255 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
    256 %{_datadir}/icons/hicolor/scalable/apps/nautilus.svg
    257 %{_datadir}/nautilus
    258 %dir %attr (0755, root, other) %{_datadir}/pixmaps
    259 %{_datadir}/pixmaps/*
    260 %dir %attr(0755, root, bin) %{_mandir}
    261 %dir %attr(0755, root, bin) %{_mandir}/*
    262 %{_mandir}/*/*
    263 
    264 %files root
    265 %defattr (-, root, sys)
    266 %attr (0755, root, sys) %dir %{_sysconfdir}
    267 %{_sysconfdir}/gconf/schemas/apps_nautilus_preferences.schemas
    268 %{_sysconfdir}/gconf/schemas/nautilus-open-terminal.schemas
    269 %if %with_hal
    270 %{_sysconfdir}/gconf/schemas/gnome-mount.schemas
    271 %{_sysconfdir}/gconf/schemas/gnome-volume-manager.schemas
    272 %{_sysconfdir}/xdg
    273 %endif
    274 
    275 %files devel
    276 %defattr (-, root, bin)
    277 %dir %attr (0755, root, bin) %{_includedir}
    278 %{_includedir}/*
    279 %dir %attr (0755, root, bin) %{_libdir}
    280 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    281 %{_libdir}/pkgconfig/*
    282 
    283 %if %build_l10n
    284 %files l10n
    285 %defattr (-, root, bin)
    286 %dir %attr (0755, root, sys) %{_datadir}
    287 %attr (-, root, other) %{_datadir}/locale
    288 %endif
    289 
    290 %changelog
    291 * Thu Sep 11 2008 - padraig.obriain@sun.com
    292 - Add %doc to %files for copyright
    293 * Wed Jun 04 2008 - damien.carbery@sun.com
    294 - Update %files (add %{_datadir}/gtk-doc).
    295 * Thu May 01 2008 - damien.carbery@sun.com
    296 - Update %files (remove %{_datadir}/gnome and add %{_sysconfdir}/xdg) after
    297   bumping gnome-volume-manager.
    298 * Fri Feb 29 2008 - damien.carbery@sun.com
    299 - Add nautilus-open-terminal.schemas to %files and %preun root.
    300 * Tue Jan 29 2008 - damien.carbery@sun.com
    301 - Add -DGNOME_DESKTOP_USE_UNSTABLE_API to CFLAGS to get it to build.
    302 * Thu Jan 17 2008 - damien.carbery@sun.com
    303 - Set ACLOCAL_FLAGS to pick up the modified intltool.m4.
    304 * Fri Jan 11 2008 - padraig.obriain@sun.com
    305 - Change extensions directory to extensions-2.0
    306 * Thu Jan  3 2008 - laca@sun.com
    307 - use gconf-install.script instead of an inline script
    308 * Fri Sep 28 2007 - laca@sun.com
    309 - delete Nevada X dep
    310 * Wed Sep 05 2007 - damien.carbery@sun.com
    311 - Remove references to SUNWgnome-a11y-base-libs as its contents have been
    312   moved to SUNWgnome-base-libs.
    313 * Tue Apr 24 2007 - laca@sun.com
    314 - s/0755/-/ in defattr so that files are not made all executable
    315 * Tue Dec 19 2006 - damien.carbery@sun.com
    316 - Update %files for new graphics files.
    317 * Fri Oct 20 2006 - damien.carbery@sun.com
    318 - Remove SUNWhalh BuildRequires because header files are in SUNWhea in snv_51.
    319 * Mon Sep 18 2006 - Brian.Cameron@sun.com
    320 - Add SUNWhalh BuildRequires.
    321 * Fri Sep 01 2006 - Matt.Keenan@sun.com
    322 - New Manpage tarball
    323 * Mon Aug 14 2006 - damien.carbery@sun.com
    324 - Add Build/Requires SUNWhal after check-deps.pl run.
    325 * Sat Aug 12 2006 - laca@sun.com
    326 - delete some unnecessary env variables
    327 * Thu Jul 25 2006 - brian.cameron@sun.com
    328 - Add gnome-volume-manager and gnome-mount for HAL integration.
    329 * Fri Jul 14 2006 - laca@sun.com
    330 - update %post/%postun/etc scripts to support diskless client setup,
    331   part of 6448317
    332 * Thu Jun 29 2006 - laca@sun.com
    333 - update postrun scripts
    334 * Sun Jun 11 2006 - laca@sun.com
    335 - change group from other to bin/sys
    336 * Thu Jun  1 2006 - laca@sun.com
    337 - use post/preun scripts to install schemas into the merged gconf files
    338 * Wed May 10 2006 - laca@sun.com
    339 - merge -share pkg(s) into the base pkg(s)
    340 * Mon Feb 20 2006 - damien.carbery@sun.com
    341 - Update Build/Requires after running check-deps.pl script.
    342 * Mon Jan 09 2006 - damien.carbery@sun.com
    343 - Delete mime dir structure.
    344 * Sat Dec  3 2005 - laca@sun.com
    345 - add %post script that runs update-desktop-database
    346 * Thu Jul 28 2005 - damien.carbery@sun.com
    347 - Add SUNWlibrsvg-devel build dependency. Add SUNWlibrsvg runtime dependency.
    348 * Thu Jun 02 2005 - brian.cameron
    349 - Bumped to 2.10, fixed packaging.
    350 * Sat Oct 02 2004 - laca@sun.com
    351 - added %pkgbuild_postprocess
    352 * Thu Sep 09 2004 - matt.keenan@sun.com
    353 - Added nautlius-file-management-properties.1 manpage
    354 * Mon Aug 23 2004 - laca@sun.com
    355 - s/SUNWpl5u/SUNWperl584usr/
    356 * Wed Aug 18 2004 - damien.carbery@sun.com
    357 - Change manpage perms for Solaris integration.
    358 * Tue Jul 27 2004 - damien.carbery@sun.com
    359 - Add SUNWgnome-component-devel as BuildRequires, for ORBit-2.0.
    360 * Sat Jun 26 2004 - shirley.woo@sun.com
    361 - Changed install location to /usr/...
    362 * Mon Jun 07 2004 - brian.cameron@sun.com
    363 - Added SUNWlibexif dependency, then removed it since it is alrady
    364   a dependency of SUNWgnome-libs.
    365 * Wed Jun 02 2004 - takao.fujiwara@sun.com
    366 - Added %{_datadir}/locale to install l10n messages
    367 * Thu May 20 2004 - brian.cameron@sun.com
    368 - Added man page to share package.
    369 * Thu May 13 2004 - brian.cameron@sun.com
    370 - Removed %{_libdir}/nautilus-*-helper from packages since Glynn
    371   removed these files that were added via ext-sources on May 5th.
    372 * Fri Apr 30 2004 - niall.power@sun.com
    373 - adjust %files for new nautilus version
    374 * Fri Mar 26 2004 - laca@sun.com
    375 - fix %files for libexecdir change
    376 * Wed Mar 24 2004 - brian.cameron@sun.com
    377 - Added SGML man page integration
    378 * Mon Mar 01 2004 - laca@sun.com
    379 - remove dependencies on SUNWgnome-libs-root and -share
    380 * Thu Feb 26 2004 - niall.power@sun.com
    381 - remove clashing (and empty gconf.xml files) after schema installation
    382 - add "-R%{_libdir}" to LDFLAGS
    383 - define PERL5LIB for XML::Parser
    384 - add a defattr for %package devel
    385 * Mon Feb 23 2004 - niall.power@sun.com
    386 - install gconf schemas at the end of the install stage
    387 * Wed Feb 18 2004 - niall.power@sun.com
    388 - removed gnome-desktop as it's provided by the panel pkgs now.
    389 - removed rsvg man pages from file maps + tidy up
    390 - removed unnecessary exported CFLAGS
    391 * Wed Feb 18 2004 - laca (at] sun.com
    392 - moved librsvg to SUNWgnome-libs as it is required by other modules as well
    393 * Mon Feb 16 2004 - niall.power (at] sun.com
    394 - initial spec file created
    395