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