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