2009-07-01 17:53:05 +00:00
|
|
|
%define name @PACKAGE@
|
|
|
|
%define version @VERSION@
|
|
|
|
%define release @ZFS_META_RELEASE@
|
|
|
|
%define debug_package %{nil}
|
2009-03-10 18:10:50 +00:00
|
|
|
|
2009-07-01 17:53:05 +00:00
|
|
|
Summary: ZFS Library and Utils
|
2009-03-10 18:10:50 +00:00
|
|
|
Group: Utilities/System
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
2009-07-01 17:53:05 +00:00
|
|
|
License: CDDL
|
2009-03-10 18:10:50 +00:00
|
|
|
URL: git://eris.llnl.gov/zfs.git
|
2009-10-05 20:01:01 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un)
|
2009-03-10 18:10:50 +00:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
2009-03-13 00:13:35 +00:00
|
|
|
Requires: zlib
|
|
|
|
BuildRequires: zlib-devel
|
2009-03-10 18:10:50 +00:00
|
|
|
|
|
|
|
%description
|
2009-07-01 17:53:05 +00:00
|
|
|
The %{name} package contains the libzfs library and support utilities
|
|
|
|
for the zfs file system.
|
2009-03-10 18:10:50 +00:00
|
|
|
|
|
|
|
%package devel
|
2009-07-01 17:53:05 +00:00
|
|
|
Summary: ZFS File System User Headers
|
2009-03-10 18:10:50 +00:00
|
|
|
Group: Development/Libraries
|
2009-07-01 17:53:05 +00:00
|
|
|
Requires: zlib
|
2009-03-13 00:13:35 +00:00
|
|
|
BuildRequires: zlib-devel
|
2009-03-10 18:10:50 +00:00
|
|
|
|
|
|
|
%description devel
|
2009-07-01 17:53:05 +00:00
|
|
|
The %{name}-devel package contains the header files needed for building
|
|
|
|
additional applications against the %{name} libraries.
|
2009-03-10 18:10:50 +00:00
|
|
|
|
2009-08-18 04:35:06 +00:00
|
|
|
%package test
|
|
|
|
Summary: ZFS File System Test Infrastructure
|
|
|
|
Group: Utilities/System
|
|
|
|
|
|
|
|
%description test
|
|
|
|
The %{name}-test package contains a test infrastructure for zpios which
|
|
|
|
can be used to simplfy the benchmarking of various hardware and software
|
|
|
|
configurations. The test infrastructure additionally integrates with
|
|
|
|
various system profiling tools to facilitate an in depth analysis.
|
|
|
|
|
2009-03-10 18:10:50 +00:00
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
%build
|
2009-07-01 21:35:38 +00:00
|
|
|
%configure --with-config=user
|
2009-03-10 18:10:50 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2009-03-12 22:07:29 +00:00
|
|
|
%doc AUTHORS ChangeLog COPYING DISCLAIMER GIT
|
2009-03-10 18:10:50 +00:00
|
|
|
%doc OPENSOLARIS.LICENSE README TODO ZFS.RELEASE
|
|
|
|
%{_sbindir}/*
|
2009-03-11 04:13:30 +00:00
|
|
|
%{_libdir}/*
|
2009-03-10 18:10:50 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2009-03-12 22:07:29 +00:00
|
|
|
%{_includedir}/*
|
2009-03-10 18:10:50 +00:00
|
|
|
|
2009-08-18 04:35:06 +00:00
|
|
|
%files test
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libexecdir}/@PACKAGE@/*
|
|
|
|
|
2009-03-10 18:10:50 +00:00
|
|
|
%post
|
|
|
|
%postun
|