File xarchiver.spec of Package xarchiver

#
# spec file for package xarchiver
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           xarchiver
Summary:        Lightweight, desktop-independent archive manager
Version:        0.5.4.26
Release:        0
URL:            https://github.com/ib/xarchiver
Source0:        https://github.com/ib/xarchiver/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
License:        GPL-2.0-or-later
Group:          Productivity/Archiving/Compression
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
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-3.0)
Recommends:     %{name}-lang
Recommends:     7zip
Recommends:     bzip2
Recommends:     gzip
Recommends:     rar
Recommends:     unrar
Recommends:     unzip
Recommends:     xdg-utils
Recommends:     xz
Recommends:     zip

%package thunar-archive-plugin
Summary:        Thunar Plugin for %{name}
Group:          Productivity/Archiving/Compression
Requires:       %{name} = %{version}
Requires:       thunar-archive-plugin

%description thunar-archive-plugin
This package provides the thunar-archive-plugin for %{name}.

%package doc
Summary:        Documentation for %{name}
Group:          Productivity/Archiving/Compression
Requires:       %{name} = %{version}
BuildArch:      noarch

%description doc
This package provides documentation and help files for %{name}.

%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
%autosetup

%build
%configure --docdir=%{_docdir}/%{name} --libexecdir=%{_libexecdir}
%make_build

%install
%make_install
rm -f %{buildroot}%{_docdir}/%{name}/{COPYING,ChangeLog,README}
install -D -m644 icons/48x48/xarchiver.png %{buildroot}%{_datadir}/pixmaps/xarchiver.png

%suse_update_desktop_file -i %{name} GTK Archiving Utility

%fdupes %{buildroot}%{_datadir}

%find_lang %{name}

%files
%license COPYING
%doc ChangeLog README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/pixmaps/%{name}.png
%dir %{_datadir}/pixmaps/%{name}
%{_datadir}/pixmaps/%{name}/%{name}-*.png
%{_mandir}/man1/%{name}.1%{?ext_man}

%files thunar-archive-plugin
%dir %{_libexecdir}/thunar-archive-plugin
%{_libexecdir}/thunar-archive-plugin/%{name}.tap

%files doc
%doc %{_docdir}/%{name}/
%exclude %{_docdir}/%{name}/{ChangeLog,README}

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by