]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - bzip2/bzip2.nm
bzip2: Don't install bzip2-devel in build chroot.
[people/arne_f/ipfire-3.x.git] / bzip2 / bzip2.nm
CommitLineData
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
6name = bzip2
7version = 1.0.6
02dd07b2 8release = 2
166a6c21 9
02dd07b2 10groups = Applications/Compression
802ea3af
MT
11url = http://www.bzip.org/
12license = GPLv2+
13summary = Bzip2 is a data compressor.
166a6c21 14
802ea3af
MT
15description
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
18end
19
20source_dl = http://www.bzip.org/%{version}/
21
22CFLAGS += -fPIC -D_FILE_OFFSET_BITS=64
23
24build
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
53end
54
55packages
56 package %{name}
02dd07b2 57 groups += Build
802ea3af
MT
58 end
59
60 package %{name}-devel
61 template DEVEL
62 end
63end