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