]>
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 |
9beff422 MT |
7 | version = 5.0.4 |
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 | |
bc2d41d6 MT |
29 | configure_options += --disable-rpath |
30 | ||
0497e11d MT |
31 | build_cmds |
32 | # Build compat version of library. | |
33 | cd %{DIR_SRC}/%{name}-%{compat_version} | |
34 | ./configure %{configure_options} | |
bc2d41d6 | 35 | %{MACRO_FIX_LIBTOOL} |
0497e11d MT |
36 | make %{PARALLELISMFLAGS} |
37 | end | |
38 | ||
a6ed23c7 MT |
39 | test |
40 | export LD_LIBRARY_PATH=$(pwd)/src/liblzma/.libs | |
41 | make check | |
42 | end | |
43 | ||
0497e11d MT |
44 | install_cmds |
45 | # Install comapt version of library. | |
46 | cd %{DIR_SRC}/%{name}-%{compat_version} | |
bc2d41d6 | 47 | cp -vr src/liblzma/.libs/liblzma.so.0* %{BUILDROOT}%{libdir} |
0497e11d MT |
48 | end |
49 | end | |
802ea3af MT |
50 | |
51 | packages | |
52 | package %{name} | |
ebaa4f76 MT |
53 | groups += Build |
54 | end | |
802ea3af | 55 | |
802ea3af MT |
56 | package %{name}-libs |
57 | template LIBS | |
58 | end | |
8b6ec1e2 MT |
59 | |
60 | package %{name}-devel | |
61 | template DEVEL | |
62 | end | |
ebaa4f76 MT |
63 | |
64 | package xz-lzma-compat | |
65 | summary = Older LZMA format compatibility binaries. | |
66 | description | |
67 | The xz-lzma-compat package contains compatibility | |
68 | links for older commands that deal with the older | |
69 | LZMA format. | |
70 | end | |
71 | license = GPLv2+ and LGPLv2+ | |
a6988ba2 | 72 | groups += Build |
ebaa4f76 MT |
73 | |
74 | requires = %{name}=%{thisver} | |
a6988ba2 | 75 | provides = lzma |
ebaa4f76 MT |
76 | |
77 | files | |
78 | /usr/bin/*lz* | |
79 | /usr/share/man/man1/*lz* | |
80 | end | |
81 | end | |
0497e11d MT |
82 | |
83 | package xz-compat-libs | |
84 | summary = Compatibility version of %{name} (%{compat_version}). | |
85 | ||
86 | files | |
bc2d41d6 | 87 | %{libdir}/lib*.so.0* |
0497e11d MT |
88 | end |
89 | end | |
1f9bc2f0 MT |
90 | |
91 | package %{name}-debuginfo | |
92 | template DEBUGINFO | |
93 | end | |
802ea3af | 94 | end |