source: spec/trunk/SPECS/lziprecover.spec@ 1569

Last change on this file since 1569 was 1552, checked in by tellie, 7 years ago

spec: lziprecover: Release version 1.21-1.

File size: 2.7 KB
Line 
1Name: lziprecover
2Version: 1.21
3Release: 1%{?dist}
4Summary: Data recovery tool and decompressor for files in the lzip compressed format
5
6License: GPLv3+
7URL: 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
11BuildRequires: lzip gcc
12
13#Requires(post): info
14#Requires(preun): info
15
16%description
17Lziprecover is a data recovery tool and decompressor for files in the lzip
18compressed data format (.lz) able to repair slightly damaged files, recover
19badly damaged files from two or more copies, extract undamaged members
20from multi-member files, decompress files and test integrity of files.
21
22Lziprecover is able to recover or decompress files produced by any of the
23compressors in the lzip family; lzip, plzip, minilzip/lzlib, clzip and
24pdlzip. This recovery capability contributes to make the lzip format one
25of 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}
33cp -a COPYING COPYING.txt
34# convert CRLF to LF
35sed -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
49make %{?_smp_mflags}
50
51
52%install
53#make install install-man DESTDIR=$RPM_BUILD_ROOT
54make 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
57rm -Rf $RPM_BUILD_ROOT%{_infodir}/dir
58install -Dm 0755 lziprecover.exe %{buildroot}%{_bindir}
59
60%check
61make -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
Note: See TracBrowser for help on using the repository browser.