]> git.ipfire.org Git - ipfire-3.x.git/blob - bzip2/bzip2.nm
Add a -debuginfo for every package that is not noarch.
[ipfire-3.x.git] / bzip2 / bzip2.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = bzip2
7 version = 1.0.6
8 release = 3
9
10 groups = Applications/Compression
11 url = http://www.bzip.org/
12 license = GPLv2+
13 summary = Bzip2 is a data compressor.
14
15 description
16 bzip2 is a freely available, patent free (see below), high-quality data
17 compressor that is an alternative to the GNU zip compressor.
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 CFLAGS="%{CFLAGS}"
34
35 make clean
36 make %{PARALLELISMFLAGS} \
37 CFLAGS="%{CFLAGS}"
38 end
39
40 install
41 make PREFIX=%{BUILDROOT}/usr install
42
43 mkdir -pv %{BUILDROOT}/{bin,lib}
44 cp -v bzip2-shared %{BUILDROOT}/bin/bzip2
45 cp -av libbz2.so* %{BUILDROOT}/lib
46 ln -sfv ../../lib/libbz2.so.1.0 %{BUILDROOT}/usr/lib/libbz2.so
47 rm -fv %{BUILDROOT}/usr/bin/{bunzip2,bzcat,bzip2}
48 ln -sfv bzip2 %{BUILDROOT}/bin/bunzip2
49 ln -sfv bzip2 %{BUILDROOT}/bin/bzcat
50 rm -vf %{BUILDROOT}/usr/lib/libbz2.a
51
52 mkdir -pv %{BUIDLROOT}/usr/share
53 mv -vf %{BUILDROOT}/usr/man %{BUILDROOT}/usr/share/
54 end
55 end
56
57 packages
58 package %{name}
59 groups += Build
60 end
61
62 package %{name}-devel
63 template DEVEL
64 end
65
66 package %{name}-debuginfo
67 template DEBUGINFO
68 end
69 end