From eaaeaf0b1488e54f5c68786a39016850285d8a7d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 10 May 2013 09:01:26 +0100 Subject: [PATCH] Add spec file for pixz. --- .gitignore | 1 + pixz.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 pixz.spec diff --git a/.gitignore b/.gitignore index ee73460..ce1651e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *~ *.tar.gz +*.tgz diff --git a/pixz.spec b/pixz.spec new file mode 100644 index 0000000..9ae3720 --- /dev/null +++ b/pixz.spec @@ -0,0 +1,58 @@ +Name: pixz +Version: 1.0.2 +Release: 1%{?dist} +Summary: Parallel, indexed xz compressor + +License: BSD +URL: https://github.com/vasi/pixz +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz + +BuildRequires: libarchive-devel +BuildRequires: xz-devel +#Requires: + +%description +Pixz (pronounced 'pixie') is a parallel, indexing version of XZ + +The existing XZ utils provide great compression in the .xz file +format, but they have two significant problems: + +* They are single-threaded, while most users nowadays have multi-core + computers. + +* The .xz files they produce are just one big block of compressed + data, rather than a collection of smaller blocks. This makes random + access to the original data impossible. + +Pixz solves both of these problems. + + +%prep +%setup -q + + +%build +# Package doesn't use autotools, but honours $CFLAGS and $LDFLAGS. +# Adding -lm to LDFLAGS works around a bug in the Makefile. +CFLAGS="%{optflags}" \ +LDFLAGS="-lm %{optflags}" \ +make %{?_smp_mflags} + + +%install +# There is no 'make install' rule. +mkdir -p $RPM_BUILD_ROOT%{_bindir} +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 +install -m 0755 pixz $RPM_BUILD_ROOT%{_bindir} +install -m 0644 pixz.1 $RPM_BUILD_ROOT%{_mandir}/man1 + + +%files +%doc LICENSE NEWS README TODO +%{_bindir}/pixz +%{_mandir}/man1/pixz.1* + + +%changelog +* Wed May 8 2013 Richard W.M. Jones - 1.0.2-1 +- Initial package for Fedora. -- 1.8.3.1