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