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