1 |
%define major 5 |
2 |
%define lname lzma |
3 |
%define libname %mklibname %{lname} %{major} |
4 |
%define libdev %mklibname -d %{lname} |
5 |
|
6 |
Summary: XZ utils |
7 |
Name: xz |
8 |
Version: 5.0.0 |
9 |
Release: %mkrel 2 |
10 |
License: Public Domain |
11 |
Group: Archiving/Compression |
12 |
Source0: http://tukaani.org/lzma/%{name}-%{version}.tar.xz |
13 |
Source1: xzme |
14 |
Patch0: xz-5.0.0-text-tune.patch |
15 |
Obsoletes: lzma <= %{version} lzma-utils <= %{version} |
16 |
Provides: lzma = %{version}-%{release} lzma-utils = %{version}-%{release} |
17 |
BuildRequires: zlib-devel diffutils |
18 |
URL: http://tukaani.org/lzma/ |
19 |
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
20 |
|
21 |
%description |
22 |
XZ provides very high compression ratio and fast decompression. The |
23 |
core of the XZ utils is Igor Pavlov's LZMA SDK containing the actual |
24 |
LZMA encoder/decoder. LZMA utils add a few scripts which provide |
25 |
gzip-like command line interface and a couple of other XZ related |
26 |
tools. Also provides: |
27 |
|
28 |
- Average compression ratio 30% better than that of gzip and 15% |
29 |
better than that of bzip2. |
30 |
|
31 |
- Decompression speed is only little slower than that of gzip, being |
32 |
two to five times faster than bzip2. |
33 |
|
34 |
- In fast mode, compresses faster than bzip2 with a comparable |
35 |
compression ratio. |
36 |
|
37 |
- Achieving the best compression ratios takes four to even twelve |
38 |
times longer than with bzip2. However. this doesn't affect |
39 |
decompressing speed. |
40 |
|
41 |
- Very similar command line interface than what gzip and bzip2 have. |
42 |
|
43 |
%package -n %{libname} |
44 |
Summary: Libraries for decoding XZ/LZMA compression |
45 |
Group: System/Libraries |
46 |
|
47 |
%description -n %{libname} |
48 |
Libraries for decoding LZMA compression. |
49 |
|
50 |
%package -n %{libdev} |
51 |
Summary: Devel libraries & headers for liblzma |
52 |
Group: Development/C |
53 |
Provides: %{lname}-devel = %{version}-%{release} |
54 |
Provides: lib%{lname}-devel = %{version}-%{release} |
55 |
Requires: %{libname} = %{version} |
56 |
|
57 |
%description -n %{libdev} |
58 |
Devel libraries & headers for liblzma. |
59 |
|
60 |
%prep |
61 |
%setup -q |
62 |
%patch0 -p1 -b .text~ |
63 |
|
64 |
%build |
65 |
CFLAGS="%{optflags} -O3 -funroll-loops" \ |
66 |
%configure2_5x |
67 |
%make |
68 |
|
69 |
%install |
70 |
rm -rf %{buildroot} |
71 |
%makeinstall_std |
72 |
install -m755 %{SOURCE1} -D %{buildroot}%{_bindir}/xzme |
73 |
|
74 |
rm -f %{buildroot}%{_libdir}/*.la |
75 |
%find_lang %{name} |
76 |
|
77 |
%check |
78 |
make check |
79 |
|
80 |
%clean |
81 |
rm -rf %{buildroot} |
82 |
|
83 |
%files -f %{name}.lang |
84 |
%defattr(-,root,root) |
85 |
%doc README THANKS |
86 |
%{_bindir}/* |
87 |
%{_mandir}/man1/* |
88 |
|
89 |
%files -n %{libname} |
90 |
%defattr(-,root,root) |
91 |
%{_libdir}/lib*.so.%{major}* |
92 |
|
93 |
%files -n %{libdev} |
94 |
%defattr(644,root,root,755) |
95 |
%defattr(-,root,root) |
96 |
%{_includedir}/%{lname}.h |
97 |
%dir %{_includedir}/%{lname} |
98 |
%{_includedir}/%{lname}/*.h |
99 |
%{_libdir}/*.so |
100 |
%{_libdir}/*.a |
101 |
%{_libdir}/pkgconfig/lib%{lname}.pc |
102 |
|
103 |
|
104 |
|