]>
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} |
78a45f4a | 33 | Version: 2.2.3 |
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 |
78a45f4a | 38 | # Source0-md5: e0f2b72ccd47a5b401cbc9f38b1d9073 |
73a8807b | 39 | Patch0: initdir.patch |
9a52de1b | 40 | URL: https://zfsonlinux.org/ |
bff0a8a1 JB |
41 | BuildRequires: autoconf >= 2.50 |
42 | BuildRequires: automake | |
43 | BuildRequires: libtool | |
bee8008b | 44 | BuildRequires: rpmbuild(macros) >= 2.030 |
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()\ | |
bee8008b | 259 | KERNEL_MAKE="ARCH=%_kernel_arch" \\\ |
3921af7f | 260 | %configure \\\ |
bee8008b JP |
261 | KERNEL_CC="%{__cc}" \\\ |
262 | ARCH_UM="ARCH=%{_kernel_arch}" \\\ | |
3921af7f JR |
263 | --disable-silent-rules \\\ |
264 | --with-config="kernel" \\\ | |
f2042a9c JR |
265 | --with-linux=%{_kernelsrcdir}\\\ |
266 | --with-linux-obj=%{_kernelsrcdir}\ | |
3921af7f JR |
267 | \ |
268 | %{__make} clean\ | |
269 | %{__make} %{?with_verbose:V=1}\ | |
270 | p=`pwd`\ | |
271 | %{__make} install DESTDIR=$p/installed INSTALL_MOD_DIR=misc\ | |
272 | %{nil} | |
273 | ||
2d67b9de | 274 | %{?with_kernel:%{expand:%create_kernel_packages}} |
bff0a8a1 JB |
275 | |
276 | %prep | |
bf636acc | 277 | %setup -q -n %{pname}-%{version} |
bff0a8a1 | 278 | %patch0 -p1 |
c6c7714f | 279 | |
c6c7714f | 280 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \ |
a477f632 | 281 | cmd/arc_summary |
73a8807b JR |
282 | |
283 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+@PYTHON_SHEBANG@(\s|$),#!%{__python3}\1,' \ | |
a477f632 JP |
284 | cmd/arcstat.in \ |
285 | cmd/dbufstat.in \ | |
286 | cmd/zilstat.in | |
73a8807b JR |
287 | |
288 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+bash(\s|$),#!/bin/bash\1,' \ | |
a477f632 JP |
289 | contrib/dracut/02zfsexpandknowledge/module-setup.sh.in \ |
290 | contrib/dracut/90zfs/module-setup.sh.in \ | |
291 | scripts/zimport.sh \ | |
292 | scripts/zloop.sh | |
bff0a8a1 JB |
293 | |
294 | %build | |
295 | %{__libtoolize} | |
296 | %{__aclocal} -I config | |
297 | %{__autoconf} | |
298 | %{__autoheader} | |
299 | %{__automake} | |
2d67b9de | 300 | %{?with_kernel:%{expand:%build_kernel_packages}} |
3921af7f JR |
301 | |
302 | %if %{with userspace} | |
bff0a8a1 JB |
303 | %configure \ |
304 | --disable-silent-rules \ | |
78b1ace3 | 305 | %{__enable_disable static_libs static} \ |
499b6b38 | 306 | --enable-pam \ |
efbd975f | 307 | --enable-systemd \ |
3921af7f | 308 | --with-config="user" \ |
bff0a8a1 | 309 | --with-linux=%{_kernelsrcdir} \ |
efbd975f | 310 | --with-pammoduledir=/%{_lib}/security \ |
ec61a23e JB |
311 | --with-systemdunitdir=%{systemdunitdir} \ |
312 | --with-systemdpresetdir=/etc/systemd/system-preset \ | |
eb047319 JR |
313 | --with-systemdmodulesloaddir=/etc/modules-load.d \ |
314 | --with-systemdgeneratordir=/lib/systemd/system-generators \ | |
bff0a8a1 JB |
315 | --with-udevdir=/lib/udev |
316 | ||
317 | %{__make} \ | |
318 | %{?with_verbose:V=1} | |
0b82b0f8 | 319 | |
6f114c88 JR |
320 | %if %{with python2} |
321 | cd contrib/pyzfs | |
322 | %py_build | |
323 | cd ../.. | |
324 | %endif | |
325 | ||
326 | %if %{with python3} | |
0b82b0f8 | 327 | cd contrib/pyzfs |
6f114c88 | 328 | %py3_build |
0b82b0f8 JR |
329 | cd ../.. |
330 | %endif | |
3921af7f | 331 | %endif |
bff0a8a1 JB |
332 | |
333 | %install | |
334 | rm -rf $RPM_BUILD_ROOT | |
335 | ||
3921af7f JR |
336 | %if %{with kernel} |
337 | install -d $RPM_BUILD_ROOT | |
338 | cp -a installed/* $RPM_BUILD_ROOT | |
339 | %endif | |
340 | ||
341 | %if %{with userspace} | |
bff0a8a1 JB |
342 | %{__make} install \ |
343 | DESTDIR=$RPM_BUILD_ROOT \ | |
3921af7f | 344 | DEFAULT_INIT_DIR=/etc/rc.d/init.d |
58d00fd6 | 345 | |
6f114c88 | 346 | %if %{with python2} |
0b82b0f8 JR |
347 | %{__rm} -rf $RPM_BUILD_ROOT%{py_sitescriptdir} |
348 | cd contrib/pyzfs | |
349 | %py_install | |
350 | ||
351 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
352 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
353 | ||
354 | %py_postclean | |
355 | cd ../.. | |
356 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/libzfs_core/test | |
357 | %endif | |
358 | ||
6f114c88 | 359 | %if %{with python3} |
6f114c88 JR |
360 | cd contrib/pyzfs |
361 | %py3_install | |
362 | cd ../.. | |
363 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/libzfs_core/test | |
364 | %endif | |
365 | ||
0b82b0f8 JR |
366 | # Debian specific stuff |
367 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/initramfs-tools | |
368 | ||
efbd975f JB |
369 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_zfs_key.la |
370 | # Ubuntu PAM config framework file | |
371 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/pam-configs/zfs_key | |
372 | ||
5bf6436c JR |
373 | # Package these? These are integration tests of the implementation. |
374 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/zfs/{zfs-tests,test-runner,runfiles} | |
375 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{raidz_test,test-runner}.1* | |
376 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/raidz_test | |
3921af7f | 377 | %endif |
bff0a8a1 JB |
378 | |
379 | %clean | |
380 | rm -rf $RPM_BUILD_ROOT | |
381 | ||
8fa57ce6 JP |
382 | %post libs -p /sbin/ldconfig |
383 | %postun libs -p /sbin/ldconfig | |
384 | ||
bff0a8a1 JB |
385 | %if %{with userspace} |
386 | %files | |
387 | %defattr(644,root,root,755) | |
e3c62688 | 388 | %doc AUTHORS COPYRIGHT LICENSE NEWS NOTICE README.md |
bff0a8a1 | 389 | %attr(755,root,root) /sbin/mount.zfs |
6f114c88 JR |
390 | %attr(755,root,root) %{_bindir}/arc_summary |
391 | %attr(755,root,root) %{_bindir}/arcstat | |
392 | %attr(755,root,root) %{_bindir}/dbufstat | |
757b8d94 | 393 | %attr(755,root,root) %{_bindir}/zilstat |
f390918a | 394 | %attr(755,root,root) %{_bindir}/zvol_wait |
bff0a8a1 JB |
395 | %attr(755,root,root) %{_sbindir}/fsck.zfs |
396 | %attr(755,root,root) %{_sbindir}/zdb | |
ec61a23e | 397 | %attr(755,root,root) %{_sbindir}/zed |
bff0a8a1 | 398 | %attr(755,root,root) %{_sbindir}/zfs |
499b6b38 | 399 | %attr(755,root,root) %{_sbindir}/zfs_ids_to_path |
20083352 | 400 | %attr(755,root,root) %{_sbindir}/zgenhostid |
bff0a8a1 JB |
401 | %attr(755,root,root) %{_sbindir}/zhack |
402 | %attr(755,root,root) %{_sbindir}/zinject | |
bff0a8a1 | 403 | %attr(755,root,root) %{_sbindir}/zpool |
499b6b38 | 404 | %attr(755,root,root) %{_sbindir}/zstream |
bff0a8a1 JB |
405 | %attr(755,root,root) %{_sbindir}/zstreamdump |
406 | %attr(755,root,root) %{_sbindir}/ztest | |
407 | %dir %{_sysconfdir}/zfs | |
408 | # package *.example as %doc? (they cannot act as default configuration) | |
409 | %{_sysconfdir}/zfs/vdev_id.conf.*.example | |
8d5ac0e4 | 410 | %{_sysconfdir}/zfs/zfs-functions |
ec61a23e JB |
411 | %dir %{_sysconfdir}/zfs/zed.d |
412 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zfs/zed.d/*.sh | |
413 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zfs/zed.d/zed.rc | |
5bf6436c JR |
414 | %dir %{_sysconfdir}/zfs/zpool.d |
415 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/zfs/zpool.d/* | |
58d00fd6 JR |
416 | %attr(754,root,root) /etc/rc.d/init.d/zfs-import |
417 | %attr(754,root,root) /etc/rc.d/init.d/zfs-mount | |
418 | %attr(754,root,root) /etc/rc.d/init.d/zfs-share | |
419 | %attr(754,root,root) /etc/rc.d/init.d/zfs-zed | |
2a5a5fc8 | 420 | %attr(754,root,root) /etc/rc.d/init.d/zfs-load-key |
58d00fd6 | 421 | %config(noreplace) %verify(not md5 mtime size) /etc/default/zfs |
e8614c59 | 422 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/zfs.conf |
efbd975f JB |
423 | # for zpool iostat/status -c smart |
424 | #/ets/sudoers.d/zfs | |
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 | |
2ce9ebfd | 432 | %{systemdunitdir}/zfs-load-key.service |
ec61a23e | 433 | %{systemdunitdir}/zfs-mount.service |
2a5a5fc8 JR |
434 | %{systemdunitdir}/zfs-scrub@.service |
435 | %{systemdunitdir}/zfs-scrub-monthly@.timer | |
436 | %{systemdunitdir}/zfs-scrub-weekly@.timer | |
ec61a23e | 437 | %{systemdunitdir}/zfs-share.service |
757b8d94 JR |
438 | %{systemdunitdir}/zfs-trim-monthly@.timer |
439 | %{systemdunitdir}/zfs-trim-weekly@.timer | |
440 | %{systemdunitdir}/zfs-trim@.service | |
f390918a JR |
441 | %{systemdunitdir}/zfs-volume-wait.service |
442 | %{systemdunitdir}/zfs-volumes.target | |
97dbbf93 | 443 | %{systemdunitdir}/zfs-zed.service |
bff0a8a1 JB |
444 | %attr(755,root,root) /lib/udev/vdev_id |
445 | %attr(755,root,root) /lib/udev/zvol_id | |
446 | /lib/udev/rules.d/60-zvol.rules | |
447 | /lib/udev/rules.d/69-vdev.rules | |
448 | /lib/udev/rules.d/90-zfs.rules | |
2e642361 JR |
449 | %dir %{_libexecdir}/zfs |
450 | %dir %{_libexecdir}/zfs/zed.d | |
451 | %attr(755,root,root) %{_libexecdir}/zfs/zed.d/*.sh | |
452 | %dir %{_libexecdir}/zfs/zpool.d | |
453 | %attr(755,root,root) %{_libexecdir}/zfs/zpool.d/* | |
a477f632 | 454 | %attr(755,root,root) %{_libexecdir}/zfs/zfs_prepare_disk |
bed78fc0 | 455 | %attr(755,root,root) %{_libexecdir}/zfs/zpool_influxdb |
8d5ac0e4 JB |
456 | %dir %{_datadir}/zfs |
457 | %attr(755,root,root) %{_datadir}/zfs/*.sh | |
bed78fc0 | 458 | %{_datadir}/zfs/compatibility.d |
8d5ac0e4 | 459 | %{bash_compdir}/zfs |
efbd975f | 460 | %{_mandir}/man1/arcstat.1* |
bff0a8a1 | 461 | %{_mandir}/man1/zhack.1* |
bff0a8a1 | 462 | %{_mandir}/man1/ztest.1* |
f390918a | 463 | %{_mandir}/man1/zvol_wait.1* |
bed78fc0 JR |
464 | %{_mandir}/man4/spl.4* |
465 | %{_mandir}/man4/zfs.4* | |
bff0a8a1 | 466 | %{_mandir}/man5/vdev_id.conf.5* |
757b8d94 | 467 | %{_mandir}/man7/vdevprops.7* |
bed78fc0 JR |
468 | %{_mandir}/man7/zfsconcepts.7* |
469 | %{_mandir}/man7/zfsprops.7* | |
470 | %{_mandir}/man7/zpool-features.7* | |
471 | %{_mandir}/man7/zpoolconcepts.7* | |
472 | %{_mandir}/man7/zpoolprops.7* | |
bff0a8a1 JB |
473 | %{_mandir}/man8/fsck.zfs.8* |
474 | %{_mandir}/man8/mount.zfs.8* | |
475 | %{_mandir}/man8/vdev_id.8* | |
476 | %{_mandir}/man8/zdb.8* | |
ec61a23e | 477 | %{_mandir}/man8/zed.8* |
bff0a8a1 | 478 | %{_mandir}/man8/zfs.8* |
499b6b38 JR |
479 | %{_mandir}/man8/zfs-allow.8* |
480 | %{_mandir}/man8/zfs-bookmark.8* | |
481 | %{_mandir}/man8/zfs-change-key.8* | |
482 | %{_mandir}/man8/zfs-clone.8* | |
483 | %{_mandir}/man8/zfs-create.8* | |
484 | %{_mandir}/man8/zfs-destroy.8* | |
485 | %{_mandir}/man8/zfs-diff.8* | |
486 | %{_mandir}/man8/zfs-get.8* | |
487 | %{_mandir}/man8/zfs-groupspace.8* | |
488 | %{_mandir}/man8/zfs-hold.8* | |
489 | %{_mandir}/man8/zfs-inherit.8* | |
499b6b38 JR |
490 | %{_mandir}/man8/zfs-list.8* |
491 | %{_mandir}/man8/zfs-load-key.8* | |
492 | %{_mandir}/man8/zfs-mount.8* | |
efbd975f JB |
493 | %{_mandir}/man8/zfs-mount-generator.8* |
494 | %{_mandir}/man8/zfs-program.8* | |
499b6b38 JR |
495 | %{_mandir}/man8/zfs-project.8* |
496 | %{_mandir}/man8/zfs-projectspace.8* | |
497 | %{_mandir}/man8/zfs-promote.8* | |
498 | %{_mandir}/man8/zfs-receive.8* | |
499 | %{_mandir}/man8/zfs-recv.8* | |
500 | %{_mandir}/man8/zfs-redact.8* | |
501 | %{_mandir}/man8/zfs-release.8* | |
502 | %{_mandir}/man8/zfs-rename.8* | |
503 | %{_mandir}/man8/zfs-rollback.8* | |
504 | %{_mandir}/man8/zfs-send.8* | |
505 | %{_mandir}/man8/zfs-set.8* | |
506 | %{_mandir}/man8/zfs-share.8* | |
507 | %{_mandir}/man8/zfs-snapshot.8* | |
508 | %{_mandir}/man8/zfs-unallow.8* | |
499b6b38 | 509 | %{_mandir}/man8/zfs-unload-key.8* |
757b8d94 | 510 | %{_mandir}/man8/zfs-unzone.8* |
499b6b38 JR |
511 | %{_mandir}/man8/zfs-unmount.8* |
512 | %{_mandir}/man8/zfs-upgrade.8* | |
513 | %{_mandir}/man8/zfs-userspace.8* | |
514 | %{_mandir}/man8/zfs-wait.8* | |
757b8d94 | 515 | %{_mandir}/man8/zfs-zone.8* |
499b6b38 | 516 | %{_mandir}/man8/zfs_ids_to_path.8* |
a477f632 | 517 | %{_mandir}/man8/zfs_prepare_disk.8* |
efbd975f JB |
518 | %{_mandir}/man8/zgenhostid.8* |
519 | %{_mandir}/man8/zinject.8* | |
520 | %{_mandir}/man8/zpool.8* | |
499b6b38 JR |
521 | %{_mandir}/man8/zpool-add.8* |
522 | %{_mandir}/man8/zpool-attach.8* | |
523 | %{_mandir}/man8/zpool-checkpoint.8* | |
524 | %{_mandir}/man8/zpool-clear.8* | |
525 | %{_mandir}/man8/zpool-create.8* | |
526 | %{_mandir}/man8/zpool-destroy.8* | |
527 | %{_mandir}/man8/zpool-detach.8* | |
528 | %{_mandir}/man8/zpool-events.8* | |
529 | %{_mandir}/man8/zpool-export.8* | |
530 | %{_mandir}/man8/zpool-get.8* | |
531 | %{_mandir}/man8/zpool-history.8* | |
532 | %{_mandir}/man8/zpool-import.8* | |
533 | %{_mandir}/man8/zpool-initialize.8* | |
534 | %{_mandir}/man8/zpool-iostat.8* | |
535 | %{_mandir}/man8/zpool-labelclear.8* | |
536 | %{_mandir}/man8/zpool-list.8* | |
537 | %{_mandir}/man8/zpool-offline.8* | |
538 | %{_mandir}/man8/zpool-online.8* | |
539 | %{_mandir}/man8/zpool-reguid.8* | |
540 | %{_mandir}/man8/zpool-remove.8* | |
541 | %{_mandir}/man8/zpool-reopen.8* | |
542 | %{_mandir}/man8/zpool-replace.8* | |
543 | %{_mandir}/man8/zpool-resilver.8* | |
544 | %{_mandir}/man8/zpool-scrub.8* | |
545 | %{_mandir}/man8/zpool-set.8* | |
546 | %{_mandir}/man8/zpool-split.8* | |
547 | %{_mandir}/man8/zpool-status.8* | |
548 | %{_mandir}/man8/zpool-sync.8* | |
549 | %{_mandir}/man8/zpool-trim.8* | |
550 | %{_mandir}/man8/zpool-upgrade.8* | |
551 | %{_mandir}/man8/zpool-wait.8* | |
bed78fc0 | 552 | %{_mandir}/man8/zpool_influxdb.8* |
499b6b38 | 553 | %{_mandir}/man8/zstream.8* |
efbd975f | 554 | %{_mandir}/man8/zstreamdump.8* |
bff0a8a1 JB |
555 | |
556 | %files libs | |
557 | %defattr(644,root,root,755) | |
558 | %attr(755,root,root) %{_libdir}/libnvpair.so.*.*.* | |
73a8807b | 559 | %attr(755,root,root) %ghost %{_libdir}/libnvpair.so.3 |
bff0a8a1 | 560 | %attr(755,root,root) %{_libdir}/libuutil.so.*.*.* |
73a8807b | 561 | %attr(755,root,root) %ghost %{_libdir}/libuutil.so.3 |
bff0a8a1 | 562 | %attr(755,root,root) %{_libdir}/libzfs.so.*.*.* |
73a8807b | 563 | %attr(755,root,root) %ghost %{_libdir}/libzfs.so.4 |
ec61a23e | 564 | %attr(755,root,root) %{_libdir}/libzfs_core.so.*.*.* |
73a8807b JR |
565 | %attr(755,root,root) %ghost %{_libdir}/libzfs_core.so.3 |
566 | %attr(755,root,root) %{_libdir}/libzfsbootenv.so.*.*.* | |
567 | %attr(755,root,root) %ghost %{_libdir}/libzfsbootenv.so.1 | |
bff0a8a1 | 568 | %attr(755,root,root) %{_libdir}/libzpool.so.*.*.* |
bed78fc0 | 569 | %attr(755,root,root) %ghost %{_libdir}/libzpool.so.5 |
bff0a8a1 JB |
570 | |
571 | %files devel | |
572 | %defattr(644,root,root,755) | |
573 | %attr(755,root,root) %{_libdir}/libnvpair.so | |
574 | %attr(755,root,root) %{_libdir}/libuutil.so | |
575 | %attr(755,root,root) %{_libdir}/libzfs.so | |
ec61a23e | 576 | %attr(755,root,root) %{_libdir}/libzfs_core.so |
73a8807b | 577 | %attr(755,root,root) %{_libdir}/libzfsbootenv.so |
bff0a8a1 JB |
578 | %attr(755,root,root) %{_libdir}/libzpool.so |
579 | %{_libdir}/libnvpair.la | |
580 | %{_libdir}/libuutil.la | |
581 | %{_libdir}/libzfs.la | |
ec61a23e | 582 | %{_libdir}/libzfs_core.la |
73a8807b | 583 | %{_libdir}/libzfsbootenv.la |
bff0a8a1 JB |
584 | %{_libdir}/libzpool.la |
585 | %{_includedir}/libspl | |
586 | %{_includedir}/libzfs | |
58d00fd6 JR |
587 | %{_pkgconfigdir}/libzfs.pc |
588 | %{_pkgconfigdir}/libzfs_core.pc | |
499b6b38 | 589 | %{_pkgconfigdir}/libzfsbootenv.pc |
bff0a8a1 | 590 | |
78b1ace3 | 591 | %if %{with static_libs} |
bff0a8a1 JB |
592 | %files static |
593 | %defattr(644,root,root,755) | |
594 | %{_libdir}/libnvpair.a | |
595 | %{_libdir}/libuutil.a | |
596 | %{_libdir}/libzfs.a | |
ec61a23e | 597 | %{_libdir}/libzfs_core.a |
499b6b38 | 598 | %{_libdir}/libzfsbootenv.a |
bff0a8a1 | 599 | %{_libdir}/libzpool.a |
78b1ace3 | 600 | %endif |
bff0a8a1 JB |
601 | |
602 | %files -n dracut-zfs | |
603 | %defattr(644,root,root,755) | |
757b8d94 | 604 | %doc contrib/dracut/README.md |
5bf6436c JR |
605 | %dir %{dracutlibdir}/modules.d/02zfsexpandknowledge |
606 | %attr(755,root,root) %{dracutlibdir}/modules.d/02zfsexpandknowledge/module-setup.sh | |
8fa57ce6 | 607 | %dir %{dracutlibdir}/modules.d/90zfs |
58d00fd6 | 608 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/export-zfs.sh |
bed78fc0 | 609 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/import-opts-generator.sh |
8fa57ce6 JP |
610 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/module-setup.sh |
611 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/mount-zfs.sh | |
612 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/parse-zfs.sh | |
540b3d9e | 613 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/zfs-env-bootfs.service |
5bf6436c | 614 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/zfs-generator.sh |
58d00fd6 | 615 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/zfs-lib.sh |
0b82b0f8 | 616 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/zfs-load-key.sh |
5bf6436c | 617 | %attr(755,root,root) %{dracutlibdir}/modules.d/90zfs/zfs-needshutdown.sh |
7d5c96fd | 618 | %{dracutlibdir}/modules.d/90zfs/zfs-nonroot-necessities.service |
499b6b38 JR |
619 | %{dracutlibdir}/modules.d/90zfs/zfs-rollback-bootfs.service |
620 | %{dracutlibdir}/modules.d/90zfs/zfs-snapshot-bootfs.service | |
0990438a | 621 | %{_mandir}/man7/dracut.zfs.7* |
499b6b38 JR |
622 | |
623 | %files -n pam-pam_zfs_key | |
624 | %defattr(644,root,root,755) | |
625 | %attr(755,root,root) /%{_lib}/security/pam_zfs_key.so | |
0b82b0f8 | 626 | |
6f114c88 | 627 | %if %{with python2} |
0b82b0f8 JR |
628 | %files -n python-pyzfs |
629 | %defattr(644,root,root,755) | |
630 | %doc contrib/pyzfs/README | |
631 | %{py_sitescriptdir}/libzfs_core | |
632 | %{py_sitescriptdir}/pyzfs-*-py*.egg-info | |
633 | %endif | |
6f114c88 JR |
634 | |
635 | %if %{with python3} | |
636 | %files -n python3-pyzfs | |
637 | %defattr(644,root,root,755) | |
638 | %doc contrib/pyzfs/README | |
639 | %{py3_sitescriptdir}/libzfs_core | |
640 | %{py3_sitescriptdir}/pyzfs-*-py*.egg-info | |
641 | %endif | |
bff0a8a1 JB |
642 | %endif |
643 | ||
644 | %if %{with kernel} | |
3921af7f | 645 | %files -n kernel-zfs-common-devel |
bff0a8a1 | 646 | %defattr(644,root,root,755) |
e11b2ec8 | 647 | %dir /usr/src/zfs-%{version} |
3921af7f | 648 | /usr/src/zfs-%{version}/include |
757b8d94 JR |
649 | /usr/src/zfs-%{version}/zfs.release.in |
650 | /usr/src/zfs-%{version}/zfs_config.h.in | |
bff0a8a1 | 651 | %endif |