]> git.pld-linux.org Git - packages/xz.git/blame - xz.spec
- rel 3; avoid trying to use more memory than 32bit process can handle
[packages/xz.git] / xz.spec
CommitLineData
1846bd29
JB
1#
2# Conditional build:
3%bcond_without tests # don't perform make check
8ecd375e 4%bcond_without asm # ix86 asm optimizations
5c4bddac
ER
5
6%ifnarch %{ix86}
7# Speed-optimized CRC64 using slicing-by-four algorithm. This uses only i386
8# instructions, but it is optimized for i686 and later (including e.g. Pentium
9# II/III/IV, Athlon XP, and Core 2).
10%undefine with_asm
11%endif
521b5888
ER
12
13%if "%{pld_release}" == "ac"
14%undefine with_asm
15%endif
16
82d22baf 17Summary: LZMA Encoder/Decoder
34fad00c 18Summary(pl.UTF-8): Koder/Dekoder LZMA
d73f94d2 19Name: xz
092d9d2e 20Version: 5.1.2
6685de15 21Release: 3
92626cfe 22Epoch: 1
9acc8826 23License: LGPL v2.1+, helper scripts on GPL v2+
82d22baf 24Group: Applications/Archiving
5224dc25 25Source0: http://tukaani.org/xz/%{name}-%{version}alpha.tar.gz
092d9d2e 26# Source0-md5: 9bad1e249537ce69b206815cf28ca87b
aaa8729b 27Patch0: %{name}-parallel.patch
75b7e3b3 28Patch1: %{name}-realloc.patch
6685de15 29Patch2: %{name}-memlimit.patch
d73f94d2 30URL: http://tukaani.org/xz/
521b5888
ER
31%{?with_asm:BuildRequires: gcc >= 5:3.4}
32BuildRequires: rpm >= 4.4.9-56
56d2abb2 33BuildRequires: rpmbuild(macros) >= 1.402
b8f8253e 34BuildRequires: sed >= 4.0
01610c22 35Requires: %{name}-libs = %{epoch}:%{version}-%{release}
521b5888 36Suggests: mktemp
99e7eab7
AM
37Provides: lzma = %{epoch}:%{version}-%{release}
38Obsoletes: lzma < 1:4.999.6
521b5888 39Conflicts: rpm < 4.4.9
82d22baf 40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42%description
43LZMA is default and general compression method of 7z format in 7-Zip
44program. LZMA provides high compression ratio and very fast
45decompression, so it is very suitable for embedded applications. For
46example, it can be used for ROM (firmware) compressing.
47
48LZMA features:
49
50- Compressing speed: 500 KB/s on 1 GHz CPU
51- Decompressing speed:
52 - 8-12 MB/s on 1 GHz Intel Pentium 3 or AMD Athlon.
53 - 500-1000 KB/s on 100 MHz ARM, MIPS, PowerPC or other simple RISC
54 CPU.
2f88d337 55- Small memory requirements for decompressing: 8-32 KB + dictionary
56 size
82d22baf 57- Small code size for decompressing: 2-8 KB (depending from speed
58 optimizations)
59
fb275d27
JR
60%description -l pl.UTF-8
61LZMA jest domyślnym i ogólnym algorytmem kompresji formatu 7z
62stosowanego przez 7-Zip. LZMA zapewnia wysoki stopień kompresji i
63bardzo szybką dekompresję, więc nadaje się do zastosowań osadzonych.
64Przykładowo, może być użyty do kompresji ROM-u (firmware'u).
82d22baf 65
66Cechy LZMA:
67
fb275d27
JR
68- Szybkość kompresowania: 500 KB/s na 1 GHz procesorze,
69- Szybkość dekompresowania:
82d22baf 70 - 8-12 MB/s na 1 GHz Pentium 3 lub Athlonie,
71 - 500-1000 KB/s na 100 MHz procesorach ARM, MIPS, PowerPC lub innych
72 prostych RISC-ach,
fb275d27
JR
73- Mała ilość pamięci potrzebna do dekompresowania: 8-32 KB + rozmiar
74 słownika,
75- Mały rozmiar kodu dekompresującego: 2-8 KB (w zależności od opcji
82d22baf 76 optymalizacji).
77
1010510a
ER
78%package libs
79Summary: LZMA shared library
34fad00c 80Summary(pl.UTF-8): Biblioteka współdzielona LZMA
1010510a 81Group: Libraries
99e7eab7
AM
82Provides: lzma-libs = %{epoch}:%{version}-%{release}
83Obsoletes: lzma-libs < 1:4.999.6
1010510a
ER
84
85%description libs
84d12552
JB
86LZMA shared library.
87
fb275d27
JR
88%description libs -l pl.UTF-8
89Biblioteka współdzielona LZMA.
1010510a 90
90fc2073 91%package devel
84d12552 92Summary: Header file for LZMA library
34fad00c 93Summary(pl.UTF-8): Plik nagłówkowy biblioteki LZMA
d9b6428a 94Group: Development/Libraries
b8dda4f2 95Requires: %{name}-libs = %{epoch}:%{version}-%{release}
99e7eab7
AM
96Provides: lzma-devel = %{epoch}:%{version}-%{release}
97Obsoletes: lzma-devel < 1:4.999.6
90fc2073 98
99%description devel
84d12552 100Header file for LZMA library.
6e34e97f 101
fb275d27
JR
102%description devel -l pl.UTF-8
103Plik nagłówkowy biblioteki LZMA.
90fc2073 104
1010510a
ER
105%package static
106Summary: LZMA static library
34fad00c 107Summary(pl.UTF-8): Biblioteka statyczna LZMA
1010510a 108Group: Development/Libraries
b8dda4f2 109Requires: %{name}-devel = %{epoch}:%{version}-%{release}
99e7eab7
AM
110Provides: lzma-static = %{epoch}:%{version}-%{release}
111Obsoletes: lzma-static < 1:4.999.6
1010510a
ER
112
113%description static
84d12552
JB
114LZMA static library.
115
fb275d27 116%description static -l pl.UTF-8
84d12552 117Biblioteka statyczna LZMA.
1010510a 118
82d22baf 119%prep
5224dc25 120%setup -q -n %{name}-%{version}alpha
aaa8729b 121%patch0 -p1
75b7e3b3 122%patch1 -p1
6685de15 123%patch2 -p1
82d22baf 124
125%build
521b5888
ER
126%configure \
127 %{!?with_asm:--disable-assembler}
92626cfe 128%{__make}
90fc2073 129
b7470431
AM
130%{?with_tests:%{__make} check}
131
82d22baf 132%install
133rm -rf $RPM_BUILD_ROOT
71b73044 134install -d $RPM_BUILD_ROOT/{etc/env.d,%{_lib}}
82d22baf 135
92626cfe
AM
136%{__make} install \
137 DESTDIR=$RPM_BUILD_ROOT
138
35e87229 139mv -f $RPM_BUILD_ROOT%{_libdir}/liblzma.so.* $RPM_BUILD_ROOT/%{_lib}
8ecd375e 140ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/liblzma.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/liblzma.so
35e87229 141
d73f94d2 142echo '#XZ_OPT="--threads=2"' > $RPM_BUILD_ROOT/etc/env.d/XZ_OPT
71b73044 143
590de190 144%find_lang %{name}
82d22baf 145
146%clean
147rm -rf $RPM_BUILD_ROOT
148
1010510a
ER
149%post libs -p /sbin/ldconfig
150%postun libs -p /sbin/ldconfig
151
590de190 152%files -f %{name}.lang
82d22baf 153%defattr(644,root,root,755)
d73f94d2 154%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/XZ_OPT
590de190
JB
155%attr(755,root,root) %{_bindir}/lz*
156%attr(755,root,root) %{_bindir}/unlzma
157%attr(755,root,root) %{_bindir}/unxz
158%attr(755,root,root) %{_bindir}/xz*
159%{_mandir}/man1/lz*.1*
160%{_mandir}/man1/unlzma.1*
161%{_mandir}/man1/unxz.1*
162%{_mandir}/man1/xz*.1*
163
164%files libs
92626cfe 165%defattr(644,root,root,755)
d73f94d2 166%doc AUTHORS COPYING README THANKS
2e897a0c 167%doc doc/*.txt
35e87229 168%attr(755,root,root) /%{_lib}/liblzma.so.*.*.*
42322a5b 169%attr(755,root,root) %ghost /%{_lib}/liblzma.so.5
1010510a 170
92626cfe
AM
171%files devel
172%defattr(644,root,root,755)
9acc8826
JB
173%attr(755,root,root) %{_libdir}/liblzma.so
174%{_libdir}/liblzma.la
175%{_includedir}/lzma.h
fbb952ac 176%{_includedir}/lzma
d73f94d2 177%{_pkgconfigdir}/liblzma.pc
1010510a 178
92626cfe
AM
179%files static
180%defattr(644,root,root,755)
9acc8826 181%{_libdir}/liblzma.a
This page took 0.052541 seconds and 4 git commands to generate.