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