]> git.pld-linux.org Git - packages/xz.git/blame - xz.spec
Release 2 (by relup.sh)
[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
7f77f452 20Version: 5.2.6
b6f04909 21Release: 2
92626cfe 22Epoch: 1
9acc8826 23License: LGPL v2.1+, helper scripts on GPL v2+
82d22baf 24Group: Applications/Archiving
36228597 25Source0: https://tukaani.org/xz/%{name}-%{version}.tar.bz2
7f77f452 26# Source0-md5: 2138d1c1ccd9cc4c972fd89cff0bb2b4
aaa8729b 27Patch0: %{name}-parallel.patch
a17a78a4 28Patch1: %{name}-memlimit.patch
bd361cdc 29Patch2: %{name}-ksh.patch
36228597 30URL: https://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
01610c22 34Requires: %{name}-libs = %{epoch}:%{version}-%{release}
521b5888 35Suggests: mktemp
99e7eab7
AM
36Provides: lzma = %{epoch}:%{version}-%{release}
37Obsoletes: lzma < 1:4.999.6
521b5888 38Conflicts: rpm < 4.4.9
82d22baf 39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42LZMA is default and general compression method of 7z format in 7-Zip
43program. LZMA provides high compression ratio and very fast
44decompression, so it is very suitable for embedded applications. For
45example, it can be used for ROM (firmware) compressing.
46
47LZMA features:
48
49- Compressing speed: 500 KB/s on 1 GHz CPU
50- Decompressing speed:
51 - 8-12 MB/s on 1 GHz Intel Pentium 3 or AMD Athlon.
52 - 500-1000 KB/s on 100 MHz ARM, MIPS, PowerPC or other simple RISC
53 CPU.
2f88d337 54- Small memory requirements for decompressing: 8-32 KB + dictionary
55 size
82d22baf 56- Small code size for decompressing: 2-8 KB (depending from speed
57 optimizations)
58
fb275d27
JR
59%description -l pl.UTF-8
60LZMA jest domyślnym i ogólnym algorytmem kompresji formatu 7z
61stosowanego przez 7-Zip. LZMA zapewnia wysoki stopień kompresji i
62bardzo szybką dekompresję, więc nadaje się do zastosowań osadzonych.
63Przykładowo, może być użyty do kompresji ROM-u (firmware'u).
82d22baf 64
65Cechy LZMA:
66
fb275d27
JR
67- Szybkość kompresowania: 500 KB/s na 1 GHz procesorze,
68- Szybkość dekompresowania:
82d22baf 69 - 8-12 MB/s na 1 GHz Pentium 3 lub Athlonie,
70 - 500-1000 KB/s na 100 MHz procesorach ARM, MIPS, PowerPC lub innych
71 prostych RISC-ach,
fb275d27
JR
72- Mała ilość pamięci potrzebna do dekompresowania: 8-32 KB + rozmiar
73 słownika,
74- Mały rozmiar kodu dekompresującego: 2-8 KB (w zależności od opcji
82d22baf 75 optymalizacji).
76
1010510a
ER
77%package libs
78Summary: LZMA shared library
34fad00c 79Summary(pl.UTF-8): Biblioteka współdzielona LZMA
1010510a 80Group: Libraries
99e7eab7
AM
81Provides: lzma-libs = %{epoch}:%{version}-%{release}
82Obsoletes: lzma-libs < 1:4.999.6
1010510a
ER
83
84%description libs
84d12552
JB
85LZMA shared library.
86
fb275d27
JR
87%description libs -l pl.UTF-8
88Biblioteka współdzielona LZMA.
1010510a 89
90fc2073 90%package devel
84d12552 91Summary: Header file for LZMA library
34fad00c 92Summary(pl.UTF-8): Plik nagłówkowy biblioteki LZMA
d9b6428a 93Group: Development/Libraries
b8dda4f2 94Requires: %{name}-libs = %{epoch}:%{version}-%{release}
99e7eab7
AM
95Provides: lzma-devel = %{epoch}:%{version}-%{release}
96Obsoletes: lzma-devel < 1:4.999.6
90fc2073 97
98%description devel
84d12552 99Header file for LZMA library.
6e34e97f 100
fb275d27
JR
101%description devel -l pl.UTF-8
102Plik nagłówkowy biblioteki LZMA.
90fc2073 103
1010510a
ER
104%package static
105Summary: LZMA static library
34fad00c 106Summary(pl.UTF-8): Biblioteka statyczna LZMA
1010510a 107Group: Development/Libraries
b8dda4f2 108Requires: %{name}-devel = %{epoch}:%{version}-%{release}
99e7eab7
AM
109Provides: lzma-static = %{epoch}:%{version}-%{release}
110Obsoletes: lzma-static < 1:4.999.6
1010510a
ER
111
112%description static
84d12552
JB
113LZMA static library.
114
fb275d27 115%description static -l pl.UTF-8
84d12552 116Biblioteka statyczna LZMA.
1010510a 117
82d22baf 118%prep
197d6627 119%setup -q
aaa8729b 120%patch0 -p1
75b7e3b3 121%patch1 -p1
bd361cdc 122%patch2 -p1
82d22baf 123
124%build
521b5888
ER
125%configure \
126 %{!?with_asm:--disable-assembler}
92626cfe 127%{__make}
90fc2073 128
b7470431
AM
129%{?with_tests:%{__make} check}
130
82d22baf 131%install
132rm -rf $RPM_BUILD_ROOT
e2c9b1ff 133install -d $RPM_BUILD_ROOT{/etc/env.d,/%{_lib}}
bd361cdc 134
92626cfe
AM
135%{__make} install \
136 DESTDIR=$RPM_BUILD_ROOT
137
e2c9b1ff
ER
138%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
139
140install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
141cp -a doc/examples* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
142
35e87229 143mv -f $RPM_BUILD_ROOT%{_libdir}/liblzma.so.* $RPM_BUILD_ROOT/%{_lib}
8ecd375e 144ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/liblzma.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/liblzma.so
35e87229 145
7f77f452
JP
146mv $RPM_BUILD_ROOT%{_mandir}/fr{_FR,}
147
d73f94d2 148echo '#XZ_OPT="--threads=2"' > $RPM_BUILD_ROOT/etc/env.d/XZ_OPT
71b73044 149
590de190 150%find_lang %{name}
82d22baf 151
152%clean
153rm -rf $RPM_BUILD_ROOT
154
1010510a
ER
155%post libs -p /sbin/ldconfig
156%postun libs -p /sbin/ldconfig
157
590de190 158%files -f %{name}.lang
82d22baf 159%defattr(644,root,root,755)
d73f94d2 160%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/XZ_OPT
590de190
JB
161%attr(755,root,root) %{_bindir}/lz*
162%attr(755,root,root) %{_bindir}/unlzma
163%attr(755,root,root) %{_bindir}/unxz
164%attr(755,root,root) %{_bindir}/xz*
165%{_mandir}/man1/lz*.1*
166%{_mandir}/man1/unlzma.1*
167%{_mandir}/man1/unxz.1*
168%{_mandir}/man1/xz*.1*
7fc5fe6b
JB
169%lang(de) %{_mandir}/de/man1/lz*.1*
170%lang(de) %{_mandir}/de/man1/unlzma.1*
171%lang(de) %{_mandir}/de/man1/unxz.1*
172%lang(de) %{_mandir}/de/man1/xz*.1*
7f77f452
JP
173%lang(fr) %{_mandir}/fr/man1/lz*.1*
174%lang(fr) %{_mandir}/fr/man1/unlzma.1*
175%lang(fr) %{_mandir}/fr/man1/unxz.1*
176%lang(fr) %{_mandir}/fr/man1/xz*.1*
590de190
JB
177
178%files libs
92626cfe 179%defattr(644,root,root,755)
d73f94d2 180%doc AUTHORS COPYING README THANKS
2e897a0c 181%doc doc/*.txt
35e87229 182%attr(755,root,root) /%{_lib}/liblzma.so.*.*.*
42322a5b 183%attr(755,root,root) %ghost /%{_lib}/liblzma.so.5
1010510a 184
92626cfe
AM
185%files devel
186%defattr(644,root,root,755)
9acc8826
JB
187%attr(755,root,root) %{_libdir}/liblzma.so
188%{_libdir}/liblzma.la
189%{_includedir}/lzma.h
fbb952ac 190%{_includedir}/lzma
d73f94d2 191%{_pkgconfigdir}/liblzma.pc
e2c9b1ff 192%{_examplesdir}/%{name}-%{version}
1010510a 193
92626cfe
AM
194%files static
195%defattr(644,root,root,755)
9acc8826 196%{_libdir}/liblzma.a
This page took 0.102037 seconds and 4 git commands to generate.