SHA256
1
0
forked from pool/plzip
plzip/plzip.spec

90 lines
2.3 KiB
RPMSpec
Raw Normal View History

# norootforbuild
Name: plzip
Version: 0.5
Release: 0
Summary: Parallel LZMA Data Compressor
# http://mirrors.zerg.biz/nongnu/lzip/plzip-%{version}.tar.gz
Source: plzip-%{version}.tar.bz2
URL: http://www.nongnu.org/lzip/plzip.html
Group: Productivity/Archiving/Compression
License: GNU General Public License version 3 (GPL v3 or later)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: liblz-devel
BuildRequires: gcc-c++ libstdc++-devel make glibc-devel
PreReq: %install_info_prereq
%if 0%{?suse_version} >= 1030
BuildRequires: licenses
Requires: licenses
%endif
%description
Plzip is a parallel version of the lzip data compressor. The files produced by
plzip are fully compatible with lzip-1.4 or newer. Plzip is intended for faster
compression/decompression of big files on multiprocessor machines.
Lzip is a lossless data compressor based on the LZMA algorithm, with very safe
integrity checking and a user interface similar to the one of gzip or bzip2.
Lzip decompresses almost as fast as gzip and compresses better than bzip2,
which makes it well suited for software distribution and data archiving.
Authors:
--------
Laszlo Ersek <lacos@caesar.elte.hu>
Antonio Diaz Diaz <ant_diaz@teleline.es>
%prep
%setup -q
%build
./configure \
--prefix="%{_prefix}" \
--bindir="%{_bindir}" \
--datadir="%{_datadir}" \
--includedir="%{_includedir}" \
--infodir="%{_infodir}" \
--libdir="%{_libdir}" \
--mandir="%{_mandir}" \
--sysconfdir="%{_sysconfdir}" \
--enable-shared \
CXX="%__cxx" \
CPPFLAGS="%{optflags}" \
CXXFLAGS="%{optflags}"
%__make %{?jobs:-j%{jobs}}
%install
%__make DESTDIR="%{buildroot}" LDCONFIG=echo install
h=/usr/share/doc/licenses/md5/$(md5sum COPYING|cut -f1 -d" ")
test -e "$h" && %__ln_s -f "$h" .
%check
%__make check
%clean
%__rm -rf "%{buildroot}"
%post
%install_info --info-dir="%{_infodir}" "%{_infodir}/%{name}".info%{ext_info}
%postun
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}/%{name}".info%{ext_info}
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/plzip
%doc %{_infodir}/plzip.info%{ext_info}
%doc %{_mandir}/man1/plzip.1%{ext_man}
%changelog
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: