| 1 | Name: lziprecover
|
|---|
| 2 | Version: 1.21
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Data recovery tool and decompressor for files in the lzip compressed format
|
|---|
| 5 |
|
|---|
| 6 | License: GPLv3+
|
|---|
| 7 | URL: http://www.nongnu.org/lzip/lziprecover.html
|
|---|
| 8 | #Source0: http://download.savannah.gnu.org/releases/lzip/lziprecover/lziprecover-%{version}.tar.lz
|
|---|
| 9 | #Source1: http://download.savannah.gnu.org/releases/lzip/lziprecover/lziprecover-%{version}.tar.lz.sig
|
|---|
| 10 | %scm_source git file://e:/gcc/lziprecover-1.21 lziprecover-1.21
|
|---|
| 11 | BuildRequires: lzip gcc
|
|---|
| 12 |
|
|---|
| 13 | #Requires(post): info
|
|---|
| 14 | #Requires(preun): info
|
|---|
| 15 |
|
|---|
| 16 | %description
|
|---|
| 17 | Lziprecover is a data recovery tool and decompressor for files in the lzip
|
|---|
| 18 | compressed data format (.lz) able to repair slightly damaged files, recover
|
|---|
| 19 | badly damaged files from two or more copies, extract undamaged members
|
|---|
| 20 | from multi-member files, decompress files and test integrity of files.
|
|---|
| 21 |
|
|---|
| 22 | Lziprecover is able to recover or decompress files produced by any of the
|
|---|
| 23 | compressors in the lzip family; lzip, plzip, minilzip/lzlib, clzip and
|
|---|
| 24 | pdlzip. This recovery capability contributes to make the lzip format one
|
|---|
| 25 | of the best options for long-term data archiving.
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 | %prep
|
|---|
| 29 | #%setup -q
|
|---|
| 30 | %scm_setup
|
|---|
| 31 | # file needs to be copied, because it is used in "make check"
|
|---|
| 32 | #cp -a COPYING{,.txt}
|
|---|
| 33 | cp -a COPYING COPYING.txt
|
|---|
| 34 | # convert CRLF to LF
|
|---|
| 35 | sed -i 's/\r//' COPYING.txt
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 | %build
|
|---|
| 39 | ./configure \
|
|---|
| 40 | --prefix="%{_prefix}" \
|
|---|
| 41 | --bindir="%{_bindir}" \
|
|---|
| 42 | --includedir="%{_includedir}" \
|
|---|
| 43 | --infodir="%{_infodir}" \
|
|---|
| 44 | --libdir="%{_libdir}" \
|
|---|
| 45 | --mandir="%{_mandir}" \
|
|---|
| 46 | LDFLAGS="-Zomf -Zexe" \
|
|---|
| 47 | LIBS="-lcx"
|
|---|
| 48 |
|
|---|
| 49 | make %{?_smp_mflags}
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 | %install
|
|---|
| 53 | #make install install-man DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 54 | make install INSTALL_ROOT=%{buildroot} install-man DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 55 | #cp D:/rpmbuild/Build/lziprecover-1.21/lziprecover.exe %{buildroot}%{_bindir}
|
|---|
| 56 | # if install-info is present, this is created by upstream's makefile
|
|---|
| 57 | rm -Rf $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 58 | install -Dm 0755 lziprecover.exe %{buildroot}%{_bindir}
|
|---|
| 59 |
|
|---|
| 60 | %check
|
|---|
| 61 | make -k check
|
|---|
| 62 |
|
|---|
| 63 |
|
|---|
| 64 | %post
|
|---|
| 65 | #/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 | %preun
|
|---|
| 69 | #if [ $1 = 0 ] ; then
|
|---|
| 70 | #/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|---|
| 71 | #fi
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 | %files
|
|---|
| 75 | # TODO is currently empty
|
|---|
| 76 | %license COPYING.txt
|
|---|
| 77 | %doc AUTHORS ChangeLog NEWS README
|
|---|
| 78 | %{_bindir}/%{name}*
|
|---|
| 79 | %{_infodir}/lziprecover.info*
|
|---|
| 80 | %{_mandir}/man1/lziprecover.1*
|
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 | %changelog
|
|---|
| 84 | * Sat Jan 12 2019 Elbert Pol <elbert.pol@gmail.com> 1.21-1
|
|---|
| 85 | - Updated to latest source
|
|---|
| 86 |
|
|---|
| 87 | * Sun Sep 09 2018 Elbert Pol <elbert.pol@gmail.com> 1.20-2
|
|---|
| 88 | - Some changes for Spec file
|
|---|
| 89 |
|
|---|
| 90 | * Sun Sep 09 2018 Elbert Pol <elbert.pol@gmail.com> 1.20-1
|
|---|
| 91 | - First OS/2 rpm release
|
|---|