File file-roller.spec of Package file-roller.12870

# spec file for package file-roller
# Copyright (c) 2017 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

Name:           file-roller
Version:        3.26.2
Release:        0
Summary:        An Archive Manager for GNOME
License:        GPL-2.0+
Group:          Productivity/Archiving/Compression
# PATCH-FIX-OPENSUSE file-roller-3.4-change-archiver-priority.patch bnc#767386 -- Give unzip a higher priority than 7z when unpackging zip files. Gives better results for non-latin charsets.
Patch0:         file-roller-3.4-change-archiver-priority.patch
# PATCH-FEATURE-OPENSUSE file-roller-pkg-match.patch bnc#696530 -- List package match names for automatic installation using PK.
Patch1:         file-roller-pkg-match.patch
# PATCH-FIX-OPENSUSE file-roller-ignore-unrar-if-wrapper.patch bsc#1072118 -- if unrar is a wrapper script for unar, then ignore it, and use unar instead.
Patch2:         file-roller-ignore-unrar-if-wrapper.patch
# PATCH-FIX-UPSTREAM file-roller-rar-file-date.patch bgo#758121 -- fix wrong file date when using rar 5.30 or higher.
Patch3:         file-roller-rar-file-date.patch
# PATCH-FIX-UPSTREAM file-roller-unar-dir-critical.patch bgo#791505 -- fix warning when parsing lsar output.
Patch4:         file-roller-unar-dir-critical.patch
# PATCH-FIX-UPSTREAM file-roller-CVE-2019-16680.patch bsc#1151585 bgo#794337 CVE-2019-16680 -- Do not extract files with relative paths.
Patch5:         file-roller-CVE-2019-16680.patch
# PATCh-FIX-UPSTREAM CVE-2020-11736.patch boo#1169428 -- do not follow external links when extracting files.
Patch6:         CVE-2020-11736.patch
# Needed for directory ownership
BuildRequires:  dbus-1
BuildRequires:  fdupes
BuildRequires:  file-devel
BuildRequires:  intltool
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(glib-2.0) >= 2.36.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.13.2
BuildRequires:  pkgconfig(json-glib-1.0) >= 0.14.0
BuildRequires:  pkgconfig(libarchive) >= 3.0.0
BuildRequires:  pkgconfig(libnotify) >= 0.4.3
Recommends:     %{name}-lang
# Formats that we likely want to support by default
Recommends:     bzip2
Recommends:     cpio
Recommends:     gzip
Recommends:     p7zip
Recommends:     rpm
Recommends:     unar
Recommends:     unzip
Recommends:     xz
Recommends:     zip
# Additional formats that are supported
Suggests:       lha
Suggests:       lrzip
Suggests:       lzip
Suggests:       lzop
Suggests:       rzip
Suggests:       zoo
# FIXME: Formats for which we don't have packages. Some are free software that
# we could package.
#Suggests:       arj
#Suggests:       ncompress
#Suggests:       rar
#Suggests:       theunarchiver
#Suggests:       unace
#Suggests:       unalz
#Suggests:       unstuff
Obsoletes:      nautilus-file-roller
DocDir:         %{_defaultdocdir}
%if !0%{?is_opensuse}
BuildRequires:  translation-update-upstream

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.


%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%if !0%{?is_opensuse}

        --enable-magic \
        --enable-libarchive \
make %{?_smp_mflags}

%suse_update_desktop_file org.gnome.FileRoller
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}

%defattr(-, root, root)
%dir %{_datadir}/metainfo
%doc %{_datadir}/help/C/%{name}/

%files lang -f %{name}.lang
%defattr(-, root, root)

openSUSE Build Service is sponsored by