]>
Commit | Line | Data |
---|---|---|
166a6c21 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
166a6c21 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = xz |
4cebc483 | 7 | version = 5.2.0 |
9beff422 | 8 | release = 1 |
0497e11d MT |
9 | |
10 | compat_version = 4.999.9beta | |
166a6c21 | 11 | |
ebaa4f76 | 12 | groups = Applications/Compression |
802ea3af | 13 | url = http://tukaani.org/xz/ |
ebaa4f76 | 14 | license = LGPLv2+ |
802ea3af | 15 | summary = LZMA Utils. |
166a6c21 | 16 | |
802ea3af | 17 | description |
166a6c21 MT |
18 | LZMA provides very high compression ratio and fast decompression. The \ |
19 | core of the LZMA utils is Igor Pavlov's LZMA SDK containing the actual \ | |
20 | LZMA encoder/decoder. LZMA utils add a few scripts which provide \ | |
21 | gzip-like command line interface and a couple of other LZMA related \ | |
22 | tools. | |
802ea3af MT |
23 | end |
24 | ||
ae24b962 | 25 | source_dl = http://tukaani.org/xz/ |
0497e11d MT |
26 | sources = %{thisapp}.tar.xz %{name}-%{compat_version}.tar.xz |
27 | ||
28 | build | |
b56cf9ff MT |
29 | requires |
30 | autoconf | |
31 | automake | |
32 | end | |
33 | ||
bc2d41d6 MT |
34 | configure_options += --disable-rpath |
35 | ||
0497e11d MT |
36 | build_cmds |
37 | # Build compat version of library. | |
38 | cd %{DIR_SRC}/%{name}-%{compat_version} | |
b56cf9ff | 39 | autoreconf -vfi # for aarch64 |
0497e11d | 40 | ./configure %{configure_options} |
bc2d41d6 | 41 | %{MACRO_FIX_LIBTOOL} |
0497e11d MT |
42 | make %{PARALLELISMFLAGS} |
43 | end | |
44 | ||
a6ed23c7 MT |
45 | test |
46 | export LD_LIBRARY_PATH=$(pwd)/src/liblzma/.libs | |
47 | make check | |
48 | end | |
49 | ||
0497e11d MT |
50 | install_cmds |
51 | # Install comapt version of library. | |
52 | cd %{DIR_SRC}/%{name}-%{compat_version} | |
bc2d41d6 | 53 | cp -vr src/liblzma/.libs/liblzma.so.0* %{BUILDROOT}%{libdir} |
0497e11d MT |
54 | end |
55 | end | |
802ea3af MT |
56 | |
57 | packages | |
58 | package %{name} | |
ebaa4f76 MT |
59 | groups += Build |
60 | end | |
802ea3af | 61 | |
802ea3af MT |
62 | package %{name}-libs |
63 | template LIBS | |
64 | end | |
8b6ec1e2 MT |
65 | |
66 | package %{name}-devel | |
67 | template DEVEL | |
68 | end | |
ebaa4f76 MT |
69 | |
70 | package xz-lzma-compat | |
71 | summary = Older LZMA format compatibility binaries. | |
72 | description | |
73 | The xz-lzma-compat package contains compatibility | |
74 | links for older commands that deal with the older | |
75 | LZMA format. | |
76 | end | |
77 | license = GPLv2+ and LGPLv2+ | |
a6988ba2 | 78 | groups += Build |
ebaa4f76 MT |
79 | |
80 | requires = %{name}=%{thisver} | |
a6988ba2 | 81 | provides = lzma |
ebaa4f76 MT |
82 | |
83 | files | |
84 | /usr/bin/*lz* | |
85 | /usr/share/man/man1/*lz* | |
86 | end | |
87 | end | |
0497e11d MT |
88 | |
89 | package xz-compat-libs | |
90 | summary = Compatibility version of %{name} (%{compat_version}). | |
91 | ||
92 | files | |
bc2d41d6 | 93 | %{libdir}/lib*.so.0* |
0497e11d MT |
94 | end |
95 | end | |
1f9bc2f0 MT |
96 | |
97 | package %{name}-debuginfo | |
98 | template DEBUGINFO | |
99 | end | |
802ea3af | 100 | end |