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