Accepting request 343285 from home:posophe:branches:Base:System
some improvements OBS-URL: https://build.opensuse.org/request/show/343285 OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=150
This commit is contained in:
parent
4953e33d48
commit
ae7db45d3d
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 9 23:53:43 UTC 2015 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
- Remove sysvinit related macros; the package doesn't contain any
|
||||||
|
sysvinit script
|
||||||
|
- Replace systemd with systemd-rpm-macros; increase dependencies
|
||||||
|
weight
|
||||||
|
- Use %configure macro
|
||||||
|
- Remove depreciated %clean section
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 27 13:24:31 UTC 2015 - jeffm@suse.com
|
Tue Oct 27 13:24:31 UTC 2015 - jeffm@suse.com
|
||||||
|
|
||||||
|
@ -31,12 +31,8 @@ BuildRequires: nfsidmap-devel >= 0.24
|
|||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: sqlite3-devel
|
BuildRequires: sqlite3-devel
|
||||||
BuildRequires: tcpd-devel
|
BuildRequires: tcpd-devel
|
||||||
%if 0%{?suse_version} >= 1210
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRequires: systemd
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version} >= 1310
|
|
||||||
BuildRequires: fedfs-utils-devel
|
BuildRequires: fedfs-utils-devel
|
||||||
%endif
|
|
||||||
Url: http://kernel.org/pub/linux/utils/nfs-utils/
|
Url: http://kernel.org/pub/linux/utils/nfs-utils/
|
||||||
Summary: Support Utilities for Kernel nfsd
|
Summary: Support Utilities for Kernel nfsd
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
@ -121,8 +117,9 @@ cp %{S:6} .
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
rm -f configure; autoreconf -fi
|
rm -f configure; autoreconf -fi
|
||||||
CFLAGS="$RPM_OPT_FLAGS -fPIE -fno-strict-aliasing" LDFLAGS="-pie" ./configure \
|
export CFLAGS="%{optflags} -fPIE"
|
||||||
--mandir=%{_mandir} \
|
export LDFLAGS="-pie"
|
||||||
|
%{configure} \
|
||||||
--with-systemd \
|
--with-systemd \
|
||||||
--enable-nfsv4 \
|
--enable-nfsv4 \
|
||||||
--enable-gss \
|
--enable-gss \
|
||||||
@ -181,9 +178,6 @@ install -m 644 utils/mount/nfsmount.conf $RPM_BUILD_ROOT/etc/nfsmount.conf
|
|||||||
# hack to avoid automatic python dependency
|
# hack to avoid automatic python dependency
|
||||||
chmod 644 $RPM_BUILD_ROOT%{_sbindir}/{mountstats,nfsiostat}
|
chmod 644 $RPM_BUILD_ROOT%{_sbindir}/{mountstats,nfsiostat}
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%pre -n nfs-client
|
%pre -n nfs-client
|
||||||
useradd -r -c 'NFS statd daemon' \
|
useradd -r -c 'NFS statd daemon' \
|
||||||
-s /sbin/nologin -d /var/lib/nfs -g nogroup statd > /dev/null 2>&1 || :
|
-s /sbin/nologin -d /var/lib/nfs -g nogroup statd > /dev/null 2>&1 || :
|
||||||
@ -209,11 +203,9 @@ fi
|
|||||||
%service_add_post nfs
|
%service_add_post nfs
|
||||||
|
|
||||||
%preun -n nfs-client
|
%preun -n nfs-client
|
||||||
%stop_on_removal nfs
|
|
||||||
%service_del_preun nfs
|
%service_del_preun nfs
|
||||||
|
|
||||||
%postun -n nfs-client
|
%postun -n nfs-client
|
||||||
%restart_on_update nfs
|
|
||||||
%service_del_postun nfs
|
%service_del_postun nfs
|
||||||
|
|
||||||
%verifyscript -n nfs-client
|
%verifyscript -n nfs-client
|
||||||
@ -223,7 +215,6 @@ fi
|
|||||||
%service_add_pre nfsserver
|
%service_add_pre nfsserver
|
||||||
|
|
||||||
%preun -n nfs-kernel-server
|
%preun -n nfs-kernel-server
|
||||||
%stop_on_removal nfsserver
|
|
||||||
%service_del_preun nfsserver
|
%service_del_preun nfsserver
|
||||||
|
|
||||||
%post -n nfs-kernel-server
|
%post -n nfs-kernel-server
|
||||||
@ -239,7 +230,6 @@ fi
|
|||||||
%service_add_post nfsserver
|
%service_add_post nfsserver
|
||||||
|
|
||||||
%postun -n nfs-kernel-server
|
%postun -n nfs-kernel-server
|
||||||
%restart_on_update nfsserver
|
|
||||||
%service_del_postun nfsserver
|
%service_del_postun nfsserver
|
||||||
|
|
||||||
%files -n nfs-client
|
%files -n nfs-client
|
||||||
@ -251,20 +241,20 @@ fi
|
|||||||
/sbin/umount.nfs
|
/sbin/umount.nfs
|
||||||
/sbin/umount.nfs4
|
/sbin/umount.nfs4
|
||||||
/sbin/osd_login
|
/sbin/osd_login
|
||||||
%attr(0755,root,root) /usr/sbin/mountstats
|
%attr(0755,root,root) %{_sbindir}/mountstats
|
||||||
%attr(0755,root,root) /usr/sbin/nfsiostat
|
%attr(0755,root,root) %{_sbindir}/nfsiostat
|
||||||
/usr/sbin/nfsidmap
|
%{_sbindir}/nfsidmap
|
||||||
/usr/sbin/nfsstat
|
%{_sbindir}/nfsstat
|
||||||
/usr/sbin/rcnfs
|
%{_sbindir}/rcnfs
|
||||||
/usr/sbin/rcnfs-client
|
%{_sbindir}/rcnfs-client
|
||||||
/usr/sbin/rpc.gssd
|
%{_sbindir}/rpc.gssd
|
||||||
/usr/sbin/rpc.idmapd
|
%{_sbindir}/rpc.idmapd
|
||||||
/usr/sbin/rpc.statd
|
%{_sbindir}/rpc.statd
|
||||||
/usr/sbin/rpcdebug
|
%{_sbindir}/rpcdebug
|
||||||
/usr/sbin/showmount
|
%{_sbindir}/showmount
|
||||||
/usr/sbin/sm-notify
|
%{_sbindir}/sm-notify
|
||||||
/usr/sbin/start-statd
|
%{_sbindir}/start-statd
|
||||||
/usr/sbin/blkmapd
|
%{_sbindir}/blkmapd
|
||||||
%{_unitdir}/auth-rpcgss-module.service
|
%{_unitdir}/auth-rpcgss-module.service
|
||||||
%{_unitdir}/nfs-blkmap.service
|
%{_unitdir}/nfs-blkmap.service
|
||||||
%{_unitdir}/nfs-client.target
|
%{_unitdir}/nfs-client.target
|
||||||
@ -281,8 +271,8 @@ fi
|
|||||||
%{_unitdir}/nfs-client.target.d/nfs.conf
|
%{_unitdir}/nfs-client.target.d/nfs.conf
|
||||||
%dir %{_unitdir}/nfs-config.service.d
|
%dir %{_unitdir}/nfs-config.service.d
|
||||||
%{_unitdir}/nfs-config.service.d/restart.conf
|
%{_unitdir}/nfs-config.service.d/restart.conf
|
||||||
%dir /usr/lib/systemd/scripts
|
%dir %{_libexecdir}/systemd/scripts
|
||||||
/usr/lib/systemd/scripts/nfs-utils_env.sh
|
%{_libexecdir}/systemd/scripts/nfs-utils_env.sh
|
||||||
%{_mandir}/man5/nfsmount.conf.5.gz
|
%{_mandir}/man5/nfsmount.conf.5.gz
|
||||||
%{_mandir}/man5/nfs.5.gz
|
%{_mandir}/man5/nfs.5.gz
|
||||||
%{_mandir}/man8/mount.nfs.8.gz
|
%{_mandir}/man8/mount.nfs.8.gz
|
||||||
@ -320,12 +310,12 @@ fi
|
|||||||
%{_unitdir}/nfsserver.service
|
%{_unitdir}/nfsserver.service
|
||||||
%dir %{_unitdir}/nfs-server.service.d
|
%dir %{_unitdir}/nfs-server.service.d
|
||||||
%{_unitdir}/nfs-server.service.d/nfsserver.conf
|
%{_unitdir}/nfs-server.service.d/nfsserver.conf
|
||||||
/usr/sbin/exportfs
|
%{_sbindir}/exportfs
|
||||||
/usr/sbin/rcnfsserver
|
%{_sbindir}/rcnfsserver
|
||||||
/usr/sbin/rcnfs-server
|
%{_sbindir}/rcnfs-server
|
||||||
/usr/sbin/rpc.mountd
|
%{_sbindir}/rpc.mountd
|
||||||
/usr/sbin/rpc.nfsd
|
%{_sbindir}/rpc.nfsd
|
||||||
/usr/sbin/rpc.svcgssd
|
%{_sbindir}/rpc.svcgssd
|
||||||
/sbin/nfsdcltrack
|
/sbin/nfsdcltrack
|
||||||
%{_mandir}/man5/exports.5.gz
|
%{_mandir}/man5/exports.5.gz
|
||||||
%{_mandir}/man7/nfsd.7.gz
|
%{_mandir}/man7/nfsd.7.gz
|
||||||
@ -336,7 +326,7 @@ fi
|
|||||||
%{_mandir}/man8/rpc.nfsd.8.gz
|
%{_mandir}/man8/rpc.nfsd.8.gz
|
||||||
%{_mandir}/man8/rpc.svcgssd.8.gz
|
%{_mandir}/man8/rpc.svcgssd.8.gz
|
||||||
%{_mandir}/man8/nfsdcltrack.8.gz
|
%{_mandir}/man8/nfsdcltrack.8.gz
|
||||||
/usr/share/omc/svcinfo.d/nfs-kernel-server.xml
|
%{_datadir}/omc/svcinfo.d/nfs-kernel-server.xml
|
||||||
%config(noreplace) /var/lib/nfs/xtab
|
%config(noreplace) /var/lib/nfs/xtab
|
||||||
%config(noreplace) /var/lib/nfs/etab
|
%config(noreplace) /var/lib/nfs/etab
|
||||||
%config(noreplace) /var/lib/nfs/rmtab
|
%config(noreplace) /var/lib/nfs/rmtab
|
||||||
|
Loading…
Reference in New Issue
Block a user