diff --git a/gvfs.spec b/gvfs.spec index 58e4b39..6ca857d 100644 --- a/gvfs.spec +++ b/gvfs.spec @@ -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