Package init
This commit is contained in:
parent
0b296ce65a
commit
902e3a880b
BIN
lzip-1.20.tar.gz
Normal file
BIN
lzip-1.20.tar.gz
Normal file
Binary file not shown.
52
lzip.spec
Normal file
52
lzip.spec
Normal file
@ -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 <zhuhengbo1@huawei.com> - 1.20-1
|
||||
- First release.
|
||||
Loading…
x
Reference in New Issue
Block a user