2 %define version @VERSION@
3 %define release @ZFS_META_RELEASE@
4 %define debug_package
%{nil}
6 %define _libdir
/%{_lib}
7 %define _udevdir
/lib
/udev
8 %define _dracutdir
%{_datadir}/dracut
10 Summary: ZFS Library and Utils
11 Group: Utilities
/System
14 Release: %{release}%{?dist}
15 License: @ZFS_META_LICENSE@
16 URL: git
://github.com
/zfsonlinux
/zfs.git
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un
)
18 Source: %{name}-%{version}.tar.gz
19 Requires: zfs
-modules spl 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: zfs zlib libuuid libblkid
31 BuildRequires
: zlib
-devel libuuid
-devel libblkid
-devel
33 Requires: zfs 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: zfs parted lsscsi mdadm bc
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 \
66 --with
-udevdir
=%{_udevdir} \
67 --with
-dracutdir
=%{_dracutdir}
71 rm -rf $RPM_BUILD_ROOT
72 make DESTDIR
=$RPM_BUILD_ROOT
install
75 rm -rf $RPM_BUILD_ROOT
78 %defattr(-, root
, root
)
85 %config %{_sysconfdir}/init.d
/*
86 %config %{_sysconfdir}/zfs
/*
88 %doc AUTHORS COPYING COPYRIGHT DISCLAIMER
89 %doc OPENSOLARIS.LICENSE README.markdown
97 %{_datadir}/@PACKAGE@
/*
100 %defattr(-,root
,root
)
104 [ -x
/sbin
/chkconfig
] && /sbin
/chkconfig
--add zfs
108 [ "$
1"
= 0 ] && [ -x
/sbin
/chkconfig
] && /sbin
/chkconfig
--del zfs