Blob Blame History Raw
# Keep in mind with: 
# Large file support NOT perfect:  https://github.com/vasi/pixz/issues/44
# Not OOM-safe! Still persists:    https://github.com/vasi/pixz/issues/45

Name:           pixz
Version:        1.0.6
Release:        4%{?dist}
Summary:        Parallel indexed xz compressor
License:        MIT
URL:            https://github.com/vasi/pixz/
Source0:        https://github.com/vasi/pixz/releases/download/v%{version}/pixz-%{version}.tar.xz
#BuildRequires:  asciidoc
BuildRequires:  libarchive-devel
BuildRequires:  xz-devel

%description
Pixz (pronounced pixie) is a parallel, indexing version of xz.

** pixz vs xz

The existing XZ Utils provide great compression in the .xz file format, but
they produce just one big block of compressed data. Pixz instead produces a
collection of smaller blocks which makes random access to the original data
possible. This is especially useful for large tarballs.

** Differences to xz

* Automatically indexes tarballs during compression.
* Supports parallel decompression, which xz does not.
* Defaults to using all available CPU cores, while xz defaults to using
only one core.
* Provides -i and -o command line options to specify input and output file.

%prep
%setup -q
# Drop redundant -lm, but it doesn't affect anything serious, and this hack
# requires autoreconf, so just ignore for a while.
# https://github.com/vasi/pixz/pull/49
# sed -i 's|-lm ||g' src/Makefile.am

# Drop cppcheck test, it doesn't make sense to downstream, should be checked
# BEFORE release.
sed -i 's|cppcheck-src||g' test/Makefile*

%build
%configure
%make_build

%install
%make_install

%check
make check

%files
%doc NEWS README* TODO
%license LICENSE
%{_bindir}/pixz
%{_mandir}/man1/pixz.1*

%changelog
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sat Mar 12 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.0.6-1
- Update to 1.0.6

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Sat Sep 19 2015 Christopher Meng <rpm@cicku.me> - 1.0.4-1
- Update to 1.0.4

* Mon Sep 07 2015 Christopher Meng <rpm@cicku.me> - 1.0.3-1
- Update to 1.0.3

* Sun Jul 21 2013 Christopher Meng <rpm@cicku.me> - 1.0.2-1
- Update to 1.0.2

* Fri Nov 30 2012 Christopher Meng <rpm@cicku.me> - 1.0-1
- Initial Package.