From d33e53a12119231b1c2f2d4a9a68e333e8919976 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Wed, 12 Aug 2020 15:26:43 +0200 Subject: [PATCH] Disable archive backend in RHEL --- gvfs.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gvfs.spec b/gvfs.spec index 4931f16..58e4b39 100644 --- a/gvfs.spec +++ b/gvfs.spec @@ -116,6 +116,7 @@ This package provides support for reading and writing files on windows shares (SMB) to applications using gvfs. +%if ! (0%{?rhel} >= 9) %package archive Summary: Archiving support for gvfs Requires: %{name}%{?_isa} = %{version}-%{release} @@ -125,6 +126,7 @@ BuildRequires: pkgconfig(libarchive) >= %{libarchive_version} %description archive This package provides support for accessing files inside Zip and Tar archives, as well as ISO images, to applications using gvfs. +%endif %package gphoto2 @@ -229,6 +231,9 @@ the functionality of the installed gvfs package. -Dnfs=false \ -Dbluray=false \ -Dafc=false \ +%endif +%if 0%{?rhel} >= 9 + -Darchive=false \ %endif %{nil} %meson_build @@ -261,8 +266,10 @@ killall -USR1 gvfsd >&/dev/null || : %endif %endif +%if ! (0%{?rhel} >= 9) %post archive killall -USR1 gvfsd >&/dev/null || : +%endif %if ! 0%{?rhel} %post nfs killall -USR1 gvfsd >&/dev/null || : @@ -350,9 +357,11 @@ killall -USR1 gvfsd >&/dev/null || : %{_datadir}/gvfs/mounts/smb.mount +%if ! (0%{?rhel} >= 9) %files archive %{_libexecdir}/gvfsd-archive %{_datadir}/gvfs/mounts/archive.mount +%endif %files gphoto2