Disable AFP backend in RHEL

This commit is contained in:
Ondrej Holy 2020-08-12 15:27:26 +02:00
parent d33e53a121
commit 1d34b8d539

View File

@ -159,6 +159,7 @@ including phones and music players to applications using gvfs.
%endif
%if ! (0%{?rhel} >= 9)
%package afp
Summary: AFP support for gvfs
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -171,6 +172,7 @@ Obsoletes: %{name} < 1.9.4-1
This package provides support for reading and writing files on
Mac OS X and original Mac OS network shares via Apple Filing Protocol
to applications using gvfs.
%endif
%package mtp
@ -234,6 +236,7 @@ the functionality of the installed gvfs package.
%endif
%if 0%{?rhel} >= 9
-Darchive=false \
-Dafp=false \
%endif
%{nil}
%meson_build
@ -274,8 +277,10 @@ killall -USR1 gvfsd >&/dev/null || :
%post nfs
killall -USR1 gvfsd >&/dev/null || :
%endif
%if ! (0%{?rhel} >= 9)
%post afp
killall -USR1 gvfsd >&/dev/null || :
%endif
%files
@ -384,11 +389,13 @@ killall -USR1 gvfsd >&/dev/null || :
%endif
%endif
%if ! (0%{?rhel} >= 9)
%files afp
%{_libexecdir}/gvfsd-afp
%{_libexecdir}/gvfsd-afp-browse
%{_datadir}/gvfs/mounts/afp.mount
%{_datadir}/gvfs/mounts/afp-browse.mount
%endif
%files mtp
%{_libexecdir}/gvfsd-mtp