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

Last change on this file since 1750 was 1745, checked in by tellie, 5 years ago

spec: lzip: Release version 1.22-1.

File size: 2.8 KB
Line 
1Name: lzip
2Version: 1.22
3Release: 1%{?dist}
4Summary: LZMA compressor with integrity checking
5
6License: GPLv3+
7URL: http://www.nongnu.org/lzip/lzip.html
8%if !0%{?os2_version}
9Source0: http://download.savannah.gnu.org/releases/lzip/lzip-%{version}.tar.gz
10Source1: 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
15BuildRequires: gcc
16
17%if !0%{?os2_version}
18Requires(post): info
19Requires(preun): info
20%endif
21
22BuildRoot: %{_tmppath}/%{name}-%{version}-build
23
24%description
25Lzip compresses data using LZMA (Lempel-Ziv-Markov chain-Algorithm). It
26supports integrity checking using CRC (Cyclic Redundancy Check). To archive
27multiple files, tar can be used with lzip. Please note, that the lzip file
28format (.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}
39cp -a COPYING{,.txt}
40%else
41cp -a COPYING COPYING.txt
42%endif
43# convert CRLF to LF
44sed -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"
56make %{?_smp_mflags}
57
58%install
59make install INSTALL_ROOT=%{buildroot} install-man DESTDIR=$RPM_BUILD_ROOT
60mkdir -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
63rm -f $RPM_BUILD_ROOT%{_infodir}/dir
64install -Dm 0755 lzip.exe %{buildroot}%{_bindir}
65
66%check
67make -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}
76if [ $1 = 0 ] ; then
77/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
78fi
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
102Sun 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
Note: See TracBrowser for help on using the repository browser.