| 1 | Name: lzip
|
|---|
| 2 | Version: 1.21
|
|---|
| 3 | Release: 2%{?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 github http://github.com/TeLLie/%{name}-os2 master
|
|---|
| 11 |
|
|---|
| 12 | git clone https://git.progress-linux.org/users/daniel.baumann/debian/packages/lzip
|
|---|
| 13 | BuildRequires: gcc
|
|---|
| 14 |
|
|---|
| 15 | #Requires(post): info
|
|---|
| 16 | #Requires(preun): info
|
|---|
| 17 |
|
|---|
| 18 | %description
|
|---|
| 19 | Lzip compresses data using LZMA (Lempel-Ziv-Markov chain-Algorithm). It
|
|---|
| 20 | supports integrity checking using CRC (Cyclic Redundancy Check). To archive
|
|---|
| 21 | multiple files, tar can be used with lzip. Please note, that the lzip file
|
|---|
| 22 | format (.lz) is not compatible with the lzma file format (.lzma).
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | %prep
|
|---|
| 26 | #%setup -q
|
|---|
| 27 | %scm_setup
|
|---|
| 28 | # file needs to be copied, because it is used in "make check"
|
|---|
| 29 | #cp -a COPYING{,.txt}
|
|---|
| 30 | cp -a COPYING COPYING.txt
|
|---|
| 31 | # convert CRLF to LF
|
|---|
| 32 | sed -i 's/\r//' COPYING.txt
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 | %build
|
|---|
| 36 | ./configure \
|
|---|
| 37 | --prefix="%{_prefix}" \
|
|---|
| 38 | --bindir="%{_bindir}" \
|
|---|
| 39 | --includedir="%{_includedir}" \
|
|---|
| 40 | --infodir="%{_infodir}" \
|
|---|
| 41 | --libdir="%{_libdir}" \
|
|---|
| 42 | --mandir="%{_mandir}" \
|
|---|
| 43 | LDFLAGS="-Zomf -Zexe" \
|
|---|
| 44 | LIBS="-lcx"
|
|---|
| 45 | make %{?_smp_mflags}
|
|---|
| 46 |
|
|---|
| 47 | %install
|
|---|
| 48 | make install INSTALL_ROOT=%{buildroot} install-man DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 49 | mkdir -p %{buildroot}%{_bindir}
|
|---|
| 50 | #cp D:/rpmbuild/Build/lzip-1.20/lzip.exe %{buildroot}%{_bindir}
|
|---|
| 51 | # if install-info is present, this is created by upstream's makefile
|
|---|
| 52 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 53 | install -Dm 0755 lzip.exe %{buildroot}%{_bindir}
|
|---|
| 54 |
|
|---|
| 55 | %check
|
|---|
| 56 | make -k check
|
|---|
| 57 |
|
|---|
| 58 | %post
|
|---|
| 59 | #/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 | %preun
|
|---|
| 63 | #if [ $1 = 0 ] ; then
|
|---|
| 64 | #/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|---|
| 65 | #fi
|
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 | %files
|
|---|
| 69 | %defattr(-,root,root,-)
|
|---|
| 70 | /@unixroot/usr/bin/lzip
|
|---|
| 71 | %license COPYING.txt
|
|---|
| 72 | # TODO is currently empty
|
|---|
| 73 | %doc AUTHORS ChangeLog NEWS README
|
|---|
| 74 | %{_bindir}/lzip.exe
|
|---|
| 75 | %{_infodir}/lzip.info*
|
|---|
| 76 | %{_mandir}/man1/lzip.1*
|
|---|
| 77 |
|
|---|
| 78 | %changelog
|
|---|
| 79 | * Thu Jan 31 2019 Elbert Pol <elbert.pol@gmail.com> - 1.21-2
|
|---|
| 80 | - Upload src to github
|
|---|
| 81 |
|
|---|
| 82 | Sun Jan 13 2019 Elbert Pol <elbert.pol@gmail.com> 1.21-1
|
|---|
| 83 | - Updated to latest source
|
|---|
| 84 |
|
|---|
| 85 | * Sat Sep 08 2018 Elbert Pol <elbert.pol@gmail.com> 1.20-2
|
|---|
| 86 | - Fix error about infodir
|
|---|
| 87 |
|
|---|
| 88 | * Fri Sep 07 2018 Elbert Pol <elbert.pol@gmail.com> 1.20-1
|
|---|
| 89 | - First OS/2 rpm release
|
|---|