lzip/lzip.spec

55 lines
1.3 KiB
RPMSpec
Raw Permalink Normal View History

2020-05-05 20:43:03 +08:00
Name: lzip
Version: 1.20
2021-12-14 14:18:56 +08:00
Release: 2
2020-05-05 20:43:03 +08:00
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
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
2021-12-14 14:18:56 +08:00
* Tue Dec 14 2021 konglidong <konglidong@uniontech.com> - 1.20-2
- delete %dist
2020-05-05 20:43:03 +08:00
* Tue May 05 2020 Hubble Zhu <zhuhengbo1@huawei.com> - 1.20-1
- First release.