Home | History | Annotate | Download | only in gnome-2-24
      1 #
      2 # spec file for package SUNWgnome-archive-mgr
      3 #
      4 # includes module(s): file-roller
      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: mattman
     11 #
     12 %include Solaris.inc
     13 
     14 %use froller = file-roller.spec
     15 
     16 Name:                    SUNWgnome-archive-mgr
     17 Summary:                 GNOME archive manager
     18 Version:                 %{default_pkg_version}
     19 Source:                  %{name}-manpages-0.1.tar.gz
     20 SUNW_BaseDir:            %{_basedir}
     21 SUNW_Copyright:          %{name}.copyright
     22 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     23 
     24 %include default-depend.inc
     25 Requires: SUNWgnome-archive-mgr-root
     26 Requires: SUNWgnome-file-mgr
     27 Requires: SUNWgnome-libs
     28 Requires: SUNWgnome-vfs
     29 Requires: SUNWgnome-config
     30 Requires: SUNWbzip
     31 Requires: SUNWzlib
     32 Requires: SUNWgnome-base-libs
     33 Requires: SUNWlibms
     34 Requires: SUNWlibpopt
     35 Requires: SUNWpostrun
     36 BuildRequires: SUNWgnome-base-libs-devel
     37 BuildRequires: SUNWlibpopt-devel
     38 
     39 %if %build_l10n
     40 %package l10n
     41 Summary:                 %{summary} - l10n files
     42 SUNW_BaseDir:            %{_basedir}
     43 %include default-depend.inc
     44 Requires:                %{name}
     45 %endif
     46 
     47 %package root
     48 Summary:                 %{summary} - / filesystem
     49 SUNW_BaseDir:            /
     50 %include default-depend.inc
     51 Requires: SUNWpostrun-root
     52 Requires: SUNWgnome-config
     53 
     54 %prep
     55 rm -rf %name-%version
     56 mkdir %name-%version
     57 %froller.prep -d %name-%version
     58 cd %{_builddir}/%name-%version
     59 gzcat %SOURCE0 | tar xf -
     60 
     61 %build
     62 export CFLAGS="%optflags -I%{_includedir}/gnome-vfs-2.0 -I%{_libdir}/gnome-vfs-2.0/include"
     63 export RPM_OPT_FLAGS="$CFLAGS"
     64 export PKG_CONFIG_PATH=%{_pkg_config_path}
     65 export LDFLAGS="%_ldflags -L%{_libdir} -lgnomevfs-2"
     66 
     67 %froller.build -d %name-%version
     68 
     69 %install
     70 rm -rf $RPM_BUILD_ROOT
     71 %froller.install -d %name-%version
     72 
     73 rm -rf $RPM_BUILD_ROOT%{_mandir}
     74 cd %{_builddir}/%name-%version/sun-manpages
     75 make install DESTDIR=$RPM_BUILD_ROOT
     76 
     77 %if %build_l10n
     78 %else
     79 # REMOVE l10n FILES
     80 rm -r $RPM_BUILD_ROOT%{_datadir}/locale
     81 rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
     82 rm $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
     83 %endif
     84 
     85 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     86 
     87 %clean
     88 rm -rf $RPM_BUILD_ROOT
     89 
     90 %post
     91 ( echo 'test -x /usr/bin/update-desktop-database || exit 0';
     92   echo '/usr/bin/update-desktop-database'
     93 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait
     94 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
     95   echo '/usr/bin/scrollkeeper-update'
     96 ) | $BASEDIR/lib/postrun -b -u -c JDS
     97 
     98 %postun
     99 test -x $BASEDIR/lib/postrun || exit 0
    100 ( echo 'test -x /usr/bin/update-desktop-database || exit 0';
    101   echo '/usr/bin/update-desktop-database'
    102 ) | $BASEDIR/lib/postrun -b -u -c JDS
    103 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
    104   echo '/usr/bin/scrollkeeper-update'
    105 ) | $BASEDIR/lib/postrun -b -u -c JDS
    106 
    107 %post root
    108 %include gconf-install.script
    109 
    110 %preun root
    111 test -x $BASEDIR/var/lib/postrun/postrun || exit 0
    112 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
    113   echo '  echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
    114   echo '  exit 0';
    115   echo '}';
    116   echo 'umask 0022';
    117   echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
    118   echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
    119   echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
    120   echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
    121   echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
    122   echo 'schemas="$SDIR/file-roller.schemas"';
    123   echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
    124 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
    125 
    126 %files
    127 %defattr (-, root, bin)
    128 %dir %attr (0755, root, bin) %{_bindir}
    129 %{_bindir}/*
    130 %dir %attr (0755, root, bin) %{_libdir}
    131 %{_libdir}/file-roller
    132 %{_libdir}/nautilus
    133 %dir %attr (0755, root, sys) %{_datadir}
    134 %dir %attr (0755, root, other) %{_datadir}/applications
    135 %{_datadir}/applications/*
    136 %{_datadir}/file-roller
    137 %dir %attr (0755, root, other) %{_datadir}/gnome
    138 %{_datadir}/gnome/help/file-roller/C
    139 %{_datadir}/omf/file-roller/*-C.omf
    140 %attr (-, root, other) %{_datadir}/icons
    141 %dir %attr(0755, root, bin) %{_mandir}
    142 %dir %attr(0755, root, bin) %{_mandir}/*
    143 %{_mandir}/*/*
    144 %doc -d file-roller-%{froller.version} README AUTHORS
    145 %doc(bzip2) -d file-roller-%{froller.version} COPYING ChangeLog NEWS help/ChangeLog po/ChangeLog
    146 %dir %attr (0755, root, other) %{_datadir}/doc
    147 
    148 %if %build_l10n
    149 %files l10n
    150 %defattr (-, root, bin)
    151 %dir %attr (0755, root, sys) %{_datadir}
    152 %attr (-, root, other) %{_datadir}/locale
    153 %dir %attr (0755, root, other) %{_datadir}/gnome
    154 %{_datadir}/gnome/help/*/[a-z]*
    155 %{_datadir}/omf/*/*-[a-z][a-z].omf
    156 %endif
    157 
    158 %files root
    159 %defattr (-, root, sys)
    160 %attr (0755, root, sys) %dir %{_sysconfdir}
    161 %{_sysconfdir}/gconf/schemas/file-roller.schemas
    162 
    163 %changelog
    164 * Wed Sep 10 2008 - matt.keenn@sun.com
    165 - Update copyright
    166 * Thu Jan 10 2008 - damien.carbery@sun.com
    167 - Add gnome-vfs info to CFLAGS and LDFLAGS as configure no longer retrieves
    168   them with pkg-config (libnautilus-extension depends on gio instead of
    169   gnome-vfs).
    170 * Thu Jan  3 2008 - laca@sun.com
    171 - use gconf-install.script instead of an inline script
    172 * Tue Apr 24 2007 - laca@sun.com
    173 - s/0755/-/ in defattr so that files are not made all executable
    174 * Mon Mar 20 2007 - damien.carbery@sun.com
    175 - Remove omf deletion line from %install, as suggested by reborg on
    176   desktop-discuss.
    177 * Wed Jan 10 2007 - damien.carbery@sun.com
    178 - Update l10n code for omf files as some locales have been removed.
    179 * Fri Nov 24 2006 - damien.carbery@sun.com
    180 - Update %files for 2.17.2 tarball.
    181 * Fri Sep 01 2006 - Matt.Keenan@sun.com
    182 - New Manpage tarball
    183 * Mon Aug 21 2006 - damien.carbery@sun.com
    184 - Fix l10n package - C locale omf file was in base and l10n package.
    185 * Sat Aug 12 2006 - laca@sun.com
    186 - delete some unnecessary env variables
    187 * Sat Aug 12 2006 - laca@sun.com
    188 - change datadir/icons permissions back to root:other since it's a stable
    189   interface and wasn't supposed to be changed
    190 * Fri Jul 14 2006 - laca@sun.com
    191 - update %post/%postun/etc scripts to support diskless client setup,
    192   part of 6448317
    193 * Thu Jun 29 2006 - laca@sun.com
    194 - update postrun scripts
    195 * Sun Jun 11 2006 - laca@sun.com
    196 - change group from other to bin/sys
    197 * Thu Jun  1 2006 - laca@sun.com
    198 - use post/preun scripts to install schemas into the merged gconf files
    199 * Tue May 09 2006 - laca@sun.com
    200 - merge -share pkg(s) into the base pkg(s)
    201 * Tue Apr 18 2006 - damien.carbery@sun.com
    202 - Icons have moved to %{_datadir}/icons, from pixmaps.
    203 * Mon Feb 20 2006 - damien.carbery@sun.com
    204 - Update Build/Requires after running check-deps.pl script.
    205 * Tue Jan 31 2006 - damien.carbery@sun.com
    206 - Remove mime-info from %files. No files installed now.
    207 * Sun Jan 22 2006 - damien.carbery@sun.com
    208 - Remove application-registry from share package as no longer installed.
    209 * Mon Jan 09 2006 - damien.carbery@sun.com
    210 - Remove bonobo files from base package as they are no longer installed.
    211 * Sat Dec  3 2005 - laca@sun.com
    212 - add %post script that runs update-desktop-database
    213 * Tue Nov 29 2005 - laca@sun.com
    214 - remove javahelp stuff
    215 * Fri Nov 12 2004 - kazuhiko.maekawa@sun.com
    216 - Revised files section
    217 * Sat Oct 02 2004 - laca@sun.com
    218 - added %pkgbuild_postprocess
    219 * Sat Jun 26 2004  shirley.woo@sun.com
    220 - Changed install location to /usr/...
    221 * Wed Jun  2 2004 - takao.fujiwara@sun.com
    222 - Added %{_datadir}/locale to install l10n messages
    223 * Wed Mar 24 2004 - brian.cameron@sun.com
    224 - Added SGML man page integration
    225 * Mon Mar 01 2004 - <laca@sun.com>
    226 - define PERL5LIB
    227 - fix share subpkg contents/permissions
    228 * Wed Feb 25 2004 - <niall.power@sun.com>
    229 - inital Solaris spec file created
    230