]> git.ipfire.org Git - ipfire-3.x.git/blame - bzip2/bzip2.nm
json-c: Update to version 0.17-20230812
[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 6name = bzip2
025fddde 7version = 1.0.8
e96c88aa 8release = 2
166a6c21 9
02dd07b2 10groups = Applications/Compression
025fddde 11url = https://sourceware.org/bzip2/
802ea3af 12license = GPLv2+
025fddde 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
025fddde 20source_dl = https://sourceware.org/pub/bzip2/
802ea3af
MT
21
22build
802ea3af 23 build
84b2d20e
MT
24 make -f Makefile-libbz2_so %{PARALLELISMFLAGS} \
25 CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}"
802ea3af
MT
26
27 make clean
84b2d20e
MT
28 make %{PARALLELISMFLAGS} \
29 CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}"
802ea3af
MT
30 end
31
32 install
f32f7e83 33 # Install binaries.
887bbd54
MT
34 mkdir -pv %{BUILDROOT}%{bindir}
35 cp -v bzip2-shared %{BUILDROOT}%{bindir}/bzip2
f32f7e83
MT
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.
1a829f6f
MT
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
f32f7e83
MT
46
47 # Install headers.
48 mkdir -pv %{BUILDROOT}%{includedir}
49 install -m 644 bzlib.h %{BUILDROOT}%{includedir}
802ea3af 50
f32f7e83 51 # Install man pages.
887bbd54 52 mkdir -pv %{BUILDROOT}%{mandir}/man1
f32f7e83 53 cp -vp bzip2.1 bzdiff.1 bzgrep.1 bzmore.1 %{BUILDROOT}%{mandir}/man1
887bbd54 54 chown root.root -v %{BUILDROOT}%{mandir}/man1/*
f32f7e83
MT
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
887bbd54 59 ln -svf bzmore.1 %{BUILDROOT}%{mandir}/man1/bzless.1
802ea3af
MT
60 end
61end
62
63packages
64 package %{name}
1a829f6f 65
025fddde
MT
66 package %{name}-libs
67 template LIBS
802ea3af 68 end
93745178 69
802ea3af
MT
70 package %{name}-devel
71 template DEVEL
72 end
1f9bc2f0
MT
73
74 package %{name}-debuginfo
75 template DEBUGINFO
76 end
802ea3af 77end