source: spec/trunk/SPECS/lzip.spec@ 1628

Last change on this file since 1628 was 1583, checked in by tellie, 7 years ago

spec: lzip: Release version 1.21-2.

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