file-roller/file-roller.spec

154 lines
4.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package file-roller (Version 2.27.91)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: file-roller
Version: 2.27.91
Release: 1
License: GPL v2 or later
Summary: An Archive Manager for GNOME
Url: http://fileroller.sourceforge.net
Group: Productivity/Archiving/Compression
Source: ftp://ftp.gnome.org/pub/GNOME/sources/file-roller/2.18/%{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: gconf2-devel
BuildRequires: glib2-devel
BuildRequires: gnome-doc-utils-devel
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: nautilus-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
Requires: %{name}-lang = %{version}
# Formats that we really want to support by default
Requires: bzip2
Requires: cpio
Requires: genisoimage
Requires: gzip
Requires: rpm
Requires: unzip
# Formats that we likely want to support by default
Recommends: unrar
Recommends: xz
Recommends: zip
# Additional formats that are supported
Suggests: lha
Suggests: p7zip
Suggests: rzip
Suggests: zoo
BuildRoot: %{_tmppath}/%{name}-%{version}-build
DocDir: %{_defaultdocdir}
# FIXME: Formats for which we don't have packages. Some are free software that
# we could package.
#Suggests: arj
#Suggests: lzip
#Suggests: lzop
#Suggests: ncompress
#Suggests: rar
#Suggests: unace
#Suggests: unalz
#Suggests: unstuff
%gconf_schemas_prereq
%description
File Roller is an archive manager for GNOME. With it, you can create
and modify archives, view the contents of an archive, view a file
contained in the archive, and extract files from the archive. File
Roller is a front-end (a graphical interface) for archiving programs
like tar and zip. The supported file types are:
* Tar archives uncompressed (.tar) or compressed with
- gzip (.tar.gz, .tgz)
- bzip (.tar.bz, .tbz)
- bzip2 (.tar.bz2, .tbz2)
- compress (.tar.Z, .taz)
- lzop (.tar.lzo, .tzo)
* Zip archives (.zip)
* Jar archives (.jar, .ear, .war)
* Lha archives (.lzh)
* Rar archives (.rar)
* Single files compressed with gzip, bzip, bzip2, compress, lzop
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure\
--disable-schemas-install\
--disable-scrollkeeper
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%suse_update_desktop_file -N "File Roller" -G "Archive Manager" %name Archiving
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
rm %{buildroot}%{_libdir}/*/*/*.*a
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%pre -f %{name}.schemas_pre
%post
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%files -f %{name}.lst
%defattr(-, root, root)
%doc AUTHORS NEWS README COPYING
%{_bindir}/file-roller
%{_libexecdir}/file-roller
%{_datadir}/applications/*.desktop
%{_datadir}/file-roller
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_libdir}/nautilus/extensions-2.0/*.so
%files lang -f %name.lang
# Temporary workaround to not depend on libgnome: own the directories
%defattr (-, root, root)
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/help
%changelog