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: %{name}-kmod >= %{version}
32 Provides: %{name}-kmod-common = %{version}
34 %if 0%{?rhel}%{?fedora}%{?suse_version}
35 BuildRequires
: zlib
-devel
36 BuildRequires
: libuuid
-devel
38 BuildRequires
: libblkid
-devel
41 BuildRequires
: libselinux
-devel
46 This package contains the ZFS
command line utilities and libraries.
49 Summary: Development headers
50 Group: System Environment
/Kernel
51 Requires: %{name}%{?_isa} = %{version}-%{release}
54 This package contains the header files needed
for building additional
55 applications against the ZFS libraries.
58 Summary: Test infrastructure
59 Group: System Environment
/Kernel
60 Requires: %{name}%{?_isa} = %{version}-%{release}
67 This package contains
test infrastructure and support scripts
for
68 validating the file system.
71 Summary: Dracut module
72 Group: System Environment
/Kernel
73 Requires: %{name}%{?_isa} = %{version}-%{release}
77 This package contains a dracut module used to construct an initramfs
78 image which is ZFS aware.
82 %define debug
--enable-debug
84 %define debug
--disable
-debug
87 %define blkid
--with
-blkid
89 %define blkid
--without
-blkid
92 %define selinux
--with
-selinux
94 %define selinux
--without
-selinux
102 --with
-udevdir
=%{_udevdir} \
103 --with
-dracutdir
=%{_dracutdir} \
111 %{__rm} -rf $RPM_BUILD_ROOT
112 make install DESTDIR
=%{?buildroot}
113 find
%{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \
;
115 %post -p
/sbin
/ldconfig
117 %postun -p
/sbin
/ldconfig
120 %doc AUTHORS COPYRIGHT DISCLAIMER
121 %doc OPENSOLARIS.LICENSE README.markdown
129 %{_udevdir}/rules.d
/*
130 %config(noreplace
) %{_sysconfdir}/%{name}
131 # Systemd integration is still required.
132 %exclude %{_sysconfdir}/init.d
/*
142 %doc dracut
/README.dracut.markdown
143 %{_dracutdir}/modules.d
/*
146 * Tue Mar
12 2013 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.0-1
147 - Refreshed RPM packaging.