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