File xarchiver.spec of Package xarchiver
#
# spec file for package xarchiver
#
# 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: xarchiver
Version: 0.5.2+20090319
Release: 9.<RELEASE3>
License: GPLv2+
Summary: Lightweight, desktop-independent archive manager
Url: http://xarchiver.sourceforge.net/
Group: Productivity/Archiving/Compression
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.1
Patch0: xarchiver-0.5.2+20090319-honor-docdir.patch
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(pango)
BuildRequires: startup-notification
BuildRequires: update-desktop-files
BuildRequires: xfce4-dev-tools
Recommends: bzip2
Recommends: gzip
Recommends: p7zip
Recommends: unrar
Recommends: unzip
Recommends: xdg-utils
Recommends: zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Xarchiver is a lightweight, desktop-independent archive manager, it has been
designed from the ground up to be fast and with a clean and intuitive user
interface. It supports the 7-zip, arj, bzip2, gzip, rar, lha, lzma, lzop, deb,
rpm, tar and zip archive formats.
%prep
%setup -q
%patch0 -p1
# fix spurious executable permissions of some debug files
chmod -x src/mime.*
%build
xdt-autogen
%configure --docdir=%{_defaultdocdir}/%{name}
make %{?_smp_mflags}
%install
%make_install
install -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1
install -D -m 0644 ./icons/48x48/xarchiver.png %{buildroot}%{_datadir}/pixmaps/xarchiver.png
%suse_update_desktop_file -i %{name} GTK Archiving Utility
%fdupes %{buildroot}%{_datadir}
%find_lang %{name}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/xarchiver
%{_libexecdir}/thunar-archive-plugin
%{_datadir}/applications/xarchiver.desktop
%{_datadir}/icons/*/*/*/*
%{_datadir}/pixmaps/xarchiver/
%{_datadir}/pixmaps/xarchiver.png
%doc %{_mandir}/man1/xarchiver.1*
%doc %{_defaultdocdir}/%{name}
%changelog