Disable NFS support in RHEL

The libnfs library is not available there.
This commit is contained in:
Ondrej Holy 2018-06-13 11:12:08 +02:00
parent c05c34210d
commit d98649a2b4

View File

@ -174,6 +174,7 @@ This package provides support for reading and writing files on
MTP based devices (Media Transfer Protocol) to applications using gvfs.
%if ! 0%{?rhel}
%package nfs
Summary: NFS support for gvfs
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -183,6 +184,7 @@ BuildRequires: pkgconfig(libnfs) >= %{libnfs_version}
%description nfs
This package provides support for reading and writing files on
NFS network shares (Network File System) to applications using gvfs.
%endif
%package goa
@ -209,12 +211,15 @@ the functionality of the installed gvfs package.
%setup -q
%build
%meson -Dinstalled_tests=true \
-Dman=true \
%ifarch s390 s390x
%meson -Dinstalled_tests=true -Dman=true -Dafc=false
%else
%meson -Dinstalled_tests=true -Dman=true
-Dafc=false \
%endif
%if 0%{?rhel}
-Dnfs=false \
%endif
%{nil}
%meson_build
%install
@ -245,8 +250,10 @@ killall -USR1 gvfsd >&/dev/null || :
%post archive
killall -USR1 gvfsd >&/dev/null || :
%if ! 0%{?rhel}
%post nfs
killall -USR1 gvfsd >&/dev/null || :
%endif
%post afp
killall -USR1 gvfsd >&/dev/null || :
@ -367,11 +374,13 @@ killall -USR1 gvfsd >&/dev/null || :
%{_datadir}/gvfs/remote-volume-monitors/mtp.monitor
%{_userunitdir}/gvfs-mtp-volume-monitor.service
%if ! 0%{?rhel}
%files nfs
%{_libexecdir}/gvfsd-nfs
# for privileged ports
%caps(cap_net_bind_service=ep) %{_libexecdir}/gvfsd-nfs
%{_datadir}/gvfs/mounts/nfs.mount
%endif
%files goa
%{_libexecdir}/gvfs-goa-volume-monitor
@ -389,6 +398,7 @@ killall -USR1 gvfsd >&/dev/null || :
%changelog
* Wed May 09 2018 Ondrej Holy <oholy@redhat.com> - 1.37.2-1
- Update to 1.37.2
- Disable NFS support in RHEL
* Wed May 09 2018 Ondrej Holy <oholy@redhat.com> - 1.37.1-1
- Update to 1.37.1