A new user interface for you! Read more...

File xarchiver.spec of Package xarchiver

#
# spec file for package xarchiver
#
# Copyright (c) 2018 SUSE LINUX 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.4.13
Release:        0
Summary:        Lightweight, desktop-independent archive manager
License:        GPL-2.0-or-later
Group:          Productivity/Archiving/Compression
URL:            http://xarchiver.sourceforge.net/
Source0:        https://github.com/ib/xarchiver/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  libxslt-tools
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gdk-x11-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gtk+-x11-2.0)
Recommends:     %{name}-lang
Recommends:     bzip2
Recommends:     gzip
Recommends:     p7zip
Recommends:     rar
Recommends:     unrar
Recommends:     unzip
Recommends:     xdg-utils
Recommends:     xz
Recommends:     zip

%lang_package

%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 (v4 and v5), lha,
lzma, lzop, deb, rpm, tar, xz and zip archive formats.

%prep
%setup -q

%build
%configure --docdir=%{_datadir}/xfce4/xarchiver/html
make %{?_smp_mflags}


%install
%make_install
rm -f %{buildroot}%{_datadir}/xfce4/xarchiver/html/COPYING \
      %{buildroot}%{_datadir}/xfce4/xarchiver/html/ChangeLog \
      %{buildroot}%{_datadir}/xfce4/xarchiver/html/README
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}

%if 0%{?suse_version} && 0%{?suse_version} < 1330
%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files
%license COPYING
%doc ChangeLog README
%{_bindir}/xarchiver
%{_libexecdir}/thunar-archive-plugin/
%{_datadir}/applications/xarchiver.desktop
%{_datadir}/icons/*/*/*/*
%{_datadir}/pixmaps/xarchiver/
%{_datadir}/pixmaps/xarchiver.png
%dir %{_datadir}/xfce4/
%dir %{_datadir}/xfce4/xarchiver
%doc %{_datadir}/xfce4/xarchiver/html/
%{_mandir}/man1/xarchiver.1%{?ext_man}

%files lang -f %{name}.lang

%changelog