]>
Commit | Line | Data |
---|---|---|
c0d1c5f4 JB |
1 | Summary: Snappy - fast compression/decompression library |
2 | Summary(pl.UTF-8): Snappy - biblioteka do szybkiej kompresji i dekompresji | |
3 | Name: snappy | |
f590e29a | 4 | Version: 1.1.6 |
3fa48d61 | 5 | Release: 1 |
0c402503 | 6 | License: BSD |
c0d1c5f4 | 7 | Group: Libraries |
3fa48d61 | 8 | #Source0Download: https://github.com/google/snappy/releases |
f590e29a JB |
9 | Source0: https://github.com/google/snappy/archive/%{version}/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 34bc3707dea702f684a5b8a3649a1721 | |
5fbf8ca6 | 11 | Patch0: %{name}-gflags.patch |
3fa48d61 | 12 | URL: http://google.github.io/snappy/ |
c0d1c5f4 JB |
13 | BuildRequires: autoconf >= 2.50 |
14 | BuildRequires: automake | |
5fbf8ca6 JB |
15 | # for tests |
16 | BuildRequires: gflags-devel | |
c0d1c5f4 JB |
17 | BuildRequires: libstdc++-devel |
18 | BuildRequires: libtool >= 2:2.0 | |
19 | BuildRequires: pkgconfig | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Snappy is a compression/decompression library. It does not aim for | |
24 | maximum compression, or compatibility with any other compression | |
25 | library; instead, it aims for very high speeds and reasonable | |
26 | compression. For instance, compared to the fastest mode of zlib, | |
27 | Snappy is an order of magnitude faster for most inputs, but the | |
28 | resulting compressed files are anywhere from 20% to 100% bigger. | |
29 | ||
30 | Snappy has the following properties: | |
31 | - Fast: Compression speeds at 250 MB/sec and beyond, with no | |
32 | assembler code. | |
33 | - Stable: Over the last few years, Snappy has compressed and | |
34 | decompressed petabytes of data in Google's production environment. | |
35 | The Snappy bitstream format is stable and will not change between | |
36 | versions. | |
37 | - Robust: The Snappy decompressor is designed not to crash in the face | |
38 | of corrupted or malicious input. | |
39 | - Free and open source software: Snappy is licensed under the Apache | |
40 | license, version 2.0. | |
41 | ||
42 | Snappy has previously been called "Zippy" in some Google presentations | |
43 | and the like. | |
44 | ||
45 | %description -l pl.UTF-8 | |
46 | Snappy to biblioteka kompresująca i dekompresująca. Jej celem nie jest | |
47 | maksymalna kompresja ani kompatybilność z żadną istniejącą biblioteką; | |
48 | celem natomiast jest bardzo duża szybkość przy rozsądnej kompresji. Na | |
49 | przykład, w porównaniu do najszybszego trybu zliba, Snappy jest rząd | |
50 | wielkości szybszy dla większości danych, ale pliki wynikowe są większe | |
51 | o 20 do 100%. | |
52 | ||
53 | Biblioteka Snappy ma następujące cechy: | |
54 | - jest szybka: potrafi przetwarzać 250 MB/s bez kodu w asemblerze | |
55 | - jest stabilna: przez ostatnie kilka lat była używana do kompresji i | |
56 | dekompresji petabajtów danych w środowisku produkcyjnym Google'a; | |
57 | format strumienia Snappy jest stabilny i nie zmieni się między | |
58 | wersjami | |
59 | - jest trwała: dekompresor Snappy został tak zaprojektowany, aby nie | |
60 | wykładać się na uszkodzonych lub błędnych danych wejściowych | |
61 | - jest oprogramowaniem wolnodostępnym i z otwartymi źródłami, na | |
62 | licencji Apache w wersji 2.0. | |
63 | ||
64 | Snappy wcześniej (np. na różnych prezentacjach Google'a) był nazywany | |
65 | "Zippy". | |
66 | ||
67 | %package devel | |
68 | Summary: Header files for Snappy library | |
69 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Snappy | |
70 | Group: Development/Libraries | |
71 | Requires: %{name} = %{version}-%{release} | |
72 | Requires: libstdc++-devel | |
73 | ||
74 | %description devel | |
75 | Header files for Snappy library. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Pliki nagłówkowe biblioteki Snappy. | |
79 | ||
80 | %package static | |
81 | Summary: Static Snappy library | |
82 | Summary(pl.UTF-8): Statyczna biblioteka Snappy | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-devel = %{version}-%{release} | |
85 | ||
86 | %description static | |
87 | Static Snappy library. | |
88 | ||
89 | %description static -l pl.UTF-8 | |
90 | Statyczna biblioteka Snappy. | |
91 | ||
92 | %prep | |
93 | %setup -q | |
5fbf8ca6 | 94 | %patch0 -p1 |
c0d1c5f4 | 95 | |
f590e29a JB |
96 | # missing in non-dist tarballs |
97 | test -f INSTALL || touch INSTALL | |
98 | test -f README || touch README | |
99 | ||
c0d1c5f4 JB |
100 | %build |
101 | %{__libtoolize} | |
102 | %{__aclocal} -I m4 | |
103 | %{__autoconf} | |
104 | %{__autoheader} | |
105 | %{__automake} | |
106 | %configure | |
107 | %{__make} | |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
111 | ||
112 | %{__make} install \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | ||
4ec905ad JB |
115 | # obsoleted by pkg-config |
116 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsnappy.la | |
117 | ||
c0d1c5f4 JB |
118 | # already as %doc |
119 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/snappy | |
120 | ||
121 | %clean | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
124 | %post -p /sbin/ldconfig | |
125 | %postun -p /sbin/ldconfig | |
126 | ||
127 | %files | |
128 | %defattr(644,root,root,755) | |
0c402503 | 129 | %doc AUTHORS COPYING ChangeLog NEWS README |
c0d1c5f4 JB |
130 | %attr(755,root,root) %{_libdir}/libsnappy.so.*.*.* |
131 | %attr(755,root,root) %ghost %{_libdir}/libsnappy.so.1 | |
132 | ||
133 | %files devel | |
134 | %defattr(644,root,root,755) | |
135 | %attr(755,root,root) %{_libdir}/libsnappy.so | |
c0d1c5f4 | 136 | %{_includedir}/snappy*.h |
4ec905ad | 137 | %{_pkgconfigdir}/snappy.pc |
c0d1c5f4 JB |
138 | |
139 | %files static | |
140 | %defattr(644,root,root,755) | |
141 | %{_libdir}/libsnappy.a |