]>
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 MT |
6 | name = bzip2 |
7 | version = 1.0.6 | |
8 | release = 1 | |
166a6c21 | 9 | |
802ea3af MT |
10 | groups = Applications/Compression Build |
11 | url = http://www.bzip.org/ | |
12 | license = GPLv2+ | |
13 | summary = Bzip2 is a data compressor. | |
166a6c21 | 14 | |
802ea3af MT |
15 | description |
16 | bzip2 is a freely available, patent free (see below), high-quality data | |
166a6c21 | 17 | compressor that is an alternative to the GNU zip compressor. |
802ea3af MT |
18 | end |
19 | ||
20 | source_dl = http://www.bzip.org/%{version}/ | |
21 | ||
22 | CFLAGS += -fPIC -D_FILE_OFFSET_BITS=64 | |
23 | ||
24 | build | |
25 | prepare_cmds | |
26 | sed -i 's@\(ln -s -f \)\$(PREFIX)/bin/@\1@' Makefile | |
27 | sed -e "s/\$(CC) -shared/& %{CFLAGS}/" -i Makefile-libbz2_so | |
28 | end | |
29 | ||
30 | build | |
31 | %{DO_FIX_LIBTOOL} | |
32 | make -f Makefile-libbz2_so %{PARALLELISMFLAGS} | |
33 | ||
34 | make clean | |
35 | make %{PARALLELISMFLAGS} | |
36 | end | |
37 | ||
38 | install | |
39 | make PREFIX=%{BUILDROOT}/usr install | |
40 | ||
41 | mkdir -pv %{BUILDROOT}/{bin,lib} | |
42 | cp -v bzip2-shared %{BUILDROOT}/bin/bzip2 | |
43 | cp -av libbz2.so* %{BUILDROOT}/lib | |
44 | ln -sfv ../../lib/libbz2.so.1.0 %{BUILDROOT}/usr/lib/libbz2.so | |
45 | rm -fv %{BUILDROOT}/usr/bin/{bunzip2,bzcat,bzip2} | |
46 | ln -sfv bzip2 %{BUILDROOT}/bin/bunzip2 | |
47 | ln -sfv bzip2 %{BUILDROOT}/bin/bzcat | |
48 | rm -vf %{BUILDROOT}/usr/lib/libbz2.a | |
49 | ||
50 | mkdir -pv %{BUIDLROOT}/usr/share | |
51 | mv -vf %{BUILDROOT}/usr/man %{BUILDROOT}/usr/share/ | |
52 | end | |
53 | end | |
54 | ||
55 | packages | |
56 | package %{name} | |
57 | end | |
58 | ||
59 | package %{name}-devel | |
60 | template DEVEL | |
61 | end | |
62 | end |