]>
Commit | Line | Data |
---|---|---|
30ec7443 JB |
1 | Summary: Library for fast, whole-buffer DEFLATE-based compression and decompression |
2 | Summary(pl.UTF-8): Biblioteka do szybkiej kompresji i dekompresji algorytmem DEFLATE dla całego bufora | |
3 | Name: libdeflate | |
39869dd3 | 4 | Version: 1.17 |
950e892b | 5 | Release: 1 |
30ec7443 JB |
6 | License: MIT |
7 | Group: Libraries | |
8 | #Source0Download: https://github.com/ebiggers/libdeflate/releases | |
9 | Source0: https://github.com/ebiggers/libdeflate/archive/v%{version}/%{name}-%{version}.tar.gz | |
39869dd3 | 10 | # Source0-md5: 88cecda43f00fcffb62fd2a398f7554e |
30ec7443 | 11 | URL: https://github.com/ebiggers/libdeflate |
39869dd3 | 12 | BuildRequires: cmake >= 3.7 |
5470372e | 13 | BuildRequires: rpmbuild(macros) >= 1.605 |
30ec7443 JB |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | libdeflate is a library for fast, whole-buffer DEFLATE-based | |
18 | compression and decompression. | |
19 | ||
20 | libdeflate is heavily optimized. It is significantly faster than the | |
21 | zlib library, both for compression and decompression, and especially | |
22 | on x86 processors. In addition, libdeflate provides optional high | |
23 | compression modes that provide a better compression ratio than the | |
24 | zlib's "level 9". | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | libdeflate do biblioteka do szybkiej kompresji i dekompresji na całym | |
28 | buforze w oparciu o algorytm DEFLATE. | |
29 | ||
30 | libdeflate jest wydatnie zoptymalizowana; jest znacząco szybsza od | |
31 | biblioteki zlib, zarówno przy kompresji, jak i dekompresji, w | |
32 | szczególności na procesorach x86. Ponadto libdeflate zapewnia | |
33 | opcjonalnie wyższe stopnie kompresji, z lepszym współczynnikiem niż | |
34 | "poziom 9" zliba. | |
35 | ||
36 | %package devel | |
37 | Summary: Header file for libdeflate library | |
38 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libdeflate | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Header file for libdeflate library. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Plik nagłówkowy biblioteki libdeflate. | |
47 | ||
48 | %package static | |
49 | Summary: Static libdeflate library | |
50 | Summary(pl.UTF-8): Statyczna biblioteka libdeflate | |
51 | Group: Development/Libraries | |
52 | Requires: %{name}-devel = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static libdeflate library. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczna biblioteka libdeflate. | |
59 | ||
60 | %prep | |
61 | %setup -q | |
30ec7443 JB |
62 | |
63 | %build | |
39869dd3 JB |
64 | install -d build |
65 | cd build | |
66 | %cmake .. | |
67 | ||
68 | %{__make} | |
30ec7443 JB |
69 | |
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
21e40d11 | 72 | |
7ab71862 | 73 | # pass also build flags because of .build-config check in Makefile |
39869dd3 JB |
74 | %{__make} -C build install \ |
75 | DESTDIR=$RPM_BUILD_ROOT | |
30ec7443 JB |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %post -p /sbin/ldconfig | |
81 | %postun -p /sbin/ldconfig | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
950e892b | 85 | %doc COPYING NEWS.md README.md |
30ec7443 JB |
86 | %attr(755,root,root) %{_bindir}/libdeflate-gzip |
87 | %attr(755,root,root) %{_bindir}/libdeflate-gunzip | |
88 | %attr(755,root,root) %{_libdir}/libdeflate.so.0 | |
89 | ||
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_libdir}/libdeflate.so | |
93 | %{_includedir}/libdeflate.h | |
950e892b | 94 | %{_pkgconfigdir}/libdeflate.pc |
39869dd3 | 95 | %{_libdir}/cmake/libdeflate |
30ec7443 JB |
96 | |
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libdeflate.a |