2 %global _libdir
/%{_lib}
4 %global _udevdir
%{_prefix}/lib
/udev
5 %global _dracutdir
%{_prefix}/lib
/dracut
7 %global _udevdir
/lib
/udev
8 %global _dracutdir
/lib
/dracut
18 Release: @RELEASE@
%{?dist}
19 Summary: Commands to control the kernel modules and libraries
21 Group: System Environment
/Kernel
22 License: @ZFS_META_LICENSE@
23 URL: http
://zfsonlinux.org
/
24 Source0: %{name}-%{version}.tar.gz
25 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
26 ExclusiveArch: i386 i686 x86_64
28 # May build but untested on ppc/ppc64
29 ExcludeArch: ppc ppc64
31 Requires: spl
= %{version}
32 Requires: %{name}-kmod >= %{version}
33 Provides: %{name}-kmod-common = %{version}
35 %if 0%{?rhel}%{?fedora}%{?suse_version}
36 BuildRequires
: zlib
-devel
37 BuildRequires
: libuuid
-devel
39 BuildRequires
: libblkid
-devel
42 BuildRequires
: libselinux
-devel
47 This package contains the ZFS
command line utilities and libraries.
50 Summary: Development headers
51 Group: System Environment
/Kernel
52 Requires: %{name}%{?_isa} = %{version}-%{release}
55 This package contains the header files needed
for building additional
56 applications against the ZFS libraries.
59 Summary: Test infrastructure
60 Group: System Environment
/Kernel
61 Requires: %{name}%{?_isa} = %{version}-%{release}
68 This package contains
test infrastructure and support scripts
for
69 validating the file system.
72 Summary: Dracut module
73 Group: System Environment
/Kernel
74 Requires: %{name}%{?_isa} = %{version}-%{release}
78 This package contains a dracut module used to construct an initramfs
79 image which is ZFS aware.
83 %define debug
--enable-debug
85 %define debug
--disable
-debug
88 %define blkid
--with
-blkid
90 %define blkid
--without
-blkid
93 %define selinux
--with
-selinux
95 %define selinux
--without
-selinux
103 --with
-udevdir
=%{_udevdir} \
104 --with
-dracutdir
=%{_dracutdir} \
112 %{__rm} -rf $RPM_BUILD_ROOT
113 make install DESTDIR
=%{?buildroot}
114 find
%{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \
;
118 [ -x
/sbin
/chkconfig
] && /sbin
/chkconfig
--add zfs
122 if [ $
1 -eq
0 ] ; then
123 [ -x
/sbin
/chkconfig
] && /sbin
/chkconfig
--del zfs
127 %postun -p
/sbin
/ldconfig
130 %doc AUTHORS COPYRIGHT DISCLAIMER
131 %doc OPENSOLARIS.LICENSE README.markdown
140 %{_udevdir}/rules.d
/*
141 %config(noreplace
) %{_sysconfdir}/%{name}
142 %{_sysconfdir}/init.d
/*
152 %doc dracut
/README.dracut.markdown
153 %{_dracutdir}/modules.d
/*
156 * Fri Mar
22 2013 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.1-1
157 - First official stable release.