Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package file-roller
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: mattman
      9 #
     10 Name:         file-roller
     11 License:      GPL
     12 Group:        System/GUI/GNOME
     13 Version:      2.16.1
     14 Release:      1
     15 Distribution: Java Desktop System
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      An archive manager for GNOME
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/file-roller/2.16/%{name}-%{version}.tar.bz2
     19 Source1:      file-roller.1.gz
     20 Patch1:       file-roller-01-menu-entry.diff
     21 # owner:mattman type:bug date:2006-10-04 bugster:6478062 bugzilla:359629
     22 Patch2:       file-roller-02-rpm-cpio.diff
     23 URL:          http://www.gnome.org
     24 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     25 Docdir:       %{_defaultdocdir}
     26 Autoreqprov:  on
     27 Prereq:       GConf
     28 
     29 %define scrollkeeper_version 0.3.14
     30 %define nautilus_version 2.6.1
     31 
     32 BuildRequires: scrollkeeper >= %{scrollkeeper_version}
     33 BuildRequires: nautilus-devel >= %{nautilus_version}
     34 Requires: nautilus >= %{nautilus_version}
     35 
     36 %description
     37 File Roller is an archive manager for the GNOME environment.  This means that
     38 you can : create and modify archives; view the content of an archive; view a
     39 file contained in the archive; extract files from the archive.
     40 File Roller is only a front-end (a graphical interface) to archiving programs
     41 like tar and zip. The supported file types are -
     42 
     43  * Tar archives uncompressed (.tar) or compressed with
     44  * gzip (.tar.gz , .tgz)
     45  * bzip (.tar.bz , .tbz)
     46  * bzip2 (.tar.bz2 , .tbz2)
     47  * compress (.tar.Z , .taz)
     48  * lzop (.tar.lzo , .tzo)
     49  * Zip archives (.zip)
     50  * Jar archives (.jar , .ear , .war)
     51  * Lha archives (.lzh)
     52  * Rar archives (.rar)
     53  * Single files compressed with gzip, bzip, bzip2, compress, lzop
     54 
     55 %prep
     56 %setup -q
     57 %patch1 -p1
     58 %patch2 -p1
     59 for po in po/*.po; do
     60   dos2unix -ascii $po $po
     61 done
     62 
     63 %build
     64 %ifos linux
     65 if [ -x /usr/bin/getconf ]; then
     66   CPUS=`getconf _NPROCESSORS_ONLN`
     67 fi
     68 %else
     69   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     70 %endif
     71 if test "x$CPUS" = "x" -o $CPUS = 0; then
     72   CPUS=1
     73 fi
     74 
     75 libtoolize --force
     76 aclocal $ACLOCAL_FLAGS
     77 autoheader
     78 automake -a -c -f
     79 autoconf
     80 
     81 #FIXME: Disable scrollkeeper for now.
     82 CFLAGS="$RPM_OPT_FLAGS" \
     83   ./configure \
     84     --prefix=%{_prefix} \
     85     --sysconfdir=%{_sysconfdir} \
     86     --disable-scrollkeeper
     87 make -j $CPUS
     88 
     89 %install
     90 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
     91 make DESTDIR=$RPM_BUILD_ROOT install
     92 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
     93 install -d $RPM_BUILD_ROOT%{_mandir}/man1
     94 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1
     95 #Copy zh_HK from zh_TW
     96 #Fixes bug 4930405
     97 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
     98 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
     99 
    100 
    101 rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/libnautilus-fileroller.a
    102 rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/libnautilus-fileroller.la
    103 
    104 %clean
    105 rm -rf $RPM_BUILD_ROOT
    106 
    107 %post
    108 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    109 SCHEMAS="file-roller.schemas"
    110  for S in $SCHEMAS; do
    111   gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
    112 done
    113 
    114 %files
    115 %defattr(-, root, root)
    116 %doc AUTHORS NEWS README COPYING
    117 %{_sysconfdir}/gconf/schemas/*.schemas
    118 %{_bindir}/file-roller
    119 %{_libdir}/nautilus/extensions-1.0/libnautilus-fileroller.so
    120 %{_datadir}/applications/*.desktop
    121 %{_datadir}/file-roller
    122 %{_datadir}/gnome/help/file-roller
    123 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    124 %{_datadir}/omf/file-roller
    125 %{_datadir}/pixmaps/*.png
    126 %{_mandir}/man1/file-roller.1.gz
    127 
    128 %changelog
    129 * Wed Oct 04 2006 - matt.keenan@sun.com
    130 - Add patch 02-rpm-cpio.diff : bugster : 6478062, bugzilla : 359629
    131 * Tue Oct 03 2006 - damien.carbery@sun.com
    132 - Bump to 2.16.1.
    133 * Wed Sep 27 2006 - matt.keenan@sun.com
    134 - file-roller-01-rename-contents.diff : bugster:6232106 / bugzilla:168287
    135 - Remove fixed upstream.
    136 * Wed Sep 27 2006 - matt.keenan@sun.com
    137 - Remove patch 01-zip-command.diff, re-enable password option for archives 
    138   CR 6397899.
    139 - Re-align the remaining patches.
    140 * Mon Sep 04 2006 - damien.carbery@sun.com
    141 - Bump to 2.16.0.
    142 * Tue Aug 22 2006 - damien.carbery@sun.com
    143 - Bump to 2.15.93.
    144 * Wed Aug 09 2006 - damien.carbery@sun.com
    145 - Bump to 2.15.92.
    146 * Tue Aug 08 2006 - damien.carbery@sun.com
    147 - Bump to 2.15.91.
    148 * Mon Jul 24 2006 - damien.carbery@sun.com
    149 - Bump to 2.15.90.
    150 * Wed Jul 20 2006 - dermot.mccluskey@sun.com
    151 - Bump to 2.15.1.
    152 * Fri Jun 02 2006 - glynn.foster@sun.com
    153 - Add patch to update the menu entry.
    154 * Wed Apr 19 2006 - damien.carbery@sun.com
    155 - Call dos2unix to fix po files.
    156 * Tue Apr 18 2006 - damien.carbery@sun.com
    157 - Bump to 2.14.2.
    158 * Tue Apr 11 2006 - damien.carbery@sun.com
    159 - Bump to 2.14.1.
    160 * Tue Mar 14 2006 - damien.carbery@sun.com
    161 - Bump to 2.14.0.
    162 * Tue Feb 28 2006 - damien.carbery@sun.com
    163 - Bump to 2.13.92.
    164 * Tue Feb 14 2006 - damien.carbery@sun.com
    165 - Bump to 2.13.91.
    166 * Tue Jan 31 2006 - damien.carbery@sun.com
    167 - Remove obsolete patch, 01-rm-jar-association. Reorder remainder.
    168 * Tue Jan 31 2006 - damien.carbery@sun.com
    169 - Bump to 2.13.90.
    170 * Sun Jan 22 2006 - damien.carbery@sun.com
    171 - Remove upstream patch, 02-move-menuitem. Renumber rest.
    172 * Tue Jan 17 2006 - damien.carbery@sun.com
    173 - Bump to 2.13.4
    174 * Sat Jan 07 2006 - damien.carbery@sun.com
    175 - Remove ref to bonobo files that are no longer present.
    176 * Tue Jan 03 2006 - damien.carbery@sun.com
    177 - Bump to 2.13.3.
    178 * Tue Nov 29 2005 - laca@sun.com
    179 - remove javahelp stuff
    180 * Tue Nov 29 2005 - damien.carbery@sun.com
    181 - Bump to 2.12.2.
    182 * Tue Oct 11 2005 - damien.carbery@sun.com
    183 - Bump to 2.12.1
    184 * Sat Sep 17 2005 - glynn.foster@sun.com
    185 - Bump to 2.12.0
    186 * Mon Sep 05 2005 - damien.carbery@sun.com
    187 - Bump to 2.11.92.
    188 * Mon Aug 15 2005 - damien.carbery@sun.com
    189 - Bump to 2.11.91.
    190 * Fri May 20 2005 - balamurali.viswanathan@wipro.com
    191 - Bump to 2.10.3
    192 * Tue Mar 15 2005 - laszlo.kovacs@sun.com
    193 - add patch for 6238712
    194 * Wed Mar 02 2005 - glynn.foster@sun.com
    195 - Add patch so that renaming archive contents, prompts for an
    196   overwrite if the file/directory already exists.
    197 * Tue Jan 25 2005 - damien.carbery@sun.com
    198 - Update docs with Linux specific tarball from maeve.anslow@sun.com.
    199 * Fri Jan 14 2005 - kazuhiko.maekawa@sun.com
    200 - Updated l10n help tarball for cinnabar-linux
    201 * Thu Oct 28 2004 - kazuhiko.maekawa@sun.com
    202 - Updated l10n help tarball and added pt_BR
    203 * Mon Oct 18 2004 - laszlo.kovacs@sun.com
    204 - file-roller-09-extract-password.diff added
    205 * Fri Sep 10 2004 - kaushal.kumar@wipro.com
    206 - Added patch file-roller-08-fix-dnd-crash.diff to fix the desktop icon
    207   dnd crash. Fixes bugtraq #5098546.
    208 * Mon Aug 30 2004 - takao.fujiwara@sun.com
    209 - Add file-roller-07-g11n-potfiles.diff
    210 * Wed Aug 25 2004 - Kazuhiko.Maekawa@sun.com
    211 - Added l10n help contents
    212 * Fri Aug 20 2004 - damien.carbery@sun.com
    213 - Integrate updated docs tarball from breda.mccolgan@sun.com.
    214 * Thu Aug 05 2004 - damien.carbery@sun.com
    215 - Incorporate new docs tarball from breda.mccolgan@sun.com.
    216 * Tue Jul 27 2004 - vijaykumar.patwari@wipro.com
    217 - Fix the file extraction for .zip/.jar.
    218 * Thu Jul 08 2004 - damien.donlon@sun.com
    219 - Updated l10n content to file-roller-l10n-po-1.2.tar.bz2
    220 * Wed Jul 07 2004 - niall.power@sun.com
    221 - ported to rpm4
    222 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    223 - added "-j $CPUS" to make to speed up builds
    224 * Mon Jul 05 2004 - kaushal.kumar@wipro.com
    225 - Added patch file-roller-05-add-folder-option.diff to add the feature of 
    226   folder addition in an archive.
    227 * Wed Jun 09 2004 - balamurali.viswanathan@wipro.com
    228 - Modified patch file-roller-04-set-path-gtar.diff to use putenv instead of
    229   setenv
    230 * Wed Jun 09 2004 - balamurali.viswanathan@wipro.com
    231 - Added patch file-roller-04-set-path-gtar.diff to /usr/sfw/bin so that
    232   gtar is picked up instead of tar
    233 * Fri May 28 2004 - damien.carbery@sun.com
    234 - Incorporate new docs tarball from breda.mccolgan@sun.com.
    235 * Fri May 14 2004 - balamurali.viswanathan@wipro.com
    236 - Don't show the password in plain text: file-roller-03-password-invisible.diff
    237 * Wed May 12 2004 - damien.donlon (at] sun.com
    238 - Updated l10n content to file-roller-l10n-po-1.1.tar.bz2
    239 * Tue May 04 2004 - glynn.foster (at] sun.com
    240 - Bump to 2.6.1
    241 * Tue Apr 27 2004 - vijaykumar.patwari (at] wipro.com
    242 - Move the position of "Archive Manager" from "System Tools"
    243   to "Accessories" in panel menu.
    244 * Sun Apr 18 2004 - laca (at] sun.com
    245 - enable javahelp conversion on Solaris
    246 * Tue Apr 13 2004 - laszlo.kovacs (at] sun.com
    247 - upgraded tarball
    248 * Thu Apr 01 2004 - matt.keenan (at] sun.com
    249 - javahelp conversion
    250 * Mon Mar 29 2004 - damien.donlon (at] sun.com
    251 - Updated l10n content to file-roller-l10n-po-1.0.tar.bz2
    252 * Tue Mar 16 2004 - glynn.foster (at] sun.com
    253 - Remove validation of archive check since the patch is 
    254   wrong.
    255 * Tue Mar 16 2004 - glynn.foster (at] sun.com
    256 - Bump to 2.5.7 and remove localized documentation
    257   tarball as it no longer makes sense. Remove the menu
    258   patch and l10n patches.
    259 * Wed Feb 25 2004 - niall.power (at] sun.com
    260 - change tar jxvf to bzcat | tar xf - 
    261 - use proper path macros instead of hardcoded paths
    262 * Wed Dec 17 2003 - glynn.foster (at] sun.com
    263 - Bump to 2.5.4, re-apply patches 01/02
    264 - Add l10n and patch 03
    265 - Add libtoolize/automake etc...
    266 * Wed Dec 17 2003 - glynn.foster (at] sun.com
    267 - Bump to 2.5.0
    268 * Fri Oct 31 2003 - glynn.foster (at] sun.com
    269 - Remove the Sun Supported keyword from the 
    270   desktop file.
    271 * Mon Oct 13 2003 - Laszlo.Kovacs (at] sun.com
    272 - tarball upgrade
    273 * Fri Sep 26 2003 - <laca (at] sun.com>
    274 - integrate Sun docs
    275 * Thu Aug 14 2003 - <laca (at] sun.com>
    276 - remove *.a, *.la
    277 * Thu Aug 07 2003 - glynn.foster (at] sun.com
    278 - Update tarball, bump version, reset release.
    279 * Wed Jul 30 2003 - Laszlo Kovacs (at] sun.com
    280 - added file-roller-02-validate-new-archive.diff
    281 * Tue May 13 2002 - Niall.Power (at] Sun.COM
    282 - initial package for GNOME 2.2
    283