2 %global _libdir
/%{_lib}
4 %global _udevdir
%{_prefix}/lib
/udev
5 %global _dracutdir
%{_prefix}/lib
/dracut
7 %global _udevdir
/lib
/udev
8 %global _dracutdir
%{_prefix}/share
/dracut
15 # Generic enable switch for systemd
20 # Fedora >= 15 comes with systemd, but only >= 18 has
26 # opensuse >= 12.1 comes with systemd, but only >= 13.1
27 # has the proper macros
28 %if 0%{?suse_version} >= 1310
34 Release: @RELEASE@
%{?dist}
35 Summary: Commands to control the kernel modules and libraries
37 Group: System Environment
/Kernel
38 License: @ZFS_META_LICENSE@
39 URL: http
://zfsonlinux.org
/
40 Source0: %{name}-%{version}.tar.gz
41 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
42 ExclusiveArch: i386 i686 x86_64
44 # May build but untested on ppc/ppc64
45 ExcludeArch: ppc ppc64
47 Requires: spl
= %{version}
48 Requires: %{name}-kmod = %{version}
49 Provides: %{name}-kmod-common = %{version}
51 # zfs-fuse provides the same commands and man pages that ZoL does. Renaming
52 # those on either side would conflict with all available documentation.
55 %if 0%{?rhel}%{?fedora}%{?suse_version}
56 BuildRequires
: zlib
-devel
57 BuildRequires
: libuuid
-devel
59 BuildRequires
: libblkid
-devel
63 Requires(post
): systemd
64 Requires(preun
): systemd
65 Requires(postun
): systemd
66 BuildRequires
: systemd
70 This package contains the ZFS
command line utilities and libraries.
73 Summary: Development headers
74 Group: System Environment
/Kernel
75 Requires: %{name}%{?_isa} = %{version}-%{release}
78 This package contains the header files needed
for building additional
79 applications against the ZFS libraries.
82 Summary: Test infrastructure
83 Group: System Environment
/Kernel
84 Requires: %{name}%{?_isa} = %{version}-%{release}
91 This package contains
test infrastructure and support scripts
for
92 validating the file system.
95 Summary: Dracut module
96 Group: System Environment
/Kernel
97 Requires: %{name}%{?_isa} = %{version}-%{release}
101 This package contains a dracut module used to construct an initramfs
102 image which is ZFS aware.
106 %define debug
--enable-debug
108 %define debug
--disable
-debug
111 %define blkid
--with
-blkid
113 %define blkid
--without
-blkid
116 %define systemd
--enable-systemd
--with
-systemdunitdir
=%{_unitdir} --with-systemdpresetdir=%{_presetdir} --disable
-sysvinit
118 %define systemd
--enable-sysvinit
--disable
-systemd
126 --with
-udevdir
=%{_udevdir} \
127 --with
-dracutdir
=%{_dracutdir} \
135 %{__rm} -rf $RPM_BUILD_ROOT
136 make install DESTDIR
=%{?buildroot}
137 find
%{?buildroot}%{_libdir} -name '*.la' -exec rm -f {} \
;
142 %systemd_post zfs.target
144 [ -x
/sbin
/chkconfig
] && /sbin
/chkconfig
--add zfs
150 %systemd_preun zfs.target
152 if [ $
1 -eq
0 ] ; then
153 [ -x
/sbin
/chkconfig
] && /sbin
/chkconfig
--del zfs
161 %systemd_postun zfs.target
165 %doc AUTHORS COPYRIGHT DISCLAIMER
166 %doc OPENSOLARIS.LICENSE README.markdown
170 %{_libexecdir}/%{name}
176 %{_udevdir}/rules.d
/*
177 %config(noreplace
) %{_sysconfdir}/%{name}
179 /usr
/lib
/modules
-load.d
/*
183 %{_sysconfdir}/init.d
/*
194 %doc dracut
/README.dracut.markdown
195 %{_dracutdir}/modules.d
/*
198 * Wed Aug
21 2013 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.2-1
200 * Fri Mar
22 2013 Brian Behlendorf
<behlendorf1@llnl.gov
> - 0.6.1-1
201 - First official stable release.