1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Applications/Compression
11 url = http://www.bzip.org/
13 summary = Bzip2 is a data compressor.
16 bzip2 is a freely available, patent free (see below), high-quality data
17 compressor that is an alternative to the GNU zip compressor.
20 source_dl = http://www.bzip.org/%{version}/
22 CFLAGS += -fPIC -D_FILE_OFFSET_BITS=64
26 sed -i 's@\(ln -s -f \)\$(PREFIX)/bin/@\1@' Makefile
27 sed -e "s/\$(CC) -shared/& %{CFLAGS}/" -i Makefile-libbz2_so
32 make -f Makefile-libbz2_so %{PARALLELISMFLAGS} \
36 make %{PARALLELISMFLAGS} \
41 make PREFIX=%{BUILDROOT}/usr install
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
52 mkdir -pv %{BUIDLROOT}/usr/share
53 mv -vf %{BUILDROOT}/usr/man %{BUILDROOT}/usr/share/
66 package %{name}-debuginfo