]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - bzip2/bzip2.nm
libnl3: New package.
[people/ms/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 = 6
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} CFLAGS="%{CFLAGS}"
33
34 make clean
35 make %{PARALLELISMFLAGS} CFLAGS="%{CFLAGS}"
36 end
37
38 install
39 # Install binaries.
40 mkdir -pv %{BUILDROOT}%{bindir}
41 cp -v bzip2-shared %{BUILDROOT}%{bindir}/bzip2
42 ln -svf bzip2 %{BUILDROOT}%{bindir}/bunzip2
43 ln -svf bzip2 %{BUILDROOT}%{bindir}/bzcat
44 ln -svf bzip2 %{BUILDROOT}%{bindir}/bzcmp
45 ln -svf bzip2 %{BUILDROOT}%{bindir}/bless
46
47 # Install libs.
48 mkdir -pv %{BUILDROOT}%{libdir}
49 install -m 755 libbz2.so.%{version} %{BUILDROOT}/%{libdir}
50 ln -svf libbz2.so.%{version} %{BUILDROOT}/%{libdir}/libbz2.so.1
51 ln -svf libbz2.so.1 %{BUILDROOT}%{libdir}/libbz2.so
52
53 # Install headers.
54 mkdir -pv %{BUILDROOT}%{includedir}
55 install -m 644 bzlib.h %{BUILDROOT}%{includedir}
56
57 # Install man pages.
58 mkdir -pv %{BUILDROOT}%{mandir}/man1
59 cp -vp bzip2.1 bzdiff.1 bzgrep.1 bzmore.1 %{BUILDROOT}%{mandir}/man1
60 chown root.root -v %{BUILDROOT}%{mandir}/man1/*
61 ln -svf bzip2.1 %{BUILDROOT}%{mandir}/man1/bzip2recover.1
62 ln -svf bzip2.1 %{BUILDROOT}%{mandir}/man1/bunzip2.1
63 ln -svf bzip2.1 %{BUILDROOT}%{mandir}/man1/bzcat.1
64 ln -svf bzdiff.1 %{BUILDROOT}%{mandir}/man1/bzcmp.1
65 ln -svf bzmore.1 %{BUILDROOT}%{mandir}/man1/bzless.1
66 end
67 end
68
69 packages
70 package %{name}
71 groups += Build
72
73 # Provide older soname to fix problem with
74 # older version of the package.
75 if "%{DISTRO_ARCH}" == "i686"
76 provides += libbz2.so.1.0
77 end
78 end
79
80 package %{name}-devel
81 template DEVEL
82 end
83
84 package %{name}-debuginfo
85 template DEBUGINFO
86 end
87 end