2 %global _libdir
/%{_lib}
4 # Set the default udev directory based on distribution.
5 %if %{undefined _udevdir}
6 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7 || 0%{?centos} >= 7
7 %global _udevdir
%{_prefix}/lib
/udev
9 %global _udevdir
/lib
/udev
13 # Set the default udevrule directory based on distribution.
14 %if %{undefined _udevruledir}
15 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7 || 0%{?centos} >= 7
16 %global _udevruledir
%{_prefix}/lib
/udev
/rules.d
18 %global _udevruledir
/lib
/udev
/rules.d
22 # Set the default dracut directory based on distribution.
23 %if %{undefined _dracutdir}
24 %if 0%{?fedora} >= 17 || 0%{?rhel} >= 7 || 0%{?centos} >= 7
25 %global _dracutdir
%{_prefix}/lib
/dracut
27 %global _dracutdir
%{_prefix}/share
/dracut
31 # Set the default _initconfdir when undefined.
32 %if %{undefined _initconfdir}
33 %global _initconfdir
/etc
/sysconfig
39 # Python permits the !/usr/bin/python shebang for scripts that are cross
40 # compatible between python2 and python3, but Fedora 28 does not. Fedora
41 # wants us to choose python3 for cross-compatible scripts. Since we want
42 # to support python2 and python3 users, exclude our scripts from Fedora 28's
43 # RPM build check, so that we don't get a bunch of build warnings.
45 # Details: https://github.com/zfsonlinux/zfs/issues/7360
47 %global __brp_mangle_shebangs_exclude_from arc_summary.py|arcstat.py|dbufstat.py|
test-runner.py
49 # Generic enable switch for systemd
54 # RHEL >= 7 comes with systemd
59 # Fedora >= 15 comes with systemd, but only >= 18 has
65 # opensuse >= 12.1 comes with systemd, but only >= 13.1
66 # has the proper macros
67 %if 0%{?suse_version} >= 1310
73 Release: @RELEASE@
%{?dist}
74 Summary: Commands to control the kernel modules and libraries
76 Group: System Environment
/Kernel
77 License: @ZFS_META_LICENSE@
78 URL: http
://zfsonlinux.org
/
79 Source0: %{name}-%{version}.tar.gz
80 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
81 Requires: spl
= %{version}
82 Requires: libzpool2
= %{version}
83 Requires: libnvpair1
= %{version}
84 Requires: libuutil1
= %{version}
85 Requires: libzfs2
= %{version}
86 Requires: %{name}-kmod = %{version}
87 Provides: %{name}-kmod-common = %{version}
89 # zfs-fuse provides the same commands and man pages that ZoL does. Renaming
90 # those on either side would conflict with all available documentation.
93 %if 0%{?rhel}%{?fedora}%{?suse_version}
94 BuildRequires
: zlib
-devel
95 BuildRequires
: libuuid
-devel
96 BuildRequires
: libblkid
-devel
97 BuildRequires
: libudev
-devel
98 BuildRequires
: libattr
-devel
100 BuildRequires
: libtirpc
-devel
105 Requires(post
): systemd
106 Requires(preun
): systemd
107 Requires(postun
): systemd
110 # The zpool iostat/status -c scripts call some utilities like lsblk and iostat
115 This package contains the ZFS
command line utilities.
117 %package -n libzpool2
118 Summary: Native ZFS pool library
for Linux
119 Group: System Environment
/Kernel
121 %description -n libzpool2
122 This package contains the zpool library
, which provides support
125 %post -n libzpool2
-p
/sbin
/ldconfig
126 %postun -n libzpool2
-p
/sbin
/ldconfig
128 %package -n libnvpair1
129 Summary: Solaris name
-value library
for Linux
130 Group: System Environment
/Kernel
132 %description -n libnvpair1
133 This package contains routines
for packing and unpacking name
-value
134 pairs. This functionality is used to portably transport data across
135 process boundaries
, between kernel and user space
, and can be used
136 to write self describing data structures on disk.
138 %post -n libnvpair1
-p
/sbin
/ldconfig
139 %postun -n libnvpair1
-p
/sbin
/ldconfig
141 %package -n libuutil1
142 Summary: Solaris userland utility library
for Linux
143 Group: System Environment
/Kernel
145 %description -n libuutil1
146 This library provides a variety of compatibility functions
for ZFS on Linux
:
147 * libspl
: The Solaris Porting Layer userland library
, which provides APIs
148 that
make it possible to run Solaris user code
in a Linux environment
149 with relatively minimal modification.
150 * libavl
: The Adelson
-Velskii Landis balanced binary tree manipulation
152 * libefi
: The Extensible Firmware Interface library
for GUID disk
154 * libshare
: NFS
, SMB
, and iSCSI service integration
for ZFS.
156 %post -n libuutil1
-p
/sbin
/ldconfig
157 %postun -n libuutil1
-p
/sbin
/ldconfig
160 Summary: Native ZFS filesystem library
for Linux
161 Group: System Environment
/Kernel
163 %description -n libzfs2
164 This package provides support
for managing ZFS filesystems
166 %post -n libzfs2
-p
/sbin
/ldconfig
167 %postun -n libzfs2
-p
/sbin
/ldconfig
169 %package -n libzfs2
-devel
170 Summary: Development headers
171 Group: System Environment
/Kernel
172 Requires: libzfs2
= %{version}
173 Requires: libzpool2
= %{version}
174 Requires: libnvpair1
= %{version}
175 Requires: libuutil1
= %{version}
176 Provides: libzpool2
-devel
177 Provides: libnvpair1
-devel
178 Provides: libuutil1
-devel
181 %description -n libzfs2
-devel
182 This package contains the header files needed
for building additional
183 applications against the ZFS libraries.
186 Summary: Test infrastructure
187 Group: System Environment
/Kernel
188 Requires: %{name}%{?_isa} = %{version}-%{release}
200 %if 0%{?rhel}%{?fedora}%{?suse_version}
201 BuildRequires
: libaio
-devel
206 This package contains
test infrastructure and support scripts
for
207 validating the file system.
210 Summary: Dracut module
211 Group: System Environment
/Kernel
212 Requires: %{name}%{?_isa} = %{version}-%{release}
214 Requires: /usr
/bin
/awk
218 This package contains a dracut module used to construct an initramfs
219 image which is ZFS aware.
223 Summary: Initramfs module
224 Group: System Environment
/Kernel
225 Requires: %{name}%{?_isa} = %{version}-%{release}
226 Requires: %{name} = %{version}-%{release}
227 Requires: initramfs
-tools
229 %description initramfs
230 This package contains a initramfs module used to construct an initramfs
231 image which is ZFS aware.
236 %define debug
--enable-debug
238 %define debug
--disable
-debug
241 %define systemd
--enable-systemd
--with
-systemdunitdir
=%{_unitdir} --with-systemdpresetdir=%{_presetdir} --disable
-sysvinit
242 %define systemd_svcs zfs
-import
-cache.service zfs
-import
-scan.service zfs
-mount.service zfs
-share.service zfs
-zed.service zfs.target zfs
-import.target
244 %define systemd
--enable-sysvinit
--disable
-systemd
252 --with
-udevdir
=%{_udevdir} \
253 --with
-udevruledir
=%{_udevruledir} \
254 --with
-dracutdir
=%{_dracutdir} \
261 %{__rm} -rf $RPM_BUILD_ROOT
262 make install DESTDIR
=%{?buildroot}
263 find
%{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \
;
267 %if 0%{?systemd_post:1}
268 %systemd_post %{systemd_svcs}
270 if [ "$
1"
= "
1"
-o "$
1"
= "
install"
] ; then
271 # Initial installation
272 systemctl preset
%{systemd_svcs} >/dev
/null || true
276 if [ -x
/sbin
/chkconfig
]; then
277 /sbin
/chkconfig
--add zfs
-import
278 /sbin
/chkconfig
--add zfs
-mount
279 /sbin
/chkconfig
--add zfs
-share
280 /sbin
/chkconfig
--add zfs
-zed
287 %if 0%{?systemd_preun:1}
288 %systemd_preun %{systemd_svcs}
290 if [ "$
1"
= "
0"
-o "$
1"
= "remove"
] ; then
291 # Package removal, not upgrade
292 systemctl
--no
-reload disable
%{systemd_svcs} >/dev
/null || true
293 systemctl stop
%{systemd_svcs} >/dev
/null || true
297 if [ "$
1"
= "
0"
-o "$
1"
= "remove"
] && [ -x
/sbin
/chkconfig
]; then
298 /sbin
/chkconfig
--del zfs
-import
299 /sbin
/chkconfig
--del zfs
-mount
300 /sbin
/chkconfig
--del zfs
-share
301 /sbin
/chkconfig
--del zfs
-zed
308 %if 0%{?systemd_postun:1}
309 %systemd_postun %{systemd_svcs}
311 systemctl
--system daemon
-reload
>/dev
/null || true
318 %{_libexecdir}/%{name}
324 %{_udevdir}/rules.d
/*
326 /usr
/lib
/modules
-load.d
/*
330 %config(noreplace
) %{_sysconfdir}/init.d
/*
331 %config(noreplace
) %{_initconfdir}/zfs
333 %config(noreplace
) %{_sysconfdir}/%{name}
334 %attr(440, root
, root
) %config(noreplace
) %{_sysconfdir}/sudoers.d
/*
337 %{_libdir}/libzpool.so.
*
340 %{_libdir}/libnvpair.so.
*
343 %{_libdir}/libuutil.so.
*
346 %{_libdir}/libzfs
*.so.
*
348 %files -n libzfs2
-devel
349 %{_datadir}/pkgconfig
/libzfs.pc
350 %{_datadir}/pkgconfig
/libzfs_core.pc
353 %doc AUTHORS COPYRIGHT DISCLAIMER
354 %doc OPENSOLARIS.LICENSE README.markdown
360 %doc contrib
/dracut
/README.dracut.markdown
361 %{_dracutdir}/modules.d
/*
365 %doc contrib
/initramfs
/README.initramfs.markdown
366 /usr
/share
/initramfs
-tools
/*
368 # Since we're not building the initramfs package,
369 # ignore those files.
370 %exclude /usr
/share
/initramfs
-tools
374 * Thu Sep
13 2018 Tony Hutter
<hutter2@llnl.gov
> - 0.7.11-1
375 - Released
0.7.11-1, detailed release notes are available at
:
376 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.11
377 * Wed Sep
05 2018 Tony Hutter
<hutter2@llnl.gov
> - 0.7.10-1
378 - Released
0.7.10-1, detailed release notes are available at
:
379 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.10
380 * Tue May
08 2018 Tony Hutter
<hutter2@llnl.gov
> - 0.7.9-1
381 - Released
0.7.9-1, detailed release notes are available at
:
382 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.9
383 * Mon Apr
09 2018 Tony Hutter
<hutter2@llnl.gov
> - 0.7.8-1
384 - Released
0.7.8-1, detailed release notes are available at
:
385 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.8
386 * Wed Mar
14 2018 Tony Hutter
<hutter2@llnl.gov
> - 0.7.7-1
387 - Released
0.7.7-1, detailed release notes are available at
:
388 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.7
389 * Thu Feb
01 2018 Tony Hutter
<hutter2@llnl.gov
> - 0.7.6-1
390 - Released
0.7.6-1, detailed release notes are available at
:
391 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.6
392 * Mon Dec
18 2017 Tony Hutter
<hutter2@llnl.gov
> - 0.7.5-1
393 - Released
0.7.5-1, detailed release notes are available at
:
394 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.5
395 * Thu Dec
07 2017 Tony Hutter
<hutter2@llnl.gov
> - 0.7.4-1
396 - Released
0.7.4-1, detailed release notes are available at
:
397 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.4
398 * Wed Oct
18 2017 Tony Hutter
<hutter2@llnl.gov
> - 0.7.3-1
399 - Released
0.7.3-1, detailed release notes are available at
:
400 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.3
401 * Fri Sep
22 2017 Tony Hutter
<hutter2@llnl.gov
> - 0.7.2-1
402 - Released
0.7.2-1, detailed release notes are available at
:
403 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.2
404 * Tue Aug
8 2017 Tony Hutter
<hutter2@llnl.gov
> - 0.7.1-1
405 - Released
0.7.1-1, detailed release notes are available at
:
406 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.1
407 * Wed Jul
26 2017 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.7.0-1
408 - Released
0.7.0-1, detailed release notes are available at
:
409 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.7.0