file-roller/file-roller.spec

142 lines
4.3 KiB
RPMSpec

#
# spec file for package file-roller
#
# Copyright (c) 2011 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: 3.3.1
Release: 0
Summary: An Archive Manager for GNOME
License: GPL-2.0+
Group: Productivity/Archiving/Compression
Url: http://fileroller.sourceforge.net
Source: http://download.gnome.org/sources/file-roller/3.3/%{name}-%{version}.tar.xz
# Needed for directory ownership
BuildRequires: dbus-1
BuildRequires: fdupes
BuildRequires: gnome-doc-utils-devel
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
BuildRequires: xz
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libnautilus-extension)
BuildRequires: pkgconfig(gtk+-3.0)
Recommends: %{name}-lang
# 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: lrzip
#Suggests: lzip
#Suggests: lzop
#Suggests: ncompress
#Suggests: rar
#Suggests: unace
#Suggests: unalz
#Suggests: unstuff
%glib2_gsettings_schema_requires
%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.
%package -n nautilus-file-roller
Summary: An Archive Manager for GNOME - Nautilus extension
Requires: %{name} = %{version}
Supplements: packageand(file-roller:nautilus)
%description -n nautilus-file-roller
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.
This package contains a plugin to integrate File Roller into Nautilus.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure\
--disable-scrollkeeper
make %{?_smp_mflags} V=1
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%suse_update_desktop_file -N "File Roller" -G "Archive Manager" %name Archiving
%find_lang %{name} %{?no_lang_C}
rm %{buildroot}%{_libdir}/*/*/*.*a
%fdupes %{buildroot}
%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-, root, root)
%doc AUTHORS NEWS README COPYING
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/file-roller
%{_libexecdir}/file-roller/
%{_libexecdir}/file-roller-server
%{_datadir}/GConf/gsettings/file-roller.convert
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.gnome.FileRoller.service
%{_datadir}/file-roller/
%{_datadir}/glib-2.0/schemas/org.gnome.FileRoller.gschema.xml
%{_datadir}/icons/hicolor/*/apps/*.png
%files -n nautilus-file-roller
%defattr(-, root, root)
%{_libdir}/nautilus/extensions-3.0/*.so
%files lang -f %name.lang
%changelog