]> git.ipfire.org Git - ipfire-3.x.git/blame - zlib/zlib.nm
Add a -debuginfo for every package that is not noarch.
[ipfire-3.x.git] / zlib / zlib.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 = zlib
7version = 1.2.5
9f0b0495 8release = 2
166a6c21 9
802ea3af
MT
10groups = System/Libraries
11url = http://www.gzip.org/zlib/
12license = zlib
13summary = The zlib compression and decompression library.
166a6c21 14
802ea3af
MT
15description
16 Zlib is a general-purpose, patent-free, lossless data compression
166a6c21 17 library which is used by many different programs.
802ea3af
MT
18end
19
20source_dl = http://zlib.net/
21
22# Enable PIC build.
23CFLAGS += -fPIC -DPIC
24
25build
26 configure_options = \
27 --prefix=/usr \
28 --libdir=/lib
29
30 test
31 make check
32 end
33
34 install_cmds
35 mkdir -pv %{BUILDROOT}/usr/{include,lib}
36 cp -pfv zconf.h zlib.h %{BUILDROOT}/usr/include
37 rm -vf %{BUILDROOT}/lib/libz.so
38 ln -sfv ../../lib/libz.so.%{version} %{BUILDROOT}/usr/lib/libz.so
39
40 mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
41 end
42end
43
44packages
45 package %{name}
46 end
1f9bc2f0 47
802ea3af
MT
48 package %{name}-devel
49 template DEVEL
50 end
1f9bc2f0
MT
51
52 package %{name}-debuginfo
53 template DEBUGINFO
54 end
802ea3af 55end