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