2 %define version @VERSION@
3 %define release @ZFS_META_RELEASE@
4 %define debug_package %{nil}
6 %define _libdir /%{_lib}
7 %define _udevdir /lib/udev
9 Summary: ZFS Library and Utils
10 Group: Utilities/System
13 Release: %{release}%{?dist}
14 License: @ZFS_META_LICENSE@
15 URL: git://github.com/zfsonlinux/zfs.git
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un)
17 Source: %{name}-%{version}.tar.gz
18 Requires: zfs-modules spl zlib e2fsprogs
19 BuildRequires: zlib-devel e2fsprogs-devel
22 The %{name} package contains the libzfs library and support utilities
23 for the zfs file system.
26 Summary: ZFS File System User Headers
27 Group: Development/Libraries
28 %if %{defined ch5} || %{defined el6} || %{defined fc12}
29 Requires: zfs zlib libuuid libblkid
30 BuildRequires: zlib-devel libuuid-devel libblkid-devel
32 Requires: zfs zlib e2fsprogs
33 BuildRequires: zlib-devel e2fsprogs-devel
37 The %{name}-devel package contains the header files needed for building
38 additional applications against the %{name} libraries.
41 Summary: ZFS File System Test Infrastructure
42 Group: Utilities/System
43 Requires: zfs parted lsscsi mdadm bc
46 The %{name}-test package contains a test infrastructure for zpios which
47 can be used to simplfy the benchmarking of various hardware and software
48 configurations. The test infrastructure additionally integrates with
49 various system profiling tools to facilitate an in depth analysis.
52 Summary: ZFS Dracut Module
53 Group: System Environment/Base
57 The %{name}-dracut package allows dracut to construct initramfs images
63 %configure --with-config=user --without-blkid --with-udevdir=%{_udevdir}
67 rm -rf $RPM_BUILD_ROOT
68 make DESTDIR=$RPM_BUILD_ROOT install
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(-, root, root)
81 %config %{_sysconfdir}/init.d/*
82 %config %{_sysconfdir}/zfs/*
84 %doc AUTHORS COPYING COPYRIGHT DISCLAIMER
85 %doc OPENSOLARIS.LICENSE README.markdown ZFS.RELEASE
93 %{_libexecdir}/@PACKAGE@/*
100 [ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs
104 [ "$1" = 0 ] && [ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs