]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - zlib/zlib.nm
Merge branch 'perl-Tk'
[people/ms/ipfire-3.x.git] / zlib / zlib.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = zlib
7 version = 1.2.5
8 release = 3
9
10 groups = System/Libraries
11 url = http://www.gzip.org/zlib/
12 license = zlib
13 summary = The zlib compression and decompression library.
14
15 description
16 Zlib is a general-purpose, patent-free, lossless data compression
17 library which is used by many different programs.
18 end
19
20 source_dl = http://zlib.net/
21
22 # Enable PIC build.
23 CFLAGS += -fPIC -DPIC
24
25 build
26 configure_options = \
27 --prefix=%{prefix} \
28 --libdir=/%{lib}
29
30 test
31 make check
32 end
33
34 install_cmds
35 mkdir -pv %{BUILDROOT}%{includedir} %{BUILDROOT}%{libdir}
36 cp -pfv zconf.h zlib.h %{BUILDROOT}%{includedir}
37 rm -vf %{BUILDROOT}/%{lib}/libz.so
38 ln -sfv ../../%{lib}/libz.so.%{version} %{BUILDROOT}%{libdir}/libz.so
39
40 mv -v %{BUILDROOT}/%{lib}/pkgconfig %{BUILDROOT}%{libdir}
41 end
42 end
43
44 packages
45 package %{name}
46 end
47
48 package %{name}-devel
49 template DEVEL
50 end
51
52 package %{name}-debuginfo
53 template DEBUGINFO
54 end
55 end