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

Last change on this file since 1710 was 1695, checked in by tellie, 6 years ago

spec: fribidi: Release version 0.19.5-1

File size: 2.5 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
11
12git clone https://git.progress-linux.org/users/daniel.baumann/debian/packages/lzip
13BuildRequires: gcc
14
15#Requires(post): info
16#Requires(preun): info
17
18%description
19Lzip compresses data using LZMA (Lempel-Ziv-Markov chain-Algorithm). It
20supports integrity checking using CRC (Cyclic Redundancy Check). To archive
21multiple files, tar can be used with lzip. Please note, that the lzip file
22format (.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}
30cp -a COPYING COPYING.txt
31# convert CRLF to LF
32sed -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"
45make %{?_smp_mflags}
46
47%install
48make install INSTALL_ROOT=%{buildroot} install-man DESTDIR=$RPM_BUILD_ROOT
49mkdir -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
52rm -f $RPM_BUILD_ROOT%{_infodir}/dir
53install -Dm 0755 lzip.exe %{buildroot}%{_bindir}
54
55%check
56make -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
82Sun 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
Note: See TracBrowser for help on using the repository browser.