1 Summary: LZMA Encoder/Decoder
2 Summary(pl): Koder/Dekoder LZMA
7 Group: Applications/Archiving
8 Source0: http://puzzle.dl.sourceforge.net/sevenzip/%{name}442.tar.bz2
9 # Source0-md5: 5274c2bbdac69834be636ad2eaf5bab5
10 Patch0: %{name}-quiet.patch
11 Patch1: %{name}427_zlib.patch
12 Patch2: %{name}-type-redefinition.patch
13 URL: http://www.7-zip.org/sdk.html
14 BuildRequires: gcc >= 5:3.4.0
15 BuildRequires: libstdc++-devel
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 LZMA is default and general compression method of 7z format in 7-Zip
20 program. LZMA provides high compression ratio and very fast
21 decompression, so it is very suitable for embedded applications. For
22 example, it can be used for ROM (firmware) compressing.
26 - Compressing speed: 500 KB/s on 1 GHz CPU
27 - Decompressing speed:
28 - 8-12 MB/s on 1 GHz Intel Pentium 3 or AMD Athlon.
29 - 500-1000 KB/s on 100 MHz ARM, MIPS, PowerPC or other simple RISC
31 - Small memory requirements for decompressing: 8-32 KB + dictionary
33 - Small code size for decompressing: 2-8 KB (depending from speed
37 LZMA jest domy¶lnym i ogólnym algorytmem kompresji formatu 7z
38 stosowanego przez 7-Zip. LZMA zapewnia wysoki stopieñ kompresji i
39 bardzo szybk± dekompresjê, wiêc nadaje siê do zastosowañ osadzonych.
40 Przyk³adowo, mo¿e byæ u¿yty do kompresji ROM-u (firmware'u).
44 - Szybko¶æ kompresowania: 500 KB/s na 1 GHz procesorze,
45 - Szybko¶æ dekompresowania:
46 - 8-12 MB/s na 1 GHz Pentium 3 lub Athlonie,
47 - 500-1000 KB/s na 100 MHz procesorach ARM, MIPS, PowerPC lub innych
49 - Ma³a ilo¶æ pamiêci potrzebna do dekompresowania: 8-32 KB + rozmiar
51 - Ma³y rozmiar kodu dekompresuj±cego: 2-8 KB (w zale¿no¶ci od opcji
56 Summary(pl): Biblioteka LZMA
57 Group: Development/Libraries
62 %description devel -l pl
72 cd C/7zip/Compress/LZMA_Alone
73 %{__make} -f makefile.gcc \
76 CFLAGS="%{rpmcflags} -fprofile-generate -c -I ../../.." \
77 LDFLAGS="%{rpmldflags} -fprofile-generate" \
82 tar cf test3 ../../../../*
93 %{__make} -f makefile.gcc clean
95 %{__make} -f makefile.gcc \
98 CFLAGS="%{rpmcflags} -fprofile-use -c -I ../../.." \
99 LDFLAGS="%{rpmldflags}"
102 %{__make} -f makefile \
104 CFLAGS="%{rpmcflags} -c"
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}}
110 install C/7zip/Compress/LZMA_Alone/lzma $RPM_BUILD_ROOT%{_bindir}
111 install C/7zip/Compress/LZMA_Lib/liblzma.a $RPM_BUILD_ROOT%{_libdir}
114 rm -rf $RPM_BUILD_ROOT
117 %defattr(644,root,root,755)
118 %doc history.txt lzma.txt
119 %attr(755,root,root) %{_bindir}/*
122 %defattr(644,root,root,755)