-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzpaq-upstream.spec
66 lines (46 loc) · 1.69 KB
/
zpaq-upstream.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Name: zpaq-upstream
Version: 7.15
Release: 1
Summary: Maximum reference compressor for ZPAQ open standard
Group: Productivity/Archiving/Compression
License: Public Domain
URL: https://github.com/abbat/zpaq-upstream
Conflicts: zpaq, zpaq-6.55
BuildRequires: gcc-c++, perl, binutils
%if 0%{?fedora} >= 19
BuildRequires: perl-podlators
%endif
Source0: https://build.opensuse.org/source/home:antonbatenev:zpaq-upstream/%{name}/%{name}_%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
PAQ familily is a series of open source data compression archivers
that have evolved through collaborative development to top rankings
on several benchmarks measuring compression ratio although at the
expense of speed and memory usage.
.
This package includes ZPAQ, a proposed standard format for highly
compressed data that allows new compression algorithms to be
developed without breaking compatibility with older programs.
%define debug_package %{nil}
%prep
%setup -q -n zpaq-upstream
%build
g++ -O3 -Dunix -DNDEBUG src/zpaq.cpp src/libzpaq.cpp -pthread -o %{name}
/usr/bin/pod2man src/zpaq.pod > zpaq.1
%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
install -m755 zpaq-upstream %{buildroot}%{_bindir}/zpaq-upstream
install -m644 zpaq.1 %{buildroot}%{_mandir}/man1/zpaq.1
ln -s %{_bindir}/zpaq-upstream %{buildroot}%{_bindir}/zpaq
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc src/readme.txt src/COPYING
%doc %{_mandir}/man1/zpaq.1*
%{_bindir}/zpaq
%{_bindir}/zpaq-upstream
%changelog
* Wed Sep 14 2016 Anton Batenev <antonbatenev@yandex.ru> 7.15-1
- Initial RPM release