2 # - wait for alpha7 which will fix headers installation issue
5 %bcond_without tests # don't perform make check
8 Summary: LZMA Encoder/Decoder
9 Summary(pl.UTF-8): Koder/Dekoder LZMA
14 License: LGPL v2.1+, helper scripts on GPL v2+
15 Group: Applications/Archiving
16 Source0: http://tukaani.org/lzma/%{name}-%{version}%{snap}.tar.gz
17 # Source0-md5: 5cef8b41aecee8ce1c6fbc681701fe61
18 URL: http://tukaani.org/lzma/
19 BuildRequires: rpmbuild(macros) >= 1.402
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 LZMA is default and general compression method of 7z format in 7-Zip
24 program. LZMA provides high compression ratio and very fast
25 decompression, so it is very suitable for embedded applications. For
26 example, it can be used for ROM (firmware) compressing.
30 - Compressing speed: 500 KB/s on 1 GHz CPU
31 - Decompressing speed:
32 - 8-12 MB/s on 1 GHz Intel Pentium 3 or AMD Athlon.
33 - 500-1000 KB/s on 100 MHz ARM, MIPS, PowerPC or other simple RISC
35 - Small memory requirements for decompressing: 8-32 KB + dictionary
37 - Small code size for decompressing: 2-8 KB (depending from speed
40 %description -l pl.UTF-8
41 LZMA jest domyślnym i ogólnym algorytmem kompresji formatu 7z
42 stosowanego przez 7-Zip. LZMA zapewnia wysoki stopień kompresji i
43 bardzo szybką dekompresję, więc nadaje się do zastosowań osadzonych.
44 Przykładowo, może być użyty do kompresji ROM-u (firmware'u).
48 - Szybkość kompresowania: 500 KB/s na 1 GHz procesorze,
49 - Szybkość dekompresowania:
50 - 8-12 MB/s na 1 GHz Pentium 3 lub Athlonie,
51 - 500-1000 KB/s na 100 MHz procesorach ARM, MIPS, PowerPC lub innych
53 - Mała ilość pamięci potrzebna do dekompresowania: 8-32 KB + rozmiar
55 - Mały rozmiar kodu dekompresującego: 2-8 KB (w zależności od opcji
59 Summary: LZMA shared library
60 Summary(pl.UTF-8): Biblioteka współdzielona LZMA
66 %description libs -l pl.UTF-8
67 Biblioteka współdzielona LZMA.
70 Summary: Header file for LZMA library
71 Summary(pl.UTF-8): Plik nagłówkowy biblioteki LZMA
72 Group: Development/Libraries
73 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
76 Header file for LZMA library.
78 %description devel -l pl.UTF-8
79 Plik nagłówkowy biblioteki LZMA.
82 Summary: LZMA static library
83 Summary(pl.UTF-8): Biblioteka statyczna LZMA
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
90 %description static -l pl.UTF-8
91 Biblioteka statyczna LZMA.
94 %setup -q -n %{name}-%{version}%{snap}
102 rm -rf $RPM_BUILD_ROOT
105 DESTDIR=$RPM_BUILD_ROOT
109 %{?with_tests:%{__make} check}
112 rm -rf $RPM_BUILD_ROOT
114 %post libs -p /sbin/ldconfig
115 %postun libs -p /sbin/ldconfig
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_bindir}/lz*
120 %{_mandir}/man1/lz*.1*
122 %files libs -f %{name}.lang
123 %defattr(644,root,root,755)
124 %doc AUTHORS COPYING README THANKS TODO
125 %doc doc/{bugs,faq,file-format,history,lzma-intro}.txt
126 %attr(755,root,root) %{_libdir}/liblzma.so.*.*.*
127 %attr(755,root,root) %ghost %{_libdir}/liblzma.so.0
130 %defattr(644,root,root,755)
131 %doc doc/liblzma-*.txt
132 %attr(755,root,root) %{_libdir}/liblzma.so
133 %{_libdir}/liblzma.la
134 %{_includedir}/lzma.h
136 %{_pkgconfigdir}/lzma.pc
139 %defattr(644,root,root,755)