]>
Commit | Line | Data |
---|---|---|
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 |
6 | name = bzip2 |
7 | version = 1.0.6 | |
887bbd54 | 8 | release = 5 |
166a6c21 | 9 | |
02dd07b2 | 10 | groups = Applications/Compression |
802ea3af MT |
11 | url = http://www.bzip.org/ |
12 | license = GPLv2+ | |
13 | summary = Bzip2 is a data compressor. | |
166a6c21 | 14 | |
802ea3af MT |
15 | description |
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 |
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} | |
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. | |
48 | mkdir -pv %{BUILDROOT}%{libdir} %{BUILDROOT}/%{lib} | |
49 | install -m 755 libbz2.so.%{version} %{BUILDROOT}/%{lib} | |
887bbd54 MT |
50 | ln -svf libbz2.so.%{version} %{BUILDROOT}/%{lib}/libbz2.so.1 |
51 | ln -svf ../../%{lib}/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 |
67 | end | |
68 | ||
69 | packages | |
70 | package %{name} | |
02dd07b2 | 71 | groups += Build |
802ea3af | 72 | end |
93745178 | 73 | |
802ea3af MT |
74 | package %{name}-devel |
75 | template DEVEL | |
76 | end | |
1f9bc2f0 MT |
77 | |
78 | package %{name}-debuginfo | |
79 | template DEBUGINFO | |
80 | end | |
802ea3af | 81 | end |