1 %define module @PACKAGE@
4 %if 0%{?rhel}%{?fedora}
5 %define ksrc $
{kernel_version
##*___}
8 if [ -e "
/usr
/src
/linux
-$
{kernel_version%
%___*}"
]; then \
9 echo "
/usr
/src
/linux
-$
{kernel_version%
%___*}"
; \
10 elif [ -e "
/lib
/modules
/$
{kernel_version%
%___*}/source"
]; then \
11 echo "
/lib
/modules
/$
{kernel_version%
%___*}/source"
; \
13 echo "
/lib
/modules
/$
{kernel_version%
%___*}/build"
; \
19 %if 0%{?rhel}%{?fedora}
20 %define kobj $
{kernel_version
##*___}
23 if [ -e "
/usr
/src
/linux
-$
{kernel_version%
%___*}"
]; then \
24 echo "
/usr
/src
/linux
-$
{kernel_version%
%___*}"
; \
26 echo "
/lib
/modules
/$
{kernel_version%
%___*}/build"
; \
31 #define repo rpmfusion
34 # (un)define the next line to either build for the newest or all current kernels
35 %define buildforkernels newest
36 #define buildforkernels current
37 #define buildforkernels akmod
40 %bcond_with debug_dmu_tx
46 Release: @RELEASE@
%{?dist}
47 Summary: Kernel module
(s
)
49 Group: System Environment
/Kernel
50 License: @ZFS_META_LICENSE@
51 URL: http
://zfsonlinux.org
/
52 Source0: %{module}-%{version}.tar.gz
54 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id} -u
-n
)
56 # The developments headers will conflict with the dkms packages.
57 Conflicts: %{module}-dkms
61 # Building for a repository use the proper build-sysbuild package
62 # to determine which kernel-devel packages should be installed.
63 BuildRequires
: %{_bindir}/kmodtool
64 %{!?kernels:BuildRequires: buildsys-build-%{repo}-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu}}
68 # Building local packages attempt to to use the installed kernel.
69 %{?rhel:BuildRequires: kernel-devel}
70 %{?fedora:BuildRequires: kernel-devel}
71 %{?suse_version:BuildRequires: kernel-source}
73 %if !%{defined kernels} && !%{defined build_src_rpm}
74 %if 0%{?rhel}%{?fedora}%{?suse_version}
75 %define kernels %
(ls
-1 /usr
/src
/kernels
)
77 %define kernels %
(ls
-1 /lib
/modules
)
82 %if 0%{?rhel}%{?fedora}%{?suse_version}
83 BuildRequires
: kmod
-spl
-devel
= %{version}
84 %global KmodsRequires kmod
-spl
85 %global KmodsDevelRequires kmod
-spl
-devel
86 %global KmodsMetaRequires spl
-kmod
93 # Kmodtool does its magic here. A patched version of kmodtool is shipped
94 # with the source rpm until kmod development packages are supported upstream.
95 # https://bugzilla.rpmfusion.org/show_bug.cgi?id=2714
96 %{expand:%(bash %{SOURCE10} --target %{_target_cpu} %{?repo:--repo %{?repo}} --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} --devel %{?prefix:--prefix "%{?prefix}"} %{?kernels:--for-kernels "%{?kernels}"} %{?kernelbuildroot:--buildroot "%{?kernelbuildroot}"} 2>/dev/null) }
100 This package contains the ZFS kernel modules.
103 # Error out if there was something wrong with kmodtool.
106 # Print kmodtool output for debugging purposes:
107 bash
%{SOURCE10} --target %{_target_cpu} %{?repo:--repo %{?repo}} --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} --devel %{?prefix:--prefix "%{?prefix}"} %{?kernels:--for-kernels "%{?kernels}"} %{?kernelbuildroot:--buildroot "%{?kernelbuildroot}"} 2>/dev
/null
110 %define debug
--enable-debug
112 %define debug
--disable
-debug
115 %if %{with debug_dmu_tx}
116 %define debug_dmu_tx
--enable-debug
-dmu
-tx
118 %define debug_dmu_tx
--disable
-debug
-dmu
-tx
122 # Allow the overriding of spl locations
124 %if %{defined require_splver}
125 %define splver
%{require_splver}
127 %define splver
%{version}
130 %if %{defined require_spldir}
131 %define spldir
%{require_spldir}
133 %define spldir
%{_usrsrc}/spl-%{splver}
136 %if %{defined require_splobj}
137 %define splobj
%{require_splobj}
139 %define splobj
%{spldir}/${kernel_version%%___*}
143 # Leverage VPATH from configure to avoid making multiple copies.
144 %define _configure ..
/%{module}-%{version}/configure
148 for kernel_version
in %{?kernel_versions}; do
149 %{__mkdir} _kmod_build_${kernel_version%%___*}
153 for kernel_version
in %{?kernel_versions}; do
154 cd _kmod_build_$
{kernel_version%
%___*}
156 --with
-config
=kernel \
157 --with
-linux
=%{ksrc} \
158 --with
-linux
-obj
=%{kobj} \
159 --with
-spl
="
%{spldir}" \
160 --with
-spl
-obj
="
%{splobj}" \
169 rm -rf $
{RPM_BUILD_ROOT
}
171 # Relies on the kernel 'modules_install' make target.
172 for kernel_version
in %{?kernel_versions}; do
173 cd _kmod_build_$
{kernel_version%
%___*}
175 DESTDIR
=$
{RPM_BUILD_ROOT
} \
176 %{?prefix:INSTALL_MOD_PATH=%{?prefix}} \
177 INSTALL_MOD_DIR
=%{kmodinstdir_postfix}
180 chmod u
+x $
{RPM_BUILD_ROOT
}%{kmodinstdir_prefix}/*/extra
/*/*/*
185 rm -rf $RPM_BUILD_ROOT
188 * Fri Jan
8 2016 Ned Bass
<bass6@llnl.gov
> - 0.6.5.4-1
190 - Assorted stability fixes
191 - Fixes
for NFS
-exported snapshots
192 - Fix kernel warning
in unlock_new_inode
() and deadlock
193 - Fix overflow
in P2ROUNDUP_TYPED macro
194 - Fix write performance issue due to bad zfs_dirty_data_max calculation
195 - Fix
builtin kernel builds
196 - Fix deadlock during direct memory reclaim
197 * Tue Oct
13 2015 Ned Bass
<bass6@llnl.gov
> - 0.6.5.3-1
198 - Don't import all visible pools
in zfs
-import init script zfsonlinux
/zfs
#3777
199 - Fix use
-after
-free
in vdev_disk_physio_completion zfsonlinux
/zfs
#3920
200 - Fix avl_is_empty
(&dn
->dn_dbufs
) assertion zfsonlinux
/zfs
#3865
201 * Wed Sep
30 2015 Ned Bass
<bass6@llnl.gov
> - 0.6.5.2-1
202 - Init script fixes zfsonlinux
/zfs
#3816
203 - Fix uioskip crash when skip to end zfsonlinux
/zfs
#3806 zfsonlinux/zfs#3850
204 - Userspace can trigger an assertion zfsonlinux
/zfs
#3792
205 - Fix quota userused underflow bug zfsonlinux
/zfs
#3789
206 - Fix performance regression from unwanted synchronous I
/O zfsonlinux
/zfs
#3780
207 - Fix deadlock during ARC reclaim zfsonlinux
/zfs
#3808 zfsonlinux/zfs#3834
208 - Fix deadlock with zfs receive and clamscan zfsonlinux
/zfs
#3719
209 - Allow NFS activity to defer snapshot unmounts zfsonlinux
/zfs
#3794
210 - Linux
4.3 compatibility zfsonlinux
/zfs
#3799
211 - Zed reload fixes zfsonlinux
/zfs
#3773
212 - Fix PAX
Patch/Grsec SLAB_USERCOPY panic zfsonlinux
/zfs
#3796
213 - Always remove during dkms uninstall
/update zfsonlinux
/spl
#476
214 * Sat Sep
19 2015 Ned Bass
<bass6@llnl.gov
> - 0.6.5.1-1
215 - Fix zvol corruption with TRIM
/discard zfsonlinux
/zfs
#3798
216 - Fix NULL as mount
(2) syscall data parameter zfsonlinux
/zfs
#3804
217 - Fix xattr
=sa dataset property not honored zfsonlinux
/zfs
#3787
218 * Fri Sep
11 2015 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.5-1
219 - Released
0.6.5-1, detailed release notes are available at
:
220 - https
://github.com
/zfsonlinux
/zfs
/releases
/tag
/zfs
-0.6.5
221 * Wed Apr
8 2015 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.4-1
223 * Thu Jun
12 2014 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.3-1
225 * Wed Aug
21 2013 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.2-1
227 * Fri Mar
22 2013 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.1-1
228 - First official stable release.