]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - bzip2/bzip2.nm
grep: Update to version 2.18.
[people/ms/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
1a829f6f 8release = 6
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}
f32f7e83 32 make -f Makefile-libbz2_so %{PARALLELISMFLAGS} CFLAGS="%{CFLAGS}"
802ea3af
MT
33
34 make clean
f32f7e83 35 make %{PARALLELISMFLAGS} CFLAGS="%{CFLAGS}"
802ea3af
MT
36 end
37
38 install
f32f7e83 39 # Install binaries.
887bbd54
MT
40 mkdir -pv %{BUILDROOT}%{bindir}
41 cp -v bzip2-shared %{BUILDROOT}%{bindir}/bzip2
f32f7e83
MT
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.
1a829f6f
MT
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
f32f7e83
MT
52
53 # Install headers.
54 mkdir -pv %{BUILDROOT}%{includedir}
55 install -m 644 bzlib.h %{BUILDROOT}%{includedir}
802ea3af 56
f32f7e83 57 # Install man pages.
887bbd54 58 mkdir -pv %{BUILDROOT}%{mandir}/man1
f32f7e83 59 cp -vp bzip2.1 bzdiff.1 bzgrep.1 bzmore.1 %{BUILDROOT}%{mandir}/man1
887bbd54 60 chown root.root -v %{BUILDROOT}%{mandir}/man1/*
f32f7e83
MT
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
887bbd54 65 ln -svf bzmore.1 %{BUILDROOT}%{mandir}/man1/bzless.1
802ea3af
MT
66 end
67end
68
69packages
70 package %{name}
02dd07b2 71 groups += Build
1a829f6f
MT
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
802ea3af 78 end
93745178 79
802ea3af
MT
80 package %{name}-devel
81 template DEVEL
82 end
1f9bc2f0
MT
83
84 package %{name}-debuginfo
85 template DEBUGINFO
86 end
802ea3af 87end