]>
Commit | Line | Data |
---|---|---|
06fbfb84 JB |
1 | # TODO: |
2 | # - PLDify init script | |
bff0a8a1 JB |
3 | # |
4 | # Conditional build: | |
bff0a8a1 JB |
5 | %bcond_without kernel # don't build kernel modules |
6 | %bcond_without userspace # don't build userspace programs | |
6f114c88 JR |
7 | %bcond_without python2 # CPython 2.x module |
8 | %bcond_without python3 # CPython 3.x module | |
bff0a8a1 JB |
9 | %bcond_with verbose # verbose build (V=1) |
10 | # | |
3921af7f JR |
11 | # The goal here is to have main, userspace, package built once with |
12 | # simple release number, and only rebuild kernel packages with kernel | |
13 | # version as part of release number, without the need to bump release | |
14 | # with every kernel change. | |
15 | %if 0%{?_pld_builder:1} && %{with kernel} && %{with userspace} | |
16 | %{error:kernel and userspace cannot be built at the same time on PLD builders} | |
17 | exit 1 | |
18 | %endif | |
19 | ||
bff0a8a1 JB |
20 | %if %{without userspace} |
21 | # nothing to be placed to debuginfo package | |
22 | %define _enable_debug_packages 0 | |
23 | %endif | |
3921af7f JR |
24 | |
25 | %define _duplicate_files_terminate_build 0 | |
26 | ||
499b6b38 | 27 | %define rel 1 |
3921af7f | 28 | %define pname zfs |
bff0a8a1 JB |
29 | Summary: Native Linux port of the ZFS filesystem |
30 | Summary(pl.UTF-8): Natywny linuksowy port systemu plików ZFS | |
3921af7f | 31 | Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel} |
73a8807b | 32 | Version: 2.0.0 |
3921af7f | 33 | Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}} |
0b82b0f8 | 34 | License: CDDL |
bff0a8a1 | 35 | Group: Applications/System |
9a52de1b | 36 | Source0: https://github.com/openzfs/zfs/releases/download/zfs-%{version}/%{pname}-%{version}.tar.gz |
73a8807b JR |
37 | # Source0-md5: a6f2d1b87562d875d5b18f0580b8289f |
38 | Patch0: initdir.patch | |
0b82b0f8 | 39 | Patch1: am.patch |
9a52de1b | 40 | URL: https://zfsonlinux.org/ |
bff0a8a1 JB |
41 | BuildRequires: autoconf >= 2.50 |
42 | BuildRequires: automake | |
43 | BuildRequires: libtool | |
0b82b0f8 | 44 | BuildRequires: rpmbuild(macros) >= 1.714 |
2d67b9de JR |
45 | %if %{with kernel} |
46 | %{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2} | |
2d67b9de | 47 | %endif |
bff0a8a1 | 48 | %if %{with userspace} |
e3c62688 JB |
49 | # only for mmap_libaio test command |
50 | #BuildRequires: libaio-devel | |
bff0a8a1 JB |
51 | BuildRequires: libblkid-devel |
52 | BuildRequires: libselinux-devel | |
e3c62688 JB |
53 | # if xdr gets removed from glibc |
54 | #BuildRequires: libtirpc-devel | |
bff0a8a1 | 55 | BuildRequires: libuuid-devel |
e3c62688 JB |
56 | BuildRequires: openssl-devel |
57 | BuildRequires: pkgconfig | |
58 | BuildRequires: udev-devel | |
bff0a8a1 | 59 | BuildRequires: zlib-devel |
6f114c88 | 60 | %if %{with python2} |
e3c62688 JB |
61 | BuildRequires: python-cffi |
62 | BuildRequires: python-modules >= 1:2.6 | |
0b82b0f8 JR |
63 | BuildRequires: python-setuptools |
64 | %endif | |
6f114c88 | 65 | %if %{with python3} |
e3c62688 JB |
66 | BuildRequires: python3-cffi |
67 | BuildRequires: python3-modules >= 1:3.4 | |
6f114c88 JR |
68 | BuildRequires: python3-setuptools |
69 | %endif | |
56fca1f9 JB |
70 | %if %{with python2} || %{with python3} |
71 | BuildRequires: rpm-pythonprov | |
72 | %endif | |
bff0a8a1 JB |
73 | %endif |
74 | Requires: %{pname}-libs = %{version}-%{release} | |
0b82b0f8 | 75 | Obsoletes: spl < 0.7.9-2 |
bff0a8a1 JB |
76 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
77 | ||
8fa57ce6 JP |
78 | %define dracutlibdir %{_prefix}/lib/dracut |
79 | ||
bff0a8a1 JB |
80 | %description |
81 | ZFS is an advanced file system and volume manager which was originally | |
82 | developed for Solaris and is now maintained by the Illumos community. | |
83 | ||
84 | ZFS on Linux, which is also known as ZoL, is currently feature | |
85 | complete. It includes fully functional and stable SPA, DMU, ZVOL, and | |
86 | ZPL layers. | |
87 | ||
88 | %description -l pl.UTF-8 | |
89 | ZFS to zaawansowany system plików i zarządca wolumenów, oryginalnie | |
90 | stworzony dla Solarisa, obecnie utrzymywany przez społeczność Illumos. | |
91 | ||
92 | ZFS dla Linuksa, znany takża jako ZoL (ZFS on Linux), jest obecnie w | |
93 | pełni funkcjonalny. Zawiera w pełni funkcjonalne i stabilne warstwy | |
94 | SPA, DMU, ZVOL i ZPL. | |
95 | ||
96 | %package libs | |
97 | Summary: ZFS on Linux libraries | |
98 | Summary(pl.UTF-8): Biblioteki ZFS-a dla Linuksa | |
99 | License: CDDL | |
100 | Group: Libraries | |
8fa57ce6 | 101 | Requires(post,postun): /sbin/ldconfig |
bff0a8a1 JB |
102 | |
103 | %description libs | |
104 | ZFS on Linux libraries. | |
105 | ||
106 | %description libs -l pl.UTF-8 | |
107 | Biblioteki ZFS-a dla Linuksa. | |
108 | ||
109 | %package devel | |
110 | Summary: Header files for ZFS libraries | |
111 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek ZFS-a | |
112 | License: CDDL | |
113 | Group: Development/Libraries | |
114 | Requires: %{pname}-libs = %{version}-%{release} | |
115 | Requires: libselinux-devel | |
116 | Requires: libuuid-devel | |
117 | Requires: zlib-devel | |
118 | ||
119 | %description devel | |
120 | Header files for ZFS libraries. | |
121 | ||
122 | %description devel -l pl.UTF-8 | |
123 | Pliki nagłówkowe bibliotek ZFS-a. | |
124 | ||
125 | %package static | |
126 | Summary: Static ZFS libraries | |
127 | Summary(pl.UTF-8): Statyczne biblioteki ZFS-a | |
128 | License: CDDL | |
129 | Group: Development/Libraries | |
130 | Requires: %{pname}-devel = %{version}-%{release} | |
131 | ||
132 | %description static | |
133 | Static ZFS libraries. | |
134 | ||
135 | %description static -l pl.UTF-8 | |
136 | Statyczne biblioteki ZFS-a. | |
137 | ||
138 | %package -n dracut-zfs | |
139 | Summary: ZFS support for Dracut | |
140 | Summary(pl.UTF-8): Obsługa ZFS-a dla Dracuta | |
141 | Group: Applications/System | |
142 | Requires: %{pname} = %{version}-%{release} | |
143 | Requires: dracut | |
144 | ||
145 | %description -n dracut-zfs | |
146 | ZFS support for Dracut. | |
147 | ||
148 | %description -n dracut-zfs -l pl.UTF-8 | |
149 | Obsługa ZFS-a dla Dracuta. | |
150 | ||
499b6b38 JR |
151 | %package -n pam-pam_zfs_key |
152 | Summary: Unlock zfs datasets for user | |
153 | Group: Libraries | |
154 | Requires: %{pname}-libs = %{version}-%{release} | |
155 | Requires: pam | |
156 | ||
157 | %description -n pam-pam_zfs_key | |
158 | Unlock zfs datasets for user. | |
159 | ||
0b82b0f8 | 160 | %package -n python-pyzfs |
56fca1f9 JB |
161 | Summary: Python 2 wrapper for libzfs_core C library |
162 | Summary(pl.UTF-8): Interfejs Pythona 2 do biblioteki C libzfs_core | |
0b82b0f8 JR |
163 | License: Apache v2.0 |
164 | Group: Libraries/Python | |
165 | Requires: %{pname}-libs = %{version}-%{release} | |
166 | ||
167 | %description -n python-pyzfs | |
56fca1f9 JB |
168 | Python 2 wrapper for libzfs_core C library. |
169 | ||
170 | %description -n python-pyzfs -l pl.UTF-8 | |
171 | Interfejs Pythona 2 do biblioteki C libzfs_core. | |
0b82b0f8 | 172 | |
6f114c88 | 173 | %package -n python3-pyzfs |
56fca1f9 JB |
174 | Summary: Python 3 wrapper for libzfs_core C library |
175 | Summary(pl.UTF-8): Interfejs Pythona 3 do biblioteki C libzfs_core | |
6f114c88 JR |
176 | License: Apache v2.0 |
177 | Group: Libraries/Python | |
178 | Requires: %{pname}-libs = %{version}-%{release} | |
179 | ||
180 | %description -n python3-pyzfs | |
56fca1f9 JB |
181 | Python 3 wrapper for libzfs_core C library. |
182 | ||
183 | %description -n python3-pyzfs -l pl.UTF-8 | |
184 | Interfejs Pythona 3 do biblioteki C libzfs_core. | |
6f114c88 | 185 | |
3921af7f | 186 | %package -n kernel-zfs-common-devel |
bff0a8a1 JB |
187 | Summary: ZFS Linux kernel headers |
188 | Summary(pl.UTF-8): ZFS - pliki nagłówkowe jądra Linuksa | |
bff0a8a1 | 189 | Group: Development/Building |
0b82b0f8 | 190 | Obsoletes: kernel-spl-common-devel < 0.7.9-2 |
bff0a8a1 | 191 | |
3921af7f JR |
192 | %description -n kernel-zfs-common-devel |
193 | ZFS Linux kernel headers common for all PLD kernel versions. | |
194 | ||
195 | %description -n kernel-zfs-common-devel -l pl.UTF-8 | |
196 | ZFS - pliki nagłówkowe jądra Linuksa wspólne na wszystkich | |
197 | wersji jąder PLD. | |
198 | ||
199 | %define kernel_pkg()\ | |
200 | %package -n kernel%{_alt_kernel}-zfs\ | |
201 | Summary: ZFS Linux kernel modules\ | |
202 | Summary(pl.UTF-8): ZFS - moduły jądra Linuksa\ | |
203 | Release: %{rel}@%{_kernel_ver_str}\ | |
204 | Group: Base/Kernel\ | |
205 | Requires(post,postun): /sbin/depmod\ | |
3921af7f JR |
206 | %requires_releq_kernel\ |
207 | Requires(postun): %releq_kernel\ | |
3921af7f JR |
208 | \ |
209 | %description -n kernel%{_alt_kernel}-zfs\ | |
210 | ZFS Linux kernel modules.\ | |
211 | \ | |
212 | %description -n kernel%{_alt_kernel}-zfs -l pl.UTF-8\ | |
213 | ZFS - moduły jądra Linuksa.\ | |
214 | \ | |
215 | %package -n kernel%{_alt_kernel}-zfs-devel\ | |
216 | Summary: ZFS Linux kernel headers\ | |
217 | Summary(pl.UTF-8): ZFS - pliki nagłówkowe jądra Linuksa\ | |
218 | Release: %{rel}@%{_kernel_ver_str}\ | |
219 | Group: Development/Building\ | |
3921af7f JR |
220 | Requires: kernel%{_alt_kernel}-headers\ |
221 | Requires: kernel-zfs-common-devel\ | |
0b82b0f8 | 222 | Obsoletes: kernel-spl-devel < 0.7.9-2\ |
3921af7f JR |
223 | \ |
224 | %description -n kernel%{_alt_kernel}-zfs-devel\ | |
225 | ZFS Linux kernel headers configured for PLD kernel%{_alt_kernel},\ | |
226 | version %{_kernel_ver}.\ | |
227 | \ | |
228 | %description -n kernel%{_alt_kernel}-zfs-devel -l pl.UTF-8\ | |
229 | ZFS - pliki nagłówkowe jądra Linuksa skonfigurowane dla jądra PLD z\ | |
230 | pakietu kernel%{_alt_kernel} w wersji %{_kernel_ver}.\ | |
231 | \ | |
232 | %files -n kernel%{_alt_kernel}-zfs\ | |
233 | %defattr(644,root,root,755)\ | |
0b82b0f8 JR |
234 | %dir /lib/modules/%{_kernel_ver}/misc/lua\ |
235 | /lib/modules/%{_kernel_ver}/misc/lua/zlua.ko*\ | |
3921af7f JR |
236 | %dir /lib/modules/%{_kernel_ver}/misc/avl\ |
237 | /lib/modules/%{_kernel_ver}/misc/avl/zavl.ko*\ | |
67ee122d JR |
238 | %dir /lib/modules/%{_kernel_ver}/misc/icp\ |
239 | /lib/modules/%{_kernel_ver}/misc/icp/icp.ko*\ | |
3921af7f JR |
240 | %dir /lib/modules/%{_kernel_ver}/misc/nvpair\ |
241 | /lib/modules/%{_kernel_ver}/misc/nvpair/znvpair.ko*\ | |
0b82b0f8 JR |
242 | %dir /lib/modules/%{_kernel_ver}/misc/spl\ |
243 | /lib/modules/%{_kernel_ver}/misc/spl/spl.ko*\ | |
3921af7f JR |
244 | %dir /lib/modules/%{_kernel_ver}/misc/unicode\ |
245 | /lib/modules/%{_kernel_ver}/misc/unicode/zunicode.ko*\ | |
246 | %dir /lib/modules/%{_kernel_ver}/misc/zcommon\ | |
247 | /lib/modules/%{_kernel_ver}/misc/zcommon/zcommon.ko*\ | |
248 | %dir /lib/modules/%{_kernel_ver}/misc/zfs\ | |
249 | /lib/modules/%{_kernel_ver}/misc/zfs/zfs.ko*\ | |
499b6b38 JR |
250 | %dir /lib/modules/%{_kernel_ver}/misc/zstd\ |
251 | /lib/modules/%{_kernel_ver}/misc/zstd/zzstd.ko*\ | |
3921af7f JR |
252 | \ |
253 | %files -n kernel%{_alt_kernel}-zfs-devel\ | |
254 | %defattr(644,root,root,755)\ | |
255 | /usr/src/zfs-%{version}/%{_kernel_ver}\ | |
256 | \ | |
257 | %post -n kernel%{_alt_kernel}-zfs\ | |
258 | %depmod %{_kernel_ver}\ | |
259 | \ | |
260 | %postun -n kernel%{_alt_kernel}-zfs\ | |
261 | %depmod %{_kernel_ver}\ | |
262 | %{nil} | |
263 | ||
264 | %define build_kernel_pkg()\ | |
265 | %configure \\\ | |
266 | --disable-silent-rules \\\ | |
267 | --with-config="kernel" \\\ | |
f2042a9c JR |
268 | --with-linux=%{_kernelsrcdir}\\\ |
269 | --with-linux-obj=%{_kernelsrcdir}\ | |
3921af7f JR |
270 | \ |
271 | %{__make} clean\ | |
272 | %{__make} %{?with_verbose:V=1}\ | |
273 | p=`pwd`\ | |
274 | %{__make} install DESTDIR=$p/installed INSTALL_MOD_DIR=misc\ | |
275 | %{nil} | |
276 | ||
2d67b9de | 277 | %{?with_kernel:%{expand:%create_kernel_packages}} |
bff0a8a1 JB |
278 | |
279 | %prep | |
9a52de1b | 280 | %setup -q -n %{pname}-%{version} |
bff0a8a1 | 281 | %patch0 -p1 |
97d46215 | 282 | %patch1 -p1 |
c6c7714f JR |
283 | |
284 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python2(\s|$),#!%{__python}\1,' \ | |
285 | cmd/arc_summary/arc_summary2 | |
286 | ||
287 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \ | |
73a8807b JR |
288 | cmd/arc_summary/arc_summary3 |
289 | ||
290 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+@PYTHON_SHEBANG@(\s|$),#!%{__python3}\1,' \ | |
291 | cmd/arcstat/arcstat.in \ | |
292 | cmd/dbufstat/dbufstat.in | |
293 | ||
294 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+bash(\s|$),#!/bin/bash\1,' \ | |
295 | contrib/dracut/02zfsexpandknowledge/module-setup.sh.in \ | |
296 | contrib/dracut/90zfs/module-setup.sh.in \ | |
297 | scripts/zimport.sh \ | |
298 | scripts/zloop.sh | |
bff0a8a1 JB |
299 | |
300 | %build | |
301 | %{__libtoolize} | |
302 | %{__aclocal} -I config | |
303 | %{__autoconf} | |
304 | %{__autoheader} | |
305 | %{__automake} | |
2d67b9de | 306 | %{?with_kernel:%{expand:%build_kernel_packages}} |
3921af7f JR |
307 | |
308 | %if %{with userspace} | |
bff0a8a1 JB |
309 | %configure \ |
310 | --disable-silent-rules \ | |
63b2f900 | 311 | --enable-systemd \ |
499b6b38 JR |
312 | --enable-pam \ |
313 | --with-pammoduledir=/%{_lib}/security \ | |
3921af7f | 314 | --with-config="user" \ |
bff0a8a1 | 315 | --with-linux=%{_kernelsrcdir} \ |
ec61a23e JB |
316 | --with-systemdunitdir=%{systemdunitdir} \ |
317 | --with-systemdpresetdir=/etc/systemd/system-preset \ | |
eb047319 JR |
318 | --with-systemdmodulesloaddir=/etc/modules-load.d \ |
319 | --with-systemdgeneratordir=/lib/systemd/system-generators \ | |
bff0a8a1 JB |
320 | --with-udevdir=/lib/udev |
321 | ||
322 | %{__make} \ | |
323 | %{?with_verbose:V=1} | |
0b82b0f8 | 324 | |
6f114c88 JR |
325 | %if %{with python2} |
326 | cd contrib/pyzfs | |
327 | %py_build | |
328 | cd ../.. | |
329 | %endif | |
330 | ||
331 | %if %{with python3} | |
0b82b0f8 | 332 | cd contrib/pyzfs |
6f114c88 | 333 | %py3_build |
0b82b0f8 JR |
334 | cd ../.. |
335 | %endif | |
3921af7f | 336 | %endif |
bff0a8a1 JB |
337 | |
338 | %install | |
339 | rm -rf $RPM_BUILD_ROOT | |
340 | ||
3921af7f JR |
341 | %if %{with kernel} |
342 | install -d $RPM_BUILD_ROOT | |
343 | cp -a installed/* $RPM_BUILD_ROOT | |
cd1ae8a3 | 344 | # Drop unneeded spl compat links |
3a7a22e4 | 345 | %{__rm} -r $RPM_BUILD_ROOT/usr/src/spl-%{version} |
3921af7f JR |
346 | %endif |
347 | ||
348 | %if %{with userspace} | |
bff0a8a1 JB |
349 | %{__make} install \ |
350 | DESTDIR=$RPM_BUILD_ROOT \ | |
3921af7f | 351 | DEFAULT_INIT_DIR=/etc/rc.d/init.d |
58d00fd6 | 352 | |
6f114c88 | 353 | %if %{with python2} |
0b82b0f8 JR |
354 | %{__rm} -rf $RPM_BUILD_ROOT%{py_sitescriptdir} |
355 | cd contrib/pyzfs | |
356 | %py_install | |
357 | ||
358 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
359 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
360 | ||
361 | %py_postclean | |
362 | cd ../.. | |
363 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/libzfs_core/test | |
364 | %endif | |
365 | ||
6f114c88 | 366 | %if %{with python3} |
92a9ea66 | 367 | %{__rm} -r $RPM_BUILD_ROOT/usr/local/%{_lib}/python3* |
6f114c88 JR |
368 | cd contrib/pyzfs |
369 | %py3_install | |
370 | cd ../.. | |
371 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/libzfs_core/test | |
372 | %endif | |
373 | ||
0b82b0f8 JR |
374 | # Debian specific stuff |
375 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/initramfs-tools | |
376 | ||
5bf6436c JR |
377 | # Package these? These are integration tests of the implementation. |
378 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/zfs/{zfs-tests,test-runner,runfiles} | |
379 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{raidz_test,test-runner}.1* | |
380 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/raidz_test | |
3921af7f | 381 | %endif |
bff0a8a1 JB |
382 | |
383 | %clean | |
384 | rm -rf $RPM_BUILD_ROOT | |
385 | ||
8fa57ce6 JP |
386 | %post libs -p /sbin/ldconfig |
387 | %postun libs -p /sbin/ldconfig | |
388 | ||
bff0a8a1 JB |
389 | %if %{with userspace} |
390 | %files | |
391 | %defattr(644,root,root,755) | |
e3c62688 | 392 | %doc AUTHORS COPYRIGHT LICENSE NEWS NOTICE README.md |
bff0a8a1 | 393 | %attr(755,root,root) /sbin/mount.zfs |
6f114c88 JR |
394 | %attr(755,root,root) %{_bindir}/arc_summary |
395 | %attr(755,root,root) %{_bindir}/arcstat | |
396 | %attr(755,root,root) %{_bindir}/dbufstat | |
5bf6436c | 397 | %attr(755,root,root) %{_bindir}/zgenhostid |
f390918a | 398 | %attr(755,root,root) %{_bindir}/zvol_wait |
bff0a8a1 JB |
399 | %attr(755,root,root) %{_sbindir}/fsck.zfs |
400 | %attr(755,root,root) %{_sbindir}/zdb | |
ec61a23e | 401 | %attr(755,root,root) %{_sbindir}/zed |
bff0a8a1 | 402 | %attr(755,root,root) %{_sbindir}/zfs |
499b6b38 | 403 | %attr(755,root,root) %{_sbindir}/zfs_ids_to_path |
bff0a8a1 JB |
404 | %attr(755,root,root) %{_sbindir}/zhack |
405 | %attr(755,root,root) %{_sbindir}/zinject | |
bff0a8a1 | 406 | %attr(755,root,root) %{_sbindir}/zpool |
499b6b38 | 407 | %attr(755,root,root) %{_sbindir}/zstream |
bff0a8a1 JB |
408 | %attr(755,root,root) %{_sbindir}/zstreamdump |
409 | %attr(755,root,root) %{_sbindir}/ztest | |
410 | %dir %{_sysconfdir}/zfs | |
411 | # package *.example as %doc? (they cannot act as default configuration) | |
412 | %{_sysconfdir}/zfs/vdev_id.conf.*.example | |
ec61a23e JB |
413 | %dir %{_sysconfdir}/zfs/zed.d |
414 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zfs/zed.d/*.sh | |
415 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zfs/zed.d/zed.rc | |
5bf6436c JR |
416 | %dir %{_sysconfdir}/zfs/zpool.d |
417 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zfs/zpool.d/* | |
58d00fd6 JR |
418 | %attr(754,root,root) /etc/rc.d/init.d/zfs-import |
419 | %attr(754,root,root) /etc/rc.d/init.d/zfs-mount | |
420 | %attr(754,root,root) /etc/rc.d/init.d/zfs-share | |
421 | %attr(754,root,root) /etc/rc.d/init.d/zfs-zed | |
422 | %config(noreplace) %verify(not md5 mtime size) /etc/default/zfs | |
423 | /etc/zfs/zfs-functions | |
e8614c59 | 424 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/zfs.conf |
ec61a23e | 425 | /etc/systemd/system-preset/50-zfs.preset |
eb047319 | 426 | /lib/systemd/system-generators/zfs-mount-generator |
ec61a23e | 427 | %{systemdunitdir}/zfs.target |
c6c7714f | 428 | %{systemdunitdir}/zfs-import.service |
2e642361 | 429 | %{systemdunitdir}/zfs-import.target |
ec61a23e JB |
430 | %{systemdunitdir}/zfs-import-cache.service |
431 | %{systemdunitdir}/zfs-import-scan.service | |
432 | %{systemdunitdir}/zfs-mount.service | |
433 | %{systemdunitdir}/zfs-share.service | |
f390918a JR |
434 | %{systemdunitdir}/zfs-volume-wait.service |
435 | %{systemdunitdir}/zfs-volumes.target | |
97dbbf93 | 436 | %{systemdunitdir}/zfs-zed.service |
bff0a8a1 JB |
437 | %attr(755,root,root) /lib/udev/vdev_id |
438 | %attr(755,root,root) /lib/udev/zvol_id | |
439 | /lib/udev/rules.d/60-zvol.rules | |
440 | /lib/udev/rules.d/69-vdev.rules | |
441 | /lib/udev/rules.d/90-zfs.rules | |
2e642361 JR |
442 | %dir %{_libexecdir}/zfs |
443 | %dir %{_libexecdir}/zfs/zed.d | |
444 | %attr(755,root,root) %{_libexecdir}/zfs/zed.d/*.sh | |
445 | %dir %{_libexecdir}/zfs/zpool.d | |
446 | %attr(755,root,root) %{_libexecdir}/zfs/zpool.d/* | |
bff0a8a1 JB |
447 | %dir %{_datadir}/zfs |
448 | %attr(755,root,root) %{_datadir}/zfs/*.sh | |
bff0a8a1 | 449 | %{_mandir}/man1/zhack.1* |
bff0a8a1 | 450 | %{_mandir}/man1/ztest.1* |
f390918a | 451 | %{_mandir}/man1/zvol_wait.1* |
0b82b0f8 | 452 | %{_mandir}/man5/spl-module-parameters.5* |
bff0a8a1 | 453 | %{_mandir}/man5/vdev_id.conf.5* |
58d00fd6 | 454 | %{_mandir}/man5/zfs-events.5* |
ec61a23e | 455 | %{_mandir}/man5/zfs-module-parameters.5* |
bff0a8a1 JB |
456 | %{_mandir}/man5/zpool-features.5* |
457 | %{_mandir}/man8/fsck.zfs.8* | |
458 | %{_mandir}/man8/mount.zfs.8* | |
459 | %{_mandir}/man8/vdev_id.8* | |
460 | %{_mandir}/man8/zdb.8* | |
ec61a23e | 461 | %{_mandir}/man8/zed.8* |
bff0a8a1 | 462 | %{_mandir}/man8/zfs.8* |
0b82b0f8 JR |
463 | %{_mandir}/man8/zfs-mount-generator.8* |
464 | %{_mandir}/man8/zfs-program.8* | |
5bf6436c | 465 | %{_mandir}/man8/zgenhostid.8* |
bff0a8a1 JB |
466 | %{_mandir}/man8/zinject.8* |
467 | %{_mandir}/man8/zpool.8* | |
468 | %{_mandir}/man8/zstreamdump.8* | |
499b6b38 JR |
469 | %{_mandir}/man1/arcstat.1* |
470 | %{_mandir}/man8/zfs-allow.8* | |
471 | %{_mandir}/man8/zfs-bookmark.8* | |
472 | %{_mandir}/man8/zfs-change-key.8* | |
473 | %{_mandir}/man8/zfs-clone.8* | |
474 | %{_mandir}/man8/zfs-create.8* | |
475 | %{_mandir}/man8/zfs-destroy.8* | |
476 | %{_mandir}/man8/zfs-diff.8* | |
477 | %{_mandir}/man8/zfs-get.8* | |
478 | %{_mandir}/man8/zfs-groupspace.8* | |
479 | %{_mandir}/man8/zfs-hold.8* | |
480 | %{_mandir}/man8/zfs-inherit.8* | |
481 | %{_mandir}/man8/zfs-jail.8* | |
482 | %{_mandir}/man8/zfs-list.8* | |
483 | %{_mandir}/man8/zfs-load-key.8* | |
484 | %{_mandir}/man8/zfs-mount.8* | |
485 | %{_mandir}/man8/zfs-project.8* | |
486 | %{_mandir}/man8/zfs-projectspace.8* | |
487 | %{_mandir}/man8/zfs-promote.8* | |
488 | %{_mandir}/man8/zfs-receive.8* | |
489 | %{_mandir}/man8/zfs-recv.8* | |
490 | %{_mandir}/man8/zfs-redact.8* | |
491 | %{_mandir}/man8/zfs-release.8* | |
492 | %{_mandir}/man8/zfs-rename.8* | |
493 | %{_mandir}/man8/zfs-rollback.8* | |
494 | %{_mandir}/man8/zfs-send.8* | |
495 | %{_mandir}/man8/zfs-set.8* | |
496 | %{_mandir}/man8/zfs-share.8* | |
497 | %{_mandir}/man8/zfs-snapshot.8* | |
498 | %{_mandir}/man8/zfs-unallow.8* | |
499 | %{_mandir}/man8/zfs-unjail.8* | |
500 | %{_mandir}/man8/zfs-unload-key.8* | |
501 | %{_mandir}/man8/zfs-unmount.8* | |
502 | %{_mandir}/man8/zfs-upgrade.8* | |
503 | %{_mandir}/man8/zfs-userspace.8* | |
504 | %{_mandir}/man8/zfs-wait.8* | |
505 | %{_mandir}/man8/zfs_ids_to_path.8* | |
506 | %{_mandir}/man8/zfsconcepts.8* | |
507 | %{_mandir}/man8/zfsprops.8* | |
508 | %{_mandir}/man8/zpool-add.8* | |
509 | %{_mandir}/man8/zpool-attach.8* | |
510 | %{_mandir}/man8/zpool-checkpoint.8* | |
511 | %{_mandir}/man8/zpool-clear.8* | |
512 | %{_mandir}/man8/zpool-create.8* | |
513 | %{_mandir}/man8/zpool-destroy.8* | |
514 | %{_mandir}/man8/zpool-detach.8* | |
515 | %{_mandir}/man8/zpool-events.8* | |
516 | %{_mandir}/man8/zpool-export.8* | |
517 | %{_mandir}/man8/zpool-get.8* | |
518 | %{_mandir}/man8/zpool-history.8* | |
519 | %{_mandir}/man8/zpool-import.8* | |
520 | %{_mandir}/man8/zpool-initialize.8* | |
521 | %{_mandir}/man8/zpool-iostat.8* | |
522 | %{_mandir}/man8/zpool-labelclear.8* | |
523 | %{_mandir}/man8/zpool-list.8* | |
524 | %{_mandir}/man8/zpool-offline.8* | |
525 | %{_mandir}/man8/zpool-online.8* | |
526 | %{_mandir}/man8/zpool-reguid.8* | |
527 | %{_mandir}/man8/zpool-remove.8* | |
528 | %{_mandir}/man8/zpool-reopen.8* | |
529 | %{_mandir}/man8/zpool-replace.8* | |
530 | %{_mandir}/man8/zpool-resilver.8* | |
531 | %{_mandir}/man8/zpool-scrub.8* | |
532 | %{_mandir}/man8/zpool-set.8* | |
533 | %{_mandir}/man8/zpool-split.8* | |
534 | %{_mandir}/man8/zpool-status.8* | |
535 | %{_mandir}/man8/zpool-sync.8* | |
536 | %{_mandir}/man8/zpool-trim.8* | |
537 | %{_mandir}/man8/zpool-upgrade.8* | |
538 | %{_mandir}/man8/zpool-wait.8* | |
539 | %{_mandir}/man8/zpoolconcepts.8* | |
540 | %{_mandir}/man8/zpoolprops.8* | |
541 | %{_mandir}/man8/zstream.8* | |
bff0a8a1 JB |
542 | |
543 | %files libs | |
544 | %defattr(644,root,root,755) | |
545 | %attr(755,root,root) %{_libdir}/libnvpair.so.*.*.* | |
73a8807b | 546 | %attr(755,root,root) %ghost %{_libdir}/libnvpair.so.3 |
bff0a8a1 | 547 | %attr(755,root,root) %{_libdir}/libuutil.so.*.*.* |
73a8807b | 548 | %attr(755,root,root) %ghost %{_libdir}/libuutil.so.3 |
bff0a8a1 | 549 | %attr(755,root,root) %{_libdir}/libzfs.so.*.*.* |
73a8807b | 550 | %attr(755,root,root) %ghost %{_libdir}/libzfs.so.4 |
ec61a23e | 551 | %attr(755,root,root) %{_libdir}/libzfs_core.so.*.*.* |
73a8807b JR |
552 | %attr(755,root,root) %ghost %{_libdir}/libzfs_core.so.3 |
553 | %attr(755,root,root) %{_libdir}/libzfsbootenv.so.*.*.* | |
554 | %attr(755,root,root) %ghost %{_libdir}/libzfsbootenv.so.1 | |
bff0a8a1 | 555 | %attr(755,root,root) %{_libdir}/libzpool.so.*.*.* |
73a8807b | 556 | %attr(755,root,root) %ghost %{_libdir}/libzpool.so.4 |
bff0a8a1 JB |
557 | |
558 | %files devel | |
559 | %defattr(644,root,root,755) | |
560 | %attr(755,root,root) %{_libdir}/libnvpair.so | |
561 | %attr(755,root,root) %{_libdir}/libuutil.so | |
562 | %attr(755,root,root) %{_libdir}/libzfs.so | |
ec61a23e | 563 | %attr(755,root,root) %{_libdir}/libzfs_core.so |
73a8807b | 564 | %attr(755,root,root) %{_libdir}/libzfsbootenv.so |
bff0a8a1 JB |
565 | %attr(755,root,root) %{_libdir}/libzpool.so |
566 | %{_libdir}/libnvpair.la | |
567 | %{_libdir}/libuutil.la | |
568 | %{_libdir}/libzfs.la | |
ec61a23e | 569 | %{_libdir}/libzfs_core.la |
73a8807b | 570 | %{_libdir}/libzfsbootenv.la |
bff0a8a1 JB |
571 | %{_libdir}/libzpool.la |
572 | %{_includedir}/libspl | |
573 | %{_includedir}/libzfs | |
58d00fd6 JR |
574 | %{_pkgconfigdir}/libzfs.pc |
575 | %{_pkgconfigdir}/libzfs_core.pc | |
499b6b38 | 576 | %{_pkgconfigdir}/libzfsbootenv.pc |
bff0a8a1 JB |
577 | |
578 | %files static | |
579 | %defattr(644,root,root,755) | |
580 | %{_libdir}/libnvpair.a | |
581 | %{_libdir}/libuutil.a | |
582 | %{_libdir}/libzfs.a | |
ec61a23e | 583 | %{_libdir}/libzfs_core.a |
499b6b38 | 584 | %{_libdir}/libzfsbootenv.a |
bff0a8a1 JB |
585 | %{_libdir}/libzpool.a |
586 | ||
587 | %files -n dracut-zfs | |
588 | %defattr(644,root,root,755) | |
58d00fd6 | 589 | %doc contrib/dracut/README.dracut.markdown |
5bf6436c JR |
590 | %dir %{dracutlibdir}/modules.d/02zfsexpandknowledge |
591 | %attr(755,root,root) %{dracutlibdir}/modules.d/02zfsexpandknowledge/module-setup.sh | |
8fa57ce6 | 592 | %dir %{dracutlibdir}/modules.d/90zfs |
58d00fd6 | 593 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/export-zfs.sh |
8fa57ce6 JP |
594 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/module-setup.sh |
595 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/mount-zfs.sh | |
596 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/parse-zfs.sh | |
540b3d9e | 597 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/zfs-env-bootfs.service |
5bf6436c | 598 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/zfs-generator.sh |
58d00fd6 | 599 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/zfs-lib.sh |
0b82b0f8 | 600 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/zfs-load-key.sh |
5bf6436c | 601 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/zfs-needshutdown.sh |
499b6b38 JR |
602 | %{dracutlibdir}/modules.d/90zfs/zfs-rollback-bootfs.service |
603 | %{dracutlibdir}/modules.d/90zfs/zfs-snapshot-bootfs.service | |
604 | ||
605 | %files -n pam-pam_zfs_key | |
606 | %defattr(644,root,root,755) | |
607 | %attr(755,root,root) /%{_lib}/security/pam_zfs_key.so | |
0b82b0f8 | 608 | |
6f114c88 | 609 | %if %{with python2} |
0b82b0f8 JR |
610 | %files -n python-pyzfs |
611 | %defattr(644,root,root,755) | |
612 | %doc contrib/pyzfs/README | |
613 | %{py_sitescriptdir}/libzfs_core | |
614 | %{py_sitescriptdir}/pyzfs-*-py*.egg-info | |
615 | %endif | |
6f114c88 JR |
616 | |
617 | %if %{with python3} | |
618 | %files -n python3-pyzfs | |
619 | %defattr(644,root,root,755) | |
620 | %doc contrib/pyzfs/README | |
621 | %{py3_sitescriptdir}/libzfs_core | |
622 | %{py3_sitescriptdir}/pyzfs-*-py*.egg-info | |
623 | %endif | |
bff0a8a1 JB |
624 | %endif |
625 | ||
626 | %if %{with kernel} | |
3921af7f | 627 | %files -n kernel-zfs-common-devel |
bff0a8a1 | 628 | %defattr(644,root,root,755) |
e11b2ec8 | 629 | %dir /usr/src/zfs-%{version} |
3921af7f | 630 | /usr/src/zfs-%{version}/include |
0b82b0f8 JR |
631 | /usr/src/zfs-%{version}/zfs.release |
632 | /usr/src/zfs-%{version}/zfs_config.h | |
bff0a8a1 | 633 | %endif |