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