]>
Commit | Line | Data |
---|---|---|
e898c13a | 1 | Summary: Hash-based Predictive Lempel-Ziv compressor |
8518f842 | 2 | Summary(pl.UTF-8): Kompresor wykorzystujący metodę Lempel-Ziv z predykcją opartą na haszach |
e898c13a | 3 | Name: lz4 |
f2003757 ER |
4 | Version: r131 |
5 | Release: 1 | |
8518f842 | 6 | License: BSD (library), GPL v2+ (CLI utility) |
e898c13a | 7 | Group: Libraries |
f2003757 ER |
8 | Source0: https://github.com/Cyan4973/lz4/archive/%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 42b09fab42331da9d3fb33bd5c560de9 | |
e898c13a | 10 | URL: http://fastcompression.blogspot.com/p/lz4.html |
61e29706 | 11 | BuildRequires: sed >= 4.0 |
e898c13a ER |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
13 | ||
14 | %description | |
15 | LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv) | |
16 | algorithm. It is a LZP2 fork and provides better compression ratio for | |
17 | text files. | |
18 | ||
8518f842 JB |
19 | %description -l pl.UTF-8 |
20 | LZ4 to bardzo szybki kompresor, oparty na dobrze znanym algorytmie | |
21 | LZ77 (Lempel-Ziv). Jest to odgałęzienie LZP2, zapewniające lepszy | |
22 | współczynnik kompresji dla plików tekstowych. | |
23 | ||
046bf775 ER |
24 | %package libs |
25 | Summary: LZ4 library | |
26 | Group: Libraries | |
27 | Conflicts: %{name} < 0.0-1.r121.3 | |
28 | ||
29 | %description libs | |
30 | LZ4 library. | |
31 | ||
e898c13a ER |
32 | %package devel |
33 | Summary: Development files for the LZ4 compressor | |
8518f842 | 34 | Summary(pl.UTF-8): Pliki programistyczne kompresora LZ4 |
e898c13a | 35 | Group: Development/Libraries |
046bf775 | 36 | Requires: %{name}-libs = %{version}-%{release} |
e898c13a ER |
37 | |
38 | %description devel | |
39 | LZ4 is a very fast compressor, based on well-known LZ77 (Lempel-Ziv) | |
40 | algorithm. It is a LZP2 fork and provides better compression ratio for | |
41 | text files. | |
42 | ||
8518f842 JB |
43 | This subpackage contains the header files for developing applications |
44 | that want to make use of liblz4. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | LZ4 to bardzo szybki kompresor, oparty na dobrze znanym algorytmie | |
48 | LZ77 (Lempel-Ziv). Jest to odgałęzienie LZP2, zapewniające lepszy | |
49 | współczynnik kompresji dla plików tekstowych. | |
50 | ||
51 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
52 | wykorzystujących liblz4. | |
e898c13a | 53 | |
e2b4d925 | 54 | %package static |
8518f842 JB |
55 | Summary: Static LZ4 compressor library |
56 | Summary(pl.UTF-8): Statyczna biblioteka kompresora LZ4 | |
e2b4d925 ER |
57 | Group: Development/Libraries |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
8518f842 | 61 | Static LZ4 compressor library. |
e2b4d925 ER |
62 | |
63 | %description static -l pl.UTF-8 | |
8518f842 | 64 | Statyczna biblioteka kompresora LZ4. |
e2b4d925 | 65 | |
e898c13a | 66 | %prep |
f2003757 | 67 | %setup -q |
e898c13a | 68 | |
d6edfe4f | 69 | mv cmake{_unofficial,} |
61e29706 ER |
70 | %{__sed} -i -e 's/-Os -march=native/%{rpmcflags}/' cmake/CMakeLists.txt |
71 | ||
e898c13a | 72 | %build |
f2003757 | 73 | CFLAGS="%{rpmcflags}" \ |
d6edfe4f ER |
74 | %{__make} \ |
75 | CC="%{__cc}" \ | |
97ccedaa ER |
76 | CPPFLAGS="%{rpmcppflags}" \ |
77 | lib all | |
e898c13a ER |
78 | |
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
d6edfe4f | 81 | %{__make} install \ |
f2003757 | 82 | PREFIX=%{_prefix} \ |
d6edfe4f ER |
83 | LIBDIR=%{_libdir} \ |
84 | INSTALL="install -p" \ | |
85 | DESTDIR=$RPM_BUILD_ROOT \ | |
e898c13a ER |
86 | |
87 | %clean | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
046bf775 ER |
90 | %post libs -p /sbin/ldconfig |
91 | %postun libs -p /sbin/ldconfig | |
e2b4d925 | 92 | |
e898c13a ER |
93 | %files |
94 | %defattr(644,root,root,755) | |
f2003757 | 95 | %doc README.md NEWS |
e898c13a | 96 | %attr(755,root,root) %{_bindir}/lz4 |
d6edfe4f ER |
97 | %attr(755,root,root) %{_bindir}/lz4c |
98 | %attr(755,root,root) %{_bindir}/lz4cat | |
f2003757 | 99 | %attr(755,root,root) %{_bindir}/unlz4 |
e898c13a | 100 | %{_mandir}/man1/lz4.1* |
d6edfe4f ER |
101 | %{_mandir}/man1/lz4c.1* |
102 | %{_mandir}/man1/lz4cat.1* | |
f2003757 | 103 | %{_mandir}/man1/unlz4.1* |
046bf775 ER |
104 | |
105 | %files libs | |
106 | %defattr(644,root,root,755) | |
e2b4d925 | 107 | %attr(755,root,root) %{_libdir}/liblz4.so.*.*.* |
d6edfe4f | 108 | %attr(755,root,root) %ghost %{_libdir}/liblz4.so.1 |
e898c13a ER |
109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
8518f842 | 112 | %attr(755,root,root) %{_libdir}/liblz4.so |
e2b4d925 ER |
113 | %{_includedir}/lz4.h |
114 | %{_includedir}/lz4hc.h | |
f2003757 | 115 | %{_includedir}/lz4frame.h |
d6edfe4f | 116 | %{_pkgconfigdir}/liblz4.pc |
e2b4d925 ER |
117 | |
118 | %files static | |
119 | %defattr(644,root,root,755) | |
120 | %{_libdir}/liblz4.a |