1 |
guillomovitch |
1176651 |
%define major 0 |
2 |
|
|
%define libname %mklibname nfsidmap %{major} |
3 |
|
|
%define devname %mklibname nfsidmap -d |
4 |
|
|
|
5 |
guillomovitch |
1176666 |
Name: nfs-utils |
6 |
|
|
Epoch: 1 |
7 |
guillomovitch |
1954939 |
|
8 |
|
|
# group all 32bit related archs |
9 |
|
|
%global all_32bit_archs i386 i486 i586 i686 athlon ppc sparcv9 |
10 |
|
|
|
11 |
|
|
Version: 2.6.3 |
12 |
|
|
Release: %mkrel 1 |
13 |
guillomovitch |
1176666 |
Summary: The utilities for Linux NFS server |
14 |
|
|
Group: Networking/Other |
15 |
guillomovitch |
1954939 |
License: MIT and GPLv2 and GPLv2+ and BSD |
16 |
danf |
1916699 |
URL: https://linux-nfs.org/ |
17 |
guillomovitch |
1489638 |
Source0: https://www.kernel.org/pub/linux/utils/nfs-utils/%{version}/%{name}-%{version}.tar.xz |
18 |
guillomovitch |
1176666 |
Source1: id_resolver.conf |
19 |
guillomovitch |
1398093 |
Source2: lockd.conf |
20 |
|
|
Source3: 24-nfs-server.conf |
21 |
guillomovitch |
1954939 |
Source4: 10-nfsv4.conf |
22 |
guillomovitch |
1878506 |
|
23 |
guillomovitch |
1176666 |
Patch100: nfs-utils-1.2.1-statdpath-man.patch |
24 |
|
|
Patch101: nfs-utils-1.2.1-exp-subtree-warn-off.patch |
25 |
|
|
Patch102: nfs-utils-1.2.5-idmap-errmsg.patch |
26 |
guillomovitch |
1398093 |
Patch103: nfs-utils-2.3.1-systemd-gssproxy-restart.patch |
27 |
|
|
Patch104: nfs-utils-2.3.3-man-tcpwrappers.patch |
28 |
|
|
Patch105: nfs-utils-2.3.3-nfsconf-usegssproxy.patch |
29 |
guillomovitch |
1489638 |
Patch106: nfs-utils-2.4.2-systemd-svcgssd.patch |
30 |
guillomovitch |
259832 |
|
31 |
|
|
Requires(pre): rpm-helper |
32 |
ennael |
49044 |
Requires(post): rpm-helper |
33 |
|
|
Requires(preun): rpm-helper |
34 |
guillomovitch |
259832 |
Requires(postun): rpm-helper |
35 |
guillomovitch |
907835 |
Requires: rpcbind |
36 |
guillomovitch |
993072 |
Requires: keyutils |
37 |
|
|
Requires: gssproxy |
38 |
guillomovitch |
1288801 |
Recommends: quota-rpc |
39 |
guillomovitch |
1735941 |
BuildRequires: pkgconfig(libevent) |
40 |
|
|
BuildRequires: pkgconfig(libcap) |
41 |
|
|
BuildRequires: pkgconfig(uuid) |
42 |
|
|
BuildRequires: pkgconfig(libtirpc) |
43 |
|
|
BuildRequires: pkgconfig(blkid) |
44 |
guillomovitch |
907835 |
BuildRequires: keyutils-devel |
45 |
|
|
BuildRequires: pkgconfig(krb5) >= 1.3 |
46 |
|
|
BuildRequires: pkgconfig(librpcsecgss) >= 0.12 |
47 |
akien |
1398538 |
BuildRequires: pkgconfig(libxml-2.0) |
48 |
guillomovitch |
907835 |
BuildRequires: pkgconfig(devmapper) |
49 |
|
|
BuildRequires: pkgconfig(sqlite3) |
50 |
|
|
BuildRequires: pkgconfig(mount) |
51 |
guillomovitch |
1233155 |
BuildRequires: pkgconfig(python3) |
52 |
tv |
1649229 |
BuildRequires: rpcgen |
53 |
akien |
1398538 |
Obsoletes: nfs-utils-clients |
54 |
guillomovitch |
907835 |
Provides: nfs-utils-clients |
55 |
ennael |
49044 |
|
56 |
|
|
%description |
57 |
|
|
This package provides various programs needed for NFS support on server. |
58 |
|
|
|
59 |
guillomovitch |
1176651 |
%package -n %{libname} |
60 |
|
|
Summary: NFSv4 User and Group ID Mapping Library |
61 |
|
|
License: BSD |
62 |
|
|
BuildRequires: openldap-devel |
63 |
|
|
Requires: openldap |
64 |
|
|
|
65 |
|
|
%description -n %{libname} |
66 |
|
|
Library that handles mapping between names and ids for NFSv4. |
67 |
|
|
|
68 |
|
|
%package -n %{devname} |
69 |
|
|
Summary: Development files for the libnfsidmap library |
70 |
|
|
Requires: %{libname} = %{epoch}:%{version}-%{release} |
71 |
|
|
|
72 |
|
|
%description -n %{devname} |
73 |
|
|
This package includes header files and libraries necessary for |
74 |
|
|
developing programs which use the libnfsidmap library. |
75 |
|
|
|
76 |
ennael |
49044 |
%prep |
77 |
guillomovitch |
1954939 |
%autosetup -p1 |
78 |
|
|
|
79 |
|
|
# Remove .orig files |
80 |
guillomovitch |
1130384 |
find . -name "*.orig" | xargs rm -f |
81 |
ennael |
49044 |
|
82 |
guillomovitch |
1954939 |
# Change shebangs |
83 |
|
|
find -name \*.py -exec sed -r -i '1s|^#!\s*/usr/bin.*python.*|#!%{__python3}|' {} \; |
84 |
|
|
|
85 |
ennael |
49044 |
%build |
86 |
|
|
%serverbuild |
87 |
guillomovitch |
907835 |
sh -x autogen.sh |
88 |
guillomovitch |
1954939 |
%global _statdpath /var/lib/nfs/statd |
89 |
wally |
1480027 |
%configure \ |
90 |
guillomovitch |
1954939 |
CFLAGS="%{build_cflags} -D_FILE_OFFSET_BITS=64" \ |
91 |
|
|
LDFLAGS="%{build_ldflags}" \ |
92 |
guillomovitch |
1176651 |
--enable-mountconfig \ |
93 |
|
|
--enable-ipv6 \ |
94 |
guillomovitch |
1183795 |
--with-statdpath=%{_statdpath} \ |
95 |
colin |
301513 |
--enable-libmount-mount \ |
96 |
guillomovitch |
1176651 |
--with-systemd \ |
97 |
guillomovitch |
1233155 |
--without-tcp-wrappers \ |
98 |
guillomovitch |
1398093 |
--with-pluginpath=%{_libdir}/libnfsidmap \ |
99 |
|
|
--enable-junction |
100 |
ennael |
49044 |
|
101 |
guillomovitch |
1176651 |
%make_build all |
102 |
ennael |
49044 |
|
103 |
|
|
%install |
104 |
guillomovitch |
1954939 |
%global _pkgdir %{_prefix}/lib/systemd |
105 |
|
|
|
106 |
luigiwalser |
737540 |
install -d %{buildroot}%{_sbindir} |
107 |
guillomovitch |
1954939 |
install -d %{buildroot}%{_libexecdir}/nfs-utils/ |
108 |
|
|
install -d %{buildroot}%{_pkgdir}/system |
109 |
|
|
install -d %{buildroot}%{_pkgdir}/system-generators |
110 |
|
|
install -d %{buildroot}%{_mandir}/man8 |
111 |
|
|
install -d %{buildroot}%{_sysconfdir}/request-key.d |
112 |
|
|
install -d %{buildroot}%{_sysconfdir}/modprobe.d |
113 |
|
|
install -d %{buildroot}%{_sysconfdir}/gssproxy |
114 |
ennael |
49044 |
|
115 |
ghibo |
1109083 |
%make_install |
116 |
ennael |
49044 |
|
117 |
guillomovitch |
1130384 |
install -s -m 755 tools/rpcdebug/rpcdebug %{buildroot}%{_sbindir} |
118 |
guillomovitch |
259832 |
install -m 644 utils/mount/nfsmount.conf %{buildroot}%{_sysconfdir} |
119 |
guillomovitch |
1130384 |
install -m 644 nfs.conf %{buildroot}%{_sysconfdir} |
120 |
guillomovitch |
1176651 |
install -m 644 support/nfsidmap/idmapd.conf %{buildroot}%{_sysconfdir} |
121 |
guillomovitch |
907835 |
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/request-key.d |
122 |
guillomovitch |
259832 |
|
123 |
guillomovitch |
1954939 |
install -d %{buildroot}/run/sysconfig |
124 |
guillomovitch |
1398093 |
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/modprobe.d/lockd.conf |
125 |
|
|
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/gssproxy |
126 |
guillomovitch |
907835 |
|
127 |
guillomovitch |
1398093 |
rm -rf %{buildroot}%{_libdir}/*.{a,la} |
128 |
|
|
rm -rf %{buildroot}%{_libdir}/libnfsidmap/*.{a,la} |
129 |
|
|
|
130 |
guillomovitch |
1954939 |
install -d %{buildroot}%{_sharedstatedir}/nfs/rpc_pipefs |
131 |
|
|
|
132 |
guillomovitch |
1130384 |
touch %{buildroot}%{_sharedstatedir}/nfs/rmtab |
133 |
guillomovitch |
1326160 |
mv %{buildroot}%{_sbindir}/rpc.statd %{buildroot}/sbin |
134 |
guillomovitch |
259832 |
|
135 |
guillomovitch |
1130384 |
install -d %{buildroot}%{_sharedstatedir}/nfs/statd/sm |
136 |
|
|
install -d %{buildroot}%{_sharedstatedir}/nfs/statd/sm.bak |
137 |
|
|
install -d %{buildroot}%{_sharedstatedir}/nfs/v4recovery |
138 |
guillomovitch |
259882 |
install -d %{buildroot}%{_sysconfdir}/exports.d |
139 |
|
|
|
140 |
guillomovitch |
1954939 |
install -d %{buildroot}%{_sysconfdir}/nfsmount.conf.d |
141 |
|
|
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/nfsmount.conf.d |
142 |
guillomovitch |
913572 |
|
143 |
guillomovitch |
1954939 |
install -d %{buildroot}%{_udevrulesdir} |
144 |
guillomovitch |
1878506 |
|
145 |
guillomovitch |
259832 |
%pre |
146 |
ennael |
49044 |
%_pre_useradd rpcuser %{_localstatedir}/lib/nfs /bin/false |
147 |
|
|
|
148 |
colin |
412434 |
%post |
149 |
guillomovitch |
913571 |
%_post_unit nfs-client.target |
150 |
colin |
412434 |
|
151 |
|
|
%preun |
152 |
guillomovitch |
913571 |
%_preun_unit nfs-client.target nfs-server.service nfs-blkmap.service nfs-secure.service nfs-secure-server.service |
153 |
colin |
412434 |
|
154 |
guillomovitch |
259832 |
%postun |
155 |
ennael |
49044 |
%_postun_userdel rpcuser |
156 |
|
|
|
157 |
|
|
%files |
158 |
guillomovitch |
913573 |
%doc README NEWS COPYING |
159 |
guillomovitch |
259832 |
%dir %{_localstatedir}/lib/nfs |
160 |
|
|
%dir %{_localstatedir}/lib/nfs/v4recovery |
161 |
|
|
%dir %{_localstatedir}/lib/nfs/rpc_pipefs |
162 |
guillomovitch |
1326160 |
%dir %{_libexecdir}/nfs-utils |
163 |
guillomovitch |
259832 |
%dir %attr(700,rpcuser,rpcuser) %{_localstatedir}/lib/nfs/statd |
164 |
|
|
%dir %attr(700,rpcuser,rpcuser) %{_localstatedir}/lib/nfs/statd/sm |
165 |
|
|
%dir %attr(700,rpcuser,rpcuser) %{_localstatedir}/lib/nfs/statd/sm.bak |
166 |
guillomovitch |
907835 |
%ghost %attr(644,rpcuser,rpcuser) %{_localstatedir}/lib/nfs/statd/state |
167 |
|
|
%dir %{_sysconfdir}/exports.d |
168 |
wally |
1964276 |
%dir %{_sysconfdir}/nfsmount.conf.d |
169 |
guillomovitch |
259882 |
%config(noreplace) %{_localstatedir}/lib/nfs/etab |
170 |
|
|
%config(noreplace) %{_localstatedir}/lib/nfs/rmtab |
171 |
guillomovitch |
1954939 |
%config(noreplace) %{_sysconfdir}/request-key.d/id_resolver.conf |
172 |
|
|
%config(noreplace) %{_sysconfdir}/modprobe.d/lockd.conf |
173 |
guillomovitch |
259832 |
%config(noreplace) %{_sysconfdir}/nfsmount.conf |
174 |
guillomovitch |
1130384 |
%config(noreplace) %{_sysconfdir}/nfs.conf |
175 |
|
|
%config(noreplace) %{_sysconfdir}/gssproxy/24-nfs-server.conf |
176 |
guillomovitch |
1954939 |
%config(noreplace) /usr/lib/udev/rules.d/60-nfs.rules |
177 |
guillomovitch |
1878506 |
%config(noreplace) %{_sysconfdir}/nfsmount.conf.d/10-nfsv4.conf |
178 |
guillomovitch |
259832 |
%{_unitdir}/* |
179 |
guillomovitch |
1130384 |
%{_prefix}/lib/systemd/system-generators/* |
180 |
guillomovitch |
1398093 |
%{_sbindir}/exportfs |
181 |
|
|
%{_sbindir}/nfsstat |
182 |
luigiwalser |
737540 |
%{_sbindir}/rpcdebug |
183 |
guillomovitch |
1878506 |
%{_sbindir}/rpcctl |
184 |
guillomovitch |
259832 |
%{_sbindir}/rpc.mountd |
185 |
|
|
%{_sbindir}/rpc.nfsd |
186 |
guillomovitch |
1398093 |
%{_sbindir}/showmount |
187 |
|
|
%{_sbindir}/rpc.idmapd |
188 |
|
|
%{_sbindir}/rpc.gssd |
189 |
ennael |
49044 |
%{_sbindir}/sm-notify |
190 |
|
|
%{_sbindir}/start-statd |
191 |
|
|
%{_sbindir}/mountstats |
192 |
guillomovitch |
1398093 |
%{_sbindir}/nfsiostat |
193 |
guillomovitch |
1233155 |
%{_sbindir}/nfsidmap |
194 |
guillomovitch |
150503 |
%{_sbindir}/blkmapd |
195 |
guillomovitch |
1398093 |
%{_sbindir}/nfsconf |
196 |
|
|
%{_sbindir}/nfsref |
197 |
guillomovitch |
1489638 |
%{_sbindir}/nfsdcld |
198 |
guillomovitch |
1606109 |
%{_sbindir}/nfsdclddb |
199 |
|
|
%{_sbindir}/nfsdclnts |
200 |
guillomovitch |
1954939 |
%{_sbindir}/fsidd |
201 |
guillomovitch |
1878506 |
%{_libexecdir}/nfsrahead |
202 |
|
|
%{_udevrulesdir}/99-nfs.rules |
203 |
guillomovitch |
1398093 |
%attr(4755,root,root) /sbin/mount.nfs |
204 |
guillomovitch |
1326160 |
/sbin/rpc.statd |
205 |
guillomovitch |
1130384 |
/sbin/nfsdcltrack |
206 |
|
|
/sbin/mount.nfs4 |
207 |
|
|
/sbin/umount.nfs |
208 |
|
|
/sbin/umount.nfs4 |
209 |
guillomovitch |
259832 |
%{_mandir}/man5/exports.5* |
210 |
ennael |
49044 |
%{_mandir}/man5/nfs.5* |
211 |
guillomovitch |
1125705 |
%{_mandir}/man5/nfs.conf.5* |
212 |
guillomovitch |
1878506 |
%{_mandir}/man5/nfsrahead.5.* |
213 |
ennael |
49044 |
%{_mandir}/man5/nfsmount.conf.5* |
214 |
guillomovitch |
259832 |
%{_mandir}/man7/nfsd.7* |
215 |
guillomovitch |
1125705 |
%{_mandir}/man7/nfs.systemd.7* |
216 |
guillomovitch |
259832 |
%{_mandir}/man8/exportfs.8* |
217 |
|
|
%{_mandir}/man8/mountd.8* |
218 |
|
|
%{_mandir}/man8/nfsd.8* |
219 |
|
|
%{_mandir}/man8/rpc.mountd.8* |
220 |
|
|
%{_mandir}/man8/rpc.nfsd.8* |
221 |
ennael |
49044 |
%{_mandir}/man8/mount.nfs.8* |
222 |
guillomovitch |
1233155 |
%{_mandir}/man8/nfsconf.8* |
223 |
guillomovitch |
1398093 |
%{_mandir}/man8/nfsref.8* |
224 |
ennael |
49044 |
%{_mandir}/man8/rpc.sm-notify.8* |
225 |
|
|
%{_mandir}/man8/sm-notify.8* |
226 |
|
|
%{_mandir}/man8/umount.nfs.8* |
227 |
|
|
%{_mandir}/man8/rpc.statd.8* |
228 |
|
|
%{_mandir}/man8/statd.8* |
229 |
|
|
%{_mandir}/man8/showmount.8* |
230 |
|
|
%{_mandir}/man8/nfsstat.8* |
231 |
|
|
%{_mandir}/man8/rpcdebug.8* |
232 |
|
|
%{_mandir}/man8/mountstats.8* |
233 |
|
|
%{_mandir}/man8/nfsiostat.8* |
234 |
guillomovitch |
150503 |
%{_mandir}/man8/nfsidmap.8* |
235 |
|
|
%{_mandir}/man8/blkmapd.8* |
236 |
ennael |
49044 |
%{_mandir}/man8/rpc.gssd.8* |
237 |
|
|
%{_mandir}/man8/rpc.idmapd.8* |
238 |
|
|
%{_mandir}/man8/gssd.8* |
239 |
|
|
%{_mandir}/man8/idmapd.8* |
240 |
guillomovitch |
323141 |
%{_mandir}/man8/nfsdcltrack.8* |
241 |
guillomovitch |
1398093 |
%{_mandir}/man8/nfsdcld.8* |
242 |
guillomovitch |
1606109 |
%{_mandir}/man8/nfsdclddb.8* |
243 |
|
|
%{_mandir}/man8/nfsdclnts.8* |
244 |
guillomovitch |
1878506 |
%{_mandir}/man8/rpcctl.8* |
245 |
guillomovitch |
1176651 |
|
246 |
guillomovitch |
1878506 |
|
247 |
guillomovitch |
1176651 |
%files -n %{libname} |
248 |
|
|
%doc support/nfsidmap/AUTHORS support/nfsidmap/README support/nfsidmap/COPYING |
249 |
|
|
%config(noreplace) %{_sysconfdir}/idmapd.conf |
250 |
|
|
%{_libdir}/libnfsidmap.so.* |
251 |
|
|
%{_libdir}/libnfsidmap/*.so |
252 |
|
|
%{_mandir}/man3/nfs4_uid_to_name.* |
253 |
|
|
%{_mandir}/man5/idmapd.conf.* |
254 |
|
|
|
255 |
|
|
%files -n %{devname} |
256 |
|
|
%{_libdir}/pkgconfig/libnfsidmap.pc |
257 |
|
|
%{_includedir}/nfsidmap.h |
258 |
guillomovitch |
1183795 |
%{_includedir}/nfsidmap_plugin.h |
259 |
guillomovitch |
1176651 |
%{_libdir}/libnfsidmap.so |
260 |
guillomovitch |
1417232 |
|