| 1 | Name: lzip
|
|---|
| 2 | Version: 1.20
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: LZMA compressor with integrity checking
|
|---|
| 5 |
|
|---|
| 6 | License: GPLv3+
|
|---|
| 7 | URL: http://www.nongnu.org/lzip/lzip.html
|
|---|
| 8 | #Source0: http://download.savannah.gnu.org/releases/lzip/lzip-%{version}.tar.gz
|
|---|
| 9 | #Source1: http://download.savannah.gnu.org/releases/lzip/lzip-%{version}.tar.gz.sig
|
|---|
| 10 | %scm_source git file://e:/gcc710/lzip-1.20 lzip-1.20
|
|---|
| 11 | BuildRequires: gcc
|
|---|
| 12 |
|
|---|
| 13 | Requires(post): info
|
|---|
| 14 | Requires(preun): info
|
|---|
| 15 |
|
|---|
| 16 | %description
|
|---|
| 17 | Lzip compresses data using LZMA (Lempel-Ziv-Markov chain-Algorithm). It
|
|---|
| 18 | supports integrity checking using CRC (Cyclic Redundancy Check). To archive
|
|---|
| 19 | multiple files, tar can be used with lzip. Please note, that the lzip file
|
|---|
| 20 | format (.lz) is not compatible with the lzma file format (.lzma).
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 | %prep
|
|---|
| 24 | #%setup -q
|
|---|
| 25 | %scm_setup
|
|---|
| 26 | # file needs to be copied, because it is used in "make check"
|
|---|
| 27 | #cp -a COPYING{,.txt}
|
|---|
| 28 | cp -a COPYING COPYING.txt
|
|---|
| 29 | # convert CRLF to LF
|
|---|
| 30 | sed -i 's/\r//' COPYING.txt
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | %build
|
|---|
| 34 | #export LIBS="-lcx"
|
|---|
| 35 | #%configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" CPPFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS"
|
|---|
| 36 | ./configure
|
|---|
| 37 | make %{?_smp_mflags}
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 | %install
|
|---|
| 41 | make install INSTALL_ROOT=%{buildroot} install-man DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 42 | mkdir -p %{buildroot}%{_bindir}
|
|---|
| 43 | cp D:/rpmbuild/Build/lzip-1.20/lzip.exe %{buildroot}%{_bindir}
|
|---|
| 44 | # if install-info is present, this is created by upstream's makefile
|
|---|
| 45 | #rm -Rf $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 46 | install -Dm 0755 lzip.exe %{buildroot}%{_bindir}
|
|---|
| 47 |
|
|---|
| 48 | %check
|
|---|
| 49 | make -k check
|
|---|
| 50 |
|
|---|
| 51 | %post
|
|---|
| 52 | /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 | %preun
|
|---|
| 56 | if [ $1 = 0 ] ; then
|
|---|
| 57 | /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|---|
| 58 | fi
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 | %files
|
|---|
| 62 | %defattr(-,root,root,-)
|
|---|
| 63 | /@unixroot/usr/share/info/dir
|
|---|
| 64 | /@unixroot/usr/bin/lzip
|
|---|
| 65 | %license COPYING.txt
|
|---|
| 66 | # TODO is currently empty
|
|---|
| 67 | %doc AUTHORS ChangeLog NEWS README
|
|---|
| 68 | %{_bindir}/lzip.exe
|
|---|
| 69 | %{_infodir}/lzip.info*
|
|---|
| 70 | %{_mandir}/man1/lzip.1*
|
|---|
| 71 |
|
|---|
| 72 | %changelog
|
|---|
| 73 | * Fri Sep 07 2018 Elbert Pol <elbert.pol@gmail.com> 1.20-1
|
|---|
| 74 | - First OS/2 rpm release
|
|---|