diff --git a/lzip-1.20.tar.gz b/lzip-1.20.tar.gz new file mode 100644 index 0000000..2d7f691 Binary files /dev/null and b/lzip-1.20.tar.gz differ diff --git a/lzip.spec b/lzip.spec new file mode 100644 index 0000000..1125e92 --- /dev/null +++ b/lzip.spec @@ -0,0 +1,52 @@ +Name: lzip +Version: 1.20 +Release: 1%{?dist} +Summary: LZMA compressor with integrity checking + +License: GPLv3+ +URL: http://www.nongnu.org/lzip/lzip.html +Source0: http://download.savannah.gnu.org/releases/lzip/lzip-%{version}.tar.gz +Source1: http://download.savannah.gnu.org/releases/lzip/lzip-%{version}.tar.gz.sig +BuildRequires: gcc-c++ + +%description +Lzip compresses data using LZMA (Lempel-Ziv-Markov chain-Algorithm). It +supports integrity checking using CRC (Cyclic Redundancy Check). To archive +multiple files, tar can be used with lzip. Please note, that the lzip file +format (.lz) is not compatible with the lzma file format (.lzma). + + +%prep +%setup -q +# file needs to be copied, because it is used in "make check" +cp -a COPYING{,.txt} +# convert CRLF to LF +sed -i 's/\r//' COPYING.txt + + +%build +%configure CXXFLAGS="%{build_cxxflags}" LDFLAGS="%{build_ldflags}" +make %{?_smp_mflags} + + +%install +make install install-man DESTDIR=$RPM_BUILD_ROOT + +# if install-info is present, this is created by upstream's makefile +rm -Rf $RPM_BUILD_ROOT%{_infodir}/dir + +%check +make check + +%files +%license COPYING.txt +# TODO is currently empty +%doc AUTHORS ChangeLog NEWS README +%{_bindir}/lzip +%{_infodir}/lzip.info* +%{_mandir}/man1/lzip.1* + + +%changelog +* Tue May 05 2020 Hubble Zhu - 1.20-1 +- First release.