1 %define module @PACKAGE@
2 %define mkconf scripts
/dkms.mkconf
7 Release: @RELEASE@
%{?dist}
8 Summary: Kernel module
(s
) (dkms
)
10 Group: System Environment
/Kernel
12 URL: http
://zfsonlinux.org
/
13 Source0: %{module}-%{version}.tar.gz
14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
17 Requires: dkms
>= 2.2.0.2
18 Provides: %{module}-kmod = %{version}
21 This package contains the dkms kernel modules required to emulate
22 several interfaces provided by the Solaris kernel.
25 %setup -q
-n
%{module}-%{version}
28 %{mkconf} -n %{module} -v %{version} -f dkms.conf
31 if [ "$RPM_BUILD_ROOT"
!= "
/"
]; then
32 rm -rf $RPM_BUILD_ROOT
34 mkdir -p $RPM_BUILD_ROOT
/usr
/src
/
35 cp
-rf $
{RPM_BUILD_DIR
}/%{module}-%{version} $RPM_BUILD_ROOT
/usr
/src
/
38 if [ "$RPM_BUILD_ROOT"
!= "
/"
]; then
39 rm -rf $RPM_BUILD_ROOT
44 /usr
/src
/%{module}-%{version}
47 for POSTINST
in /usr
/lib
/dkms
/common.postinst
; do
48 if [ -f $POSTINST
]; then
49 $POSTINST
%{module} %{version}
52 echo "WARNING
: $POSTINST does not exist."
54 echo -e "ERROR
: DKMS version is too old and
%{module} was not"
55 echo -e "built with legacy DKMS support."
56 echo -e "You must either rebuild
%{module} with legacy postinst"
57 echo -e "support or upgrade DKMS to a more current version."
61 dkms remove
-m
%{module} -v %{version} --all
--rpm_safe_upgrade
65 * Fri Mar
22 2013 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.1-1
66 - First official stable release.