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: libstdc++-devel
20 # does not need -libs, due apps being not linked with shared lib
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 LZMA is default and general compression method of 7z format in 7-Zip
25 program. LZMA provides high compression ratio and very fast
26 decompression, so it is very suitable for embedded applications. For
27 example, it can be used for ROM (firmware) compressing.
31 - Compressing speed: 500 KB/s on 1 GHz CPU
32 - Decompressing speed:
33 - 8-12 MB/s on 1 GHz Intel Pentium 3 or AMD Athlon.
34 - 500-1000 KB/s on 100 MHz ARM, MIPS, PowerPC or other simple RISC
36 - Small memory requirements for decompressing: 8-32 KB + dictionary
38 - Small code size for decompressing: 2-8 KB (depending from speed
41 %description -l pl.UTF-8
42 LZMA jest domyślnym i ogólnym algorytmem kompresji formatu 7z
43 stosowanego przez 7-Zip. LZMA zapewnia wysoki stopień kompresji i
44 bardzo szybką dekompresję, więc nadaje się do zastosowań osadzonych.
45 Przykładowo, może być użyty do kompresji ROM-u (firmware'u).
49 - Szybkość kompresowania: 500 KB/s na 1 GHz procesorze,
50 - Szybkość dekompresowania:
51 - 8-12 MB/s na 1 GHz Pentium 3 lub Athlonie,
52 - 500-1000 KB/s na 100 MHz procesorach ARM, MIPS, PowerPC lub innych
54 - Mała ilość pamięci potrzebna do dekompresowania: 8-32 KB + rozmiar
56 - Mały rozmiar kodu dekompresującego: 2-8 KB (w zależności od opcji
60 Summary: LZMA shared library
61 Summary(pl.UTF-8): Biblioteka współdzielona LZMA
67 %description libs -l pl.UTF-8
68 Biblioteka współdzielona LZMA.
71 Summary: Header file for LZMA library
72 Summary(pl.UTF-8): Plik nagłówkowy biblioteki LZMA
73 Group: Development/Libraries
74 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
77 Header file for LZMA library.
79 %description devel -l pl.UTF-8
80 Plik nagłówkowy biblioteki LZMA.
83 Summary: LZMA static library
84 Summary(pl.UTF-8): Biblioteka statyczna LZMA
85 Group: Development/Libraries
86 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
91 %description static -l pl.UTF-8
92 Biblioteka statyczna LZMA.
95 %setup -q -n %{name}-%{version}%{snap}
103 rm -rf $RPM_BUILD_ROOT
106 DESTDIR=$RPM_BUILD_ROOT
110 %{?with_tests:%{__make} check}
113 rm -rf $RPM_BUILD_ROOT
115 %post libs -p /sbin/ldconfig
116 %postun libs -p /sbin/ldconfig
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_bindir}/lz*
121 %{_mandir}/man1/lz*.1*
123 %files libs -f %{name}.lang
124 %defattr(644,root,root,755)
125 %doc AUTHORS COPYING README THANKS TODO
126 %doc doc/{bugs,faq,file-format,history,lzma-intro}.txt
127 %attr(755,root,root) %{_libdir}/liblzma.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/liblzma.so.0
131 %defattr(644,root,root,755)
132 %doc doc/liblzma-*.txt
133 %attr(755,root,root) %{_libdir}/liblzma.so
134 %{_libdir}/liblzma.la
135 %{_includedir}/lzma.h
137 %{_pkgconfigdir}/lzma.pc
140 %defattr(644,root,root,755)