Add spec file for pixz.
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 10 May 2013 08:01:26 +0000 (09:01 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 10 May 2013 08:01:26 +0000 (09:01 +0100)
.gitignore
pixz.spec [new file with mode: 0644]

index ee73460..ce1651e 100644 (file)
@@ -1,2 +1,3 @@
 *~
 *.tar.gz
+*.tgz
diff --git a/pixz.spec b/pixz.spec
new file mode 100644 (file)
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 <rjones@redhat.com> - 1.0.2-1
+- Initial package for Fedora.