]> git.proxmox.com Git - mirror_zfs-debian.git/blame - zfs.spec.in
Update 'zfs send' documentation
[mirror_zfs-debian.git] / zfs.spec.in
CommitLineData
c9c0d073
BB
1%define name @PACKAGE@
2%define version @VERSION@
3%define release @ZFS_META_RELEASE@
4%define debug_package %{nil}
db97f886
BB
5%define _prefix /
6%define _bindir /lib/udev
7%define _libexecdir /usr/libexec
8%define _datadir /usr/share
c9c0d073
BB
9
10Summary: ZFS Library and Utils
11Group: Utilities/System
12Name: %{name}
13Version: %{version}
14Release: %{release}
15License: CDDL
16URL: git://eris.llnl.gov/zfs.git
17BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un)
18Source: %{name}-%{version}.tar.gz
19Requires: zlib e2fsprogs
20BuildRequires: zlib-devel e2fsprogs-devel
21
22%description
23The %{name} package contains the libzfs library and support utilities
24for the zfs file system.
25
26%package devel
27Summary: ZFS File System User Headers
28Group: Development/Libraries
29%if %{defined ch5} || %{defined el6} || %{defined fc12}
30Requires: zlib libuuid libblkid
31BuildRequires: zlib-devel libuuid-devel libblkid-devel
32%else
33Requires: zlib e2fsprogs
34BuildRequires: zlib-devel e2fsprogs-devel
35%endif
36
37%description devel
38The %{name}-devel package contains the header files needed for building
39additional applications against the %{name} libraries.
40
41%package test
42Summary: ZFS File System Test Infrastructure
43Group: Utilities/System
18f42382 44Requires: parted lsscsi
c9c0d073
BB
45
46%description test
47The %{name}-test package contains a test infrastructure for zpios which
48can be used to simplfy the benchmarking of various hardware and software
49configurations. The test infrastructure additionally integrates with
50various system profiling tools to facilitate an in depth analysis.
51
ae26d046
MAR
52%package dracut
53Summary: ZFS Dracut Module
54Group: System Environment/Base
55Requires: dracut
56
57%description dracut
58The %{name}-dracut package allows dracut to construct initramfs images
59which are ZFS aware.
60
c9c0d073
BB
61%prep
62%setup
63%build
64%configure --with-config=user --without-blkid
65make
66
67%install
68rm -rf $RPM_BUILD_ROOT
69make DESTDIR=$RPM_BUILD_ROOT install
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%files
75%defattr(-, root, root)
76%doc AUTHORS ChangeLog COPYING COPYRIGHT DISCLAIMER
1ae93745 77%doc OPENSOLARIS.LICENSE README.markdown ZFS.RELEASE
c9c0d073
BB
78%{_sbindir}/*
79%{_bindir}/*
80%{_libdir}/*
81%{_mandir}/man8/*
01c0e61d
BB
82%{_sysconfdir}/init.d/*
83%{_sysconfdir}/udev/rules.d/*
84%{_sysconfdir}/zfs/*
c9c0d073
BB
85
86%files devel
87%defattr(-,root,root)
88%{_includedir}/*
89
90%files test
91%defattr(-,root,root)
92%{_libexecdir}/@PACKAGE@/*
93
ae26d046
MAR
94%files dracut
95%defattr(-,root,root)
1f5fd9d4 96%{_datadir}/dracut/*
ae26d046 97
c9c0d073 98%post
01c0e61d
BB
99[ -x /sbin/chkconfig ] && /sbin/chkconfig --add zfs
100exit 0
101
102%preun
1fa3bb75 103[ "$1" = 0 ] && [ -x /sbin/chkconfig ] && /sbin/chkconfig --del zfs
01c0e61d 104exit 0