]>
Commit | Line | Data |
---|---|---|
f7d5a5eb JB |
1 | Summary: Implementation of the zlib and deflate compressed data format |
2 | Summary(pl.UTF-8): Implementacja formatu danych z kompresją zlib i deflate | |
3 | Name: miniz | |
dc1e7d1b | 4 | Version: 3.0.2 |
f7d5a5eb JB |
5 | Release: 1 |
6 | License: MIT | |
7 | Group: Libraries | |
8 | #Source0Download: https://github.com/richgel999/miniz/releases | |
9 | Source0: https://github.com/richgel999/miniz/archive/%{version}/%{name}-%{version}.tar.gz | |
dc1e7d1b | 10 | # Source0-md5: a2fc179d5a5bcdcac42039829172dfc3 |
f7d5a5eb JB |
11 | Patch0: %{name}-libdir.patch |
12 | URL: https://github.com/richgel999/miniz | |
dc1e7d1b | 13 | BuildRequires: cmake >= 3.0 |
f7d5a5eb JB |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | Miniz is a lossless, high performance data compression library in a | |
18 | single source file that implements the zlib (RFC 1950) and deflate | |
19 | (RFC 1951) compressed data format specification standards. It supports | |
20 | the most commonly used functions exported by the zlib library, but is | |
21 | a completely independent implementation so zlib's licensing | |
22 | requirements do not apply. Miniz also contains simple to use functions | |
23 | for writing .PNG format image files and reading/writing/appending .ZIP | |
24 | format archives. Miniz's compression speed has been tuned to be | |
25 | comparable to zlib's, and it also has a specialized real-time | |
26 | compressor function designed to compare well against fastlz/minilzo. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Miniz to biblioteka bezstratnej, szybkiej kompresji danych, zawarta w | |
30 | pojedynczym pliku źródłowym, implementująca format danych zgodny ze | |
31 | specyfikacją zlib (RFC 1950) oraz deflate (RFC 1951). Obsługuje | |
32 | najczęściej używaną funkcjonalność biblioteki zlib, ale jest w pełni | |
33 | niezależną implementacją, więc nie dotyczą jej wymagania licencyjne | |
34 | biblioteki zlib. Miniz zawiera także proste w użyciu funkcje do | |
35 | zapisu plików obrazów .PNG oraz odczytu/zapisu/dołączania do archiwów | |
36 | w formacie .ZIP. Szybkość kompresji miniz jest porównywalna ze zlibem, | |
37 | ma także specjalizowaną funkcję kompresji czasu rzeczywistego, nieźle | |
38 | wypadającą w porównaniu z fastlz/minilzo. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for miniz library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki miniz | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | ||
46 | %description devel | |
47 | Header files for miniz library. | |
48 | ||
49 | %description devel -l pl.UTF-8 | |
50 | Pliki nagłówkowe biblioteki miniz. | |
51 | ||
52 | %prep | |
53 | %setup -q | |
54 | %patch0 -p1 | |
55 | ||
56 | %build | |
57 | install -d build | |
58 | cd build | |
59 | %cmake .. | |
60 | ||
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} -C build install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post -p /sbin/ldconfig | |
73 | %postun -p /sbin/ldconfig | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc ChangeLog.md LICENSE readme.md | |
dc1e7d1b JB |
78 | %attr(755,root,root) %{_libdir}/libminiz.so.*.*.* |
79 | %attr(755,root,root) %ghost %{_libdir}/libminiz.so.3 | |
f7d5a5eb JB |
80 | |
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
dc1e7d1b | 83 | %attr(755,root,root) %{_libdir}/libminiz.so |
f7d5a5eb | 84 | %{_includedir}/miniz |
dc1e7d1b JB |
85 | %{_libdir}/cmake/miniz |
86 | %{_pkgconfigdir}/miniz.pc |