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