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