2 %define version @VERSION@
3 %define release @ZFS_META_RELEASE@
4 %define debug_package %{nil}
6 %define _bindir /lib/udev
7 %define _libexecdir /usr/libexec
8 %define _datadir /usr/share
10 Summary: ZFS Library and Utils
11 Group: Utilities/System
16 URL: git://eris.llnl.gov/zfs.git
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un)
18 Source: %{name}-%{version}.tar.gz
19 Requires: zlib e2fsprogs
20 BuildRequires: zlib-devel e2fsprogs-devel
23 The %{name} package contains the libzfs library and support utilities
24 for the zfs file system.
27 Summary: ZFS File System User Headers
28 Group: Development/Libraries
29 %if %{defined ch5} || %{defined el6} || %{defined fc12}
30 Requires: zlib libuuid libblkid
31 BuildRequires: zlib-devel libuuid-devel libblkid-devel
33 Requires: zlib e2fsprogs
34 BuildRequires: zlib-devel e2fsprogs-devel
38 The %{name}-devel package contains the header files needed for building
39 additional applications against the %{name} libraries.
42 Summary: ZFS File System Test Infrastructure
43 Group: Utilities/System
44 Requires: parted lsscsi
47 The %{name}-test package contains a test infrastructure for zpios which
48 can be used to simplfy the benchmarking of various hardware and software
49 configurations. The test infrastructure additionally integrates with
50 various system profiling tools to facilitate an in depth analysis.
53 Summary: ZFS Dracut Module
54 Group: System Environment/Base
58 The %{name}-dracut package allows dracut to construct initramfs images
64 %configure --with-config=user --without-blkid
68 rm -rf $RPM_BUILD_ROOT
69 make DESTDIR=$RPM_BUILD_ROOT install
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(-, root, root)
76 %doc AUTHORS ChangeLog COPYING COPYRIGHT DISCLAIMER
77 %doc OPENSOLARIS.LICENSE README.markdown ZFS.RELEASE
82 %{_sysconfdir}/init.d/*
83 %{_sysconfdir}/udev/rules.d/*
92 %{_libexecdir}/@PACKAGE@/*
99 [ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs
103 [ "$1" = 0 ] && [ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs