]> git.ipfire.org Git - ipfire-3.x.git/blob - bzip2/bzip2.nm
net-snmp: Do not create /var/run anymore
[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.8
8 release = 2
9
10 groups = Applications/Compression
11 url = https://sourceware.org/bzip2/
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 = https://sourceware.org/pub/bzip2/
21
22 build
23 build
24 make -f Makefile-libbz2_so %{PARALLELISMFLAGS} \
25 CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}"
26
27 make clean
28 make %{PARALLELISMFLAGS} \
29 CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}"
30 end
31
32 install
33 # Install binaries.
34 mkdir -pv %{BUILDROOT}%{bindir}
35 cp -v bzip2-shared %{BUILDROOT}%{bindir}/bzip2
36 ln -svf bzip2 %{BUILDROOT}%{bindir}/bunzip2
37 ln -svf bzip2 %{BUILDROOT}%{bindir}/bzcat
38 ln -svf bzip2 %{BUILDROOT}%{bindir}/bzcmp
39 ln -svf bzip2 %{BUILDROOT}%{bindir}/bless
40
41 # Install libs.
42 mkdir -pv %{BUILDROOT}%{libdir}
43 install -m 755 libbz2.so.%{version} %{BUILDROOT}/%{libdir}
44 ln -svf libbz2.so.%{version} %{BUILDROOT}/%{libdir}/libbz2.so.1
45 ln -svf libbz2.so.1 %{BUILDROOT}%{libdir}/libbz2.so
46
47 # Install headers.
48 mkdir -pv %{BUILDROOT}%{includedir}
49 install -m 644 bzlib.h %{BUILDROOT}%{includedir}
50
51 # Install man pages.
52 mkdir -pv %{BUILDROOT}%{mandir}/man1
53 cp -vp bzip2.1 bzdiff.1 bzgrep.1 bzmore.1 %{BUILDROOT}%{mandir}/man1
54 chown root.root -v %{BUILDROOT}%{mandir}/man1/*
55 ln -svf bzip2.1 %{BUILDROOT}%{mandir}/man1/bzip2recover.1
56 ln -svf bzip2.1 %{BUILDROOT}%{mandir}/man1/bunzip2.1
57 ln -svf bzip2.1 %{BUILDROOT}%{mandir}/man1/bzcat.1
58 ln -svf bzdiff.1 %{BUILDROOT}%{mandir}/man1/bzcmp.1
59 ln -svf bzmore.1 %{BUILDROOT}%{mandir}/man1/bzless.1
60 end
61 end
62
63 packages
64 package %{name}
65
66 package %{name}-libs
67 template LIBS
68 end
69
70 package %{name}-devel
71 template DEVEL
72 end
73
74 package %{name}-debuginfo
75 template DEBUGINFO
76 end
77 end