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
40 # Generic enable switch for systemd
45 # RHEL >= 7 comes with systemd
50 # Fedora >= 15 comes with systemd, but only >= 18 has
56 # opensuse >= 12.1 comes with systemd, but only >= 13.1
57 # has the proper macros
58 %if 0%{?suse_version} >= 1310
64 Release: @RELEASE@
%{?dist}
65 Summary: Commands to control the kernel modules and libraries
67 Group: System Environment
/Kernel
68 License: @ZFS_META_LICENSE@
69 URL: http
://zfsonlinux.org
/
70 Source0: %{name}-%{version}.tar.gz
71 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
72 ExclusiveArch: i386 i686 x86_64
74 # May build but untested on ppc/ppc64
75 ExcludeArch: ppc ppc64
77 Requires: spl
= %{version}
78 Requires: libzpool2
= %{version}
79 Requires: libnvpair1
= %{version}
80 Requires: libuutil1
= %{version}
81 Requires: libzfs2
= %{version}
82 Requires: %{name}-kmod = %{version}
83 Provides: %{name}-kmod-common = %{version}
85 # zfs-fuse provides the same commands and man pages that ZoL does. Renaming
86 # those on either side would conflict with all available documentation.
89 %if 0%{?rhel}%{?fedora}%{?suse_version}
90 BuildRequires
: zlib
-devel
91 BuildRequires
: libuuid
-devel
93 BuildRequires
: libblkid
-devel
97 Requires(post
): systemd
98 Requires(preun
): systemd
99 Requires(postun
): systemd
100 BuildRequires
: systemd
104 This package contains the ZFS
command line utilities.
106 %package -n libzpool2
107 Summary: Native ZFS pool library
for Linux
108 Group: System Environment
/Kernel
110 %description -n libzpool2
111 This package contains the zpool library
, which provides support
114 %post -n libzpool2
-p
/sbin
/ldconfig
115 %postun -n libzpool2
-p
/sbin
/ldconfig
117 %package -n libnvpair1
118 Summary: Solaris name
-value library
for Linux
119 Group: System Environment
/Kernel
121 %description -n libnvpair1
122 This package contains routines
for packing and unpacking name
-value
123 pairs. This functionality is used to portably transport data across
124 process boundaries
, between kernel and user space
, and can be used
125 to write self describing data structures on disk.
127 %post -n libnvpair1
-p
/sbin
/ldconfig
128 %postun -n libnvpair1
-p
/sbin
/ldconfig
130 %package -n libuutil1
131 Summary: Solaris userland utility library
for Linux
132 Group: System Environment
/Kernel
134 %description -n libuutil1
135 This library provides a variety of compatibility functions
for ZFS on Linux
:
136 * libspl
: The Solaris Porting Layer userland library
, which provides APIs
137 that
make it possible to run Solaris user code
in a Linux environment
138 with relatively minimal modification.
139 * libavl
: The Adelson
-Velskii Landis balanced binary tree manipulation
141 * libefi
: The Extensible Firmware Interface library
for GUID disk
143 * libshare
: NFS
, SMB
, and iSCSI service integration
for ZFS.
145 %post -n libuutil1
-p
/sbin
/ldconfig
146 %postun -n libuutil1
-p
/sbin
/ldconfig
149 Summary: Native ZFS filesystem library
for Linux
150 Group: System Environment
/Kernel
152 %description -n libzfs2
153 This package provides support
for managing ZFS filesystems
155 %post -n libzfs2
-p
/sbin
/ldconfig
156 %postun -n libzfs2
-p
/sbin
/ldconfig
158 %package -n libzfs2
-devel
159 Summary: Development headers
160 Group: System Environment
/Kernel
161 Requires: libzfs2
= %{version}
162 Requires: libzpool2
= %{version}
163 Requires: libnvpair1
= %{version}
164 Requires: libuutil1
= %{version}
165 Provides: libzpool2
-devel
166 Provides: libnvpair1
-devel
167 Provides: libuutil1
-devel
170 %description -n libzfs2
-devel
171 This package contains the header files needed
for building additional
172 applications against the ZFS libraries.
175 Summary: Test infrastructure
176 Group: System Environment
/Kernel
177 Requires: %{name}%{?_isa} = %{version}-%{release}
184 This package contains
test infrastructure and support scripts
for
185 validating the file system.
188 Summary: Dracut module
189 Group: System Environment
/Kernel
190 Requires: %{name}%{?_isa} = %{version}-%{release}
194 This package contains a dracut module used to construct an initramfs
195 image which is ZFS aware.
199 Summary: Initramfs module
200 Group: System Environment
/Kernel
201 Requires: %{name}%{?_isa} = %{version}-%{release}
202 Requires: %{name} = %{version}-%{release}
203 Requires: initramfs
-tools
205 %description initramfs
206 This package contains a initramfs module used to construct an initramfs
207 image which is ZFS aware.
212 %define debug
--enable-debug
214 %define debug
--disable
-debug
217 %define blkid
--with
-blkid
219 %define blkid
--without
-blkid
222 %define systemd
--enable-systemd
--with
-systemdunitdir
=%{_unitdir} --with-systemdpresetdir=%{_presetdir} --disable
-sysvinit
224 %define systemd
--enable-sysvinit
--disable
-systemd
232 --with
-udevdir
=%{_udevdir} \
233 --with
-udevruledir
=%{_udevruledir} \
234 --with
-dracutdir
=%{_dracutdir} \
242 %{__rm} -rf $RPM_BUILD_ROOT
243 make install DESTDIR
=%{?buildroot}
244 find
%{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \
;
248 %systemd_post zfs.target
250 if [ -x
/sbin
/chkconfig
]; then
251 /sbin
/chkconfig
--add zfs
-import
252 /sbin
/chkconfig
--add zfs
-mount
253 /sbin
/chkconfig
--add zfs
-share
254 /sbin
/chkconfig
--add zfs
-zed
261 %systemd_preun zfs.target
263 if [ $
1 -eq
0 ] && [ -x
/sbin
/chkconfig
]; then
264 /sbin
/chkconfig
--del zfs
-import
265 /sbin
/chkconfig
--del zfs
-mount
266 /sbin
/chkconfig
--del zfs
-share
267 /sbin
/chkconfig
--del zfs
-zed
274 %systemd_postun zfs.target
280 %{_libexecdir}/%{name}
286 %{_udevdir}/rules.d
/*
288 /usr
/lib
/modules
-load.d
/*
292 %config(noreplace
) %{_sysconfdir}/init.d
/*
293 %config(noreplace
) %{_initconfdir}/zfs
295 %config(noreplace
) %{_sysconfdir}/%{name}
298 %{_libdir}/libzpool.so.
*
301 %{_libdir}/libnvpair.so.
*
304 %{_libdir}/libuutil.so.
*
307 %{_libdir}/libzfs
*.so.
*
309 %files -n libzfs2
-devel
310 %{_datadir}/pkgconfig
/libzfs.pc
311 %{_datadir}/pkgconfig
/libzfs_core.pc
314 %doc AUTHORS COPYRIGHT DISCLAIMER
315 %doc OPENSOLARIS.LICENSE README.markdown
321 %doc contrib
/dracut
/README.dracut.markdown
322 %{_dracutdir}/modules.d
/*
326 %doc contrib
/initramfs
/README.initramfs.markdown
327 /usr
/share
/initramfs
-tools
/*
329 # Since we're not building the initramfs package,
330 # ignore those files.
331 %exclude /usr
/share
/initramfs
-tools
335 * Fri Jan
8 2016 Ned Bass
<bass6@llnl.gov
> - 0.6.5.4-1
337 - Assorted stability fixes
338 - Fixes
for NFS
-exported snapshots
339 - Fix kernel warning
in unlock_new_inode
() and deadlock
340 - Fix overflow
in P2ROUNDUP_TYPED macro
341 - Fix write performance issue due to bad zfs_dirty_data_max calculation
342 - Fix
builtin kernel builds
343 - Fix deadlock during direct memory reclaim
344 * Tue Oct
13 2015 Ned Bass
<bass6@llnl.gov
> - 0.6.5.3-1
345 - Don't import all visible pools
in zfs
-import init script zfsonlinux
/zfs
#3777
346 - Fix use
-after
-free
in vdev_disk_physio_completion zfsonlinux
/zfs
#3920
347 - Fix avl_is_empty
(&dn
->dn_dbufs
) assertion zfsonlinux
/zfs
#3865
348 * Wed Sep
30 2015 Ned Bass
<bass6@llnl.gov
> - 0.6.5.2-1
349 - Init script fixes zfsonlinux
/zfs
#3816
350 - Fix uioskip crash when skip to end zfsonlinux
/zfs
#3806 zfsonlinux/zfs#3850
351 - Userspace can trigger an assertion zfsonlinux
/zfs
#3792
352 - Fix quota userused underflow bug zfsonlinux
/zfs
#3789
353 - Fix performance regression from unwanted synchronous I
/O zfsonlinux
/zfs
#3780
354 - Fix deadlock during ARC reclaim zfsonlinux
/zfs
#3808 zfsonlinux/zfs#3834
355 - Fix deadlock with zfs receive and clamscan zfsonlinux
/zfs
#3719
356 - Allow NFS activity to defer snapshot unmounts zfsonlinux
/zfs
#3794
357 - Linux
4.3 compatibility zfsonlinux
/zfs
#3799
358 - Zed reload fixes zfsonlinux
/zfs
#3773
359 - Fix PAX
Patch/Grsec SLAB_USERCOPY panic zfsonlinux
/zfs
#3796
360 - Always remove during dkms uninstall
/update zfsonlinux
/spl
#476
361 * Sat Sep
19 2015 Ned Bass
<bass6@llnl.gov
> - 0.6.5.1-1
362 - Fix zvol corruption with TRIM
/discard zfsonlinux
/zfs
#3798
363 - Fix NULL as mount
(2) syscall data parameter zfsonlinux
/zfs
#3804
364 - Fix xattr
=sa dataset property not honored zfsonlinux
/zfs
#3787
365 * Fri Sep
11 2015 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.5-1
366 - Released
0.6.5-1, detailed release notes are available at
:
367 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.6.5
368 * Wed Apr
8 2015 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.4-1
370 * Thu Jun
12 2014 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.3-1
372 * Wed Aug
21 2013 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.2-1
374 * Fri Mar
22 2013 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.1-1
375 - First official stable release.