]> git.pld-linux.org Git - SPECS.git/blob - miniz.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / miniz.spec
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
4 Version:        2.1.0
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
10 # Source0-md5:  0bfa8be062704feac1c83ff954e9a619
11 Patch0:         %{name}-libdir.patch
12 URL:            https://github.com/richgel999/miniz
13 BuildRequires:  cmake >= 2.8
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
78 %attr(755,root,root) %{_libdir}/libminiz.so
79
80 %files devel
81 %defattr(644,root,root,755)
82 %{_includedir}/miniz
This page took 1.71197 seconds and 3 git commands to generate.