]>
Commit | Line | Data |
---|---|---|
cd31bb9d | 1 | Summary: LZO - a real-time data compression library |
9d5d171b | 2 | Summary(pl.UTF-8): LZO - biblioteka kompresji danych w czasie rzeczywistym |
e8efac09 | 3 | Name: lzo |
3614e31b | 4 | Version: 2.02 |
2b0d4d3c | 5 | Release: 2 |
e8efac09 | 6 | License: GPL |
41615d87 | 7 | Group: Libraries |
cc4f31ab | 8 | Source0: http://www.oberhumer.com/opensource/lzo/download/%{name}-%{version}.tar.gz |
3614e31b | 9 | # Source0-md5: 6760e5819f4238328709bf93bf10071c |
41615d87 | 10 | Patch0: %{name}-ac.patch |
cc4f31ab | 11 | URL: http://www.oberhumer.com/opensource/lzo/ |
dd767908 | 12 | BuildRequires: autoconf >= 2.60 |
0eea8c1d | 13 | BuildRequires: automake >= 1:1.9.5 |
4d64f8a7 | 14 | BuildRequires: libtool |
15 | %ifarch %{x86} | |
16 | BuildRequires: nasm | |
17 | %endif | |
e8efac09 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | LZO is a portable lossless data compression library written in ANSI C. | |
22 | It implements a number of algorithms with the following features: | |
23 | - Decompression is simple and *very* fast. | |
24 | - Requires no memory for decompression. | |
25 | - Compression is pretty fast. | |
26 | - Requires 64 kB of memory for compression. | |
27 | - Allows you to dial up extra compression at a speed cost in the | |
28 | compressor. The speed of the decompressor is not reduced. | |
29 | - Includes compression levels for generating pre-compressed data which | |
30 | achieve a quite competitive compression ratio. | |
31 | - There is also a compression level which needs only 8 kB for | |
32 | compression. | |
33 | - Supports overlapping compression and in-place decompression. | |
34 | - Algorithm is thread safe. | |
35 | - Algorithm is lossless. | |
36 | ||
34bbca7d JR |
37 | %description -l pl.UTF-8 |
38 | LZO jest przenośną biblioteką do bezstratnej kompresji danych, | |
39 | napisaną w ANSI C. Zaimplementowano w niej kilka algorytmów uzyskując | |
40 | następującą funkcjonalność: | |
a068c46a | 41 | - dekompresja jest prosta i *bardzo* szybka |
34bbca7d JR |
42 | - dekompresja nie zużywa dodatkowej pamięci |
43 | - kompresja jest całkiem szybka | |
44 | - kompresja wymaga 64kB pamięci | |
45 | - pozwala zwiększyć kompresję zmniejszając szybkość kompresji, przy | |
46 | czym szybkość dekompresji pozostaje niezmieniona | |
a068c46a | 47 | - zawiera poziomy kompresji do generowania prekompresowanych danych, |
34bbca7d JR |
48 | osiągające całkiem dobry stopień kompresji |
49 | - istnieje poziom kompresji wymagający przy kompresowaniu jedynie 8kB | |
50 | pamięci | |
51 | - obsługuje kompresję nakładającą i 'in-place' | |
52 | - algorytm nadaje się do bezpiecznego wykorzystania w środowisku | |
53 | wielowątkowym | |
a068c46a | 54 | - algorytm jest bezstratny |
55 | ||
e8efac09 | 56 | %package devel |
cd31bb9d | 57 | Summary: LZO header files |
9d5d171b | 58 | Summary(pl.UTF-8): Pliki nagłówkowe LZO |
e8efac09 | 59 | Group: Development/Libraries |
9e8d80bf | 60 | Requires: %{name} = %{version}-%{release} |
e8efac09 | 61 | |
62 | %description devel | |
96846963 | 63 | Header files for LZO. |
e8efac09 | 64 | |
34bbca7d JR |
65 | %description devel -l pl.UTF-8 |
66 | Pliki nagłówkowe dla LZO. | |
dd7562da | 67 | |
e8efac09 | 68 | %package static |
96846963 | 69 | Summary: LZO static library |
9d5d171b | 70 | Summary(pl.UTF-8): Statyczna biblioteka LZO |
e8efac09 | 71 | Group: Development/Libraries |
9e8d80bf | 72 | Requires: %{name}-devel = %{version}-%{release} |
e8efac09 | 73 | |
74 | %description static | |
96846963 | 75 | LZO static library. |
e8efac09 | 76 | |
34bbca7d | 77 | %description static -l pl.UTF-8 |
cd31bb9d | 78 | Biblioteka statyczna LZO. |
dd7562da | 79 | |
e8efac09 | 80 | %prep |
cd31bb9d | 81 | %setup -q |
41615d87 | 82 | %patch0 -p1 |
cd31bb9d | 83 | |
9e8d80bf JB |
84 | # kill libtool.m4 copy |
85 | head -n 374 aclocal.m4 > acinclude.m4 | |
86 | ||
e8efac09 | 87 | %build |
4d64f8a7 | 88 | %{__libtoolize} |
9e8d80bf | 89 | %{__aclocal} |
4d64f8a7 | 90 | %{__autoconf} |
9e8d80bf | 91 | %{__autoheader} |
4d64f8a7 | 92 | %{__automake} |
6872b70b | 93 | %configure \ |
4d64f8a7 | 94 | %ifarch %{x86} |
95 | --enable-asm \ | |
96 | %endif | |
1ec93175 | 97 | --enable-shared |
e8efac09 | 98 | |
9e8d80bf JB |
99 | %{__make} \ |
100 | CFLAGS_O="" | |
e8efac09 | 101 | |
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
9e8d80bf JB |
105 | %{__make} install \ |
106 | DESTDIR=$RPM_BUILD_ROOT | |
e8efac09 | 107 | |
cd31bb9d JB |
108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
e8efac09 | 110 | |
96846963 | 111 | %post -p /sbin/ldconfig |
e8efac09 | 112 | %postun -p /sbin/ldconfig |
113 | ||
e8efac09 | 114 | %files |
96846963 | 115 | %defattr(644,root,root,755) |
4d64f8a7 | 116 | %doc AUTHORS BUGS NEWS README THANKS doc/LZO.FAQ doc/LZO.TXT |
cfe9dd58 | 117 | %attr(755,root,root) %{_libdir}/liblzo2.so.*.*.* |
e8efac09 | 118 | |
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
4d64f8a7 | 121 | %doc doc/LZOAPI.TXT |
cfe9dd58 JB |
122 | %attr(755,root,root) %{_libdir}/liblzo2.so |
123 | %{_libdir}/liblzo2.la | |
9e8d80bf | 124 | %{_includedir}/lzo |
e8efac09 | 125 | |
126 | %files static | |
127 | %defattr(644,root,root,755) | |
cfe9dd58 | 128 | %{_libdir}/liblzo2.a |