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

Last change on this file since 1803 was 1793, checked in by tellie, 4 years ago

spec: lzip: Release version 1.23-1.

File size: 2.8 KB
Line 
1Name: lzip
2Version: 1.23
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 --infodir="%{_infodir}" \
51 --mandir="%{_mandir}" \
52 LDFLAGS="-Zomf -Zexe" \
53 LIBS="-lcx"
54make %{?_smp_mflags}
55
56%install
57make install INSTALL_ROOT=%{buildroot} install-man DESTDIR=$RPM_BUILD_ROOT
58mkdir -p %{buildroot}%{_bindir}
59#cp D:/rpmbuild/Build/lzip-1.20/lzip.exe %{buildroot}%{_bindir}
60# if install-info is present, this is created by upstream's makefile
61rm -f $RPM_BUILD_ROOT%{_infodir}/dir
62install -Dm 0755 lzip.exe %{buildroot}%{_bindir}
63
64%check
65make -k check
66
67%post
68%if !0%{?os2_version}
69/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
70%endif
71
72%preun
73%if !0%{?os2_version}
74if [ $1 = 0 ] ; then
75/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
76fi
77%endif
78
79%files
80%defattr(-,root,root,-)
81%exclude /@unixroot/usr/bin/lzip
82%license COPYING.txt
83# TODO is currently empty
84%doc AUTHORS ChangeLog NEWS README
85%if !0%{?os2_version}
86%{_bindir}/lzip
87%else
88%{_bindir}/lzip.exe
89%{_infodir}/lzip.info*
90%{_mandir}/man1/lzip.1*
91%endif
92
93%changelog
94* Fri Feb 4 2022 Elbert Pol <elbert.pol@gmail.com> - 1.23 - 1
95- Update to latest version
96
97* Sun Jan 10 2021 Elbert Pol <elbert.pol@gmail.com> - 1.22 - 1
98- Update to latest version
99
100* Thu Jan 31 2019 Elbert Pol <elbert.pol@gmail.com> - 1.21-2
101- Upload src to github
102
103Sun Jan 13 2019 Elbert Pol <elbert.pol@gmail.com> 1.21-1
104- Updated to latest source
105
106* Sat Sep 08 2018 Elbert Pol <elbert.pol@gmail.com> 1.20-2
107- Fix error about infodir
108
109* Fri Sep 07 2018 Elbert Pol <elbert.pol@gmail.com> 1.20-1
110- First OS/2 rpm release
Note: See TracBrowser for help on using the repository browser.