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