]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - libcap/libcap.nm
Add a -debuginfo for every package that is not noarch.
[people/ms/ipfire-3.x.git] / libcap / libcap.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = libcap
7 version = 2.22
8 release = 1
9
10 groups = System/Libraries
11 url = http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
12 license = LGPL2+
13 summary = Library for getting and setting POSIX.1e capabilities.
14
15 description
16 libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
17 draft 15 capabilities.
18 end
19
20 source_dl = %{url}
21 sources = %{thisapp}.tar.gz
22
23 build
24 requires
25 libattr-devel
26 pam-devel
27 perl
28 /bin/ping
29 end
30
31 build
32 make DYNAMIC=yes LIBATTR=yes
33 end
34
35 install
36 make install DESTDIR=%{BUILDROOT} lib=/lib
37
38 rm -vf %{BUILDROOT}/lib/libcap.so
39 mkdir -pv %{BUILDROOT}/usr/lib
40 ln -svf ../../lib/libcap.so.2 %{BUILDROOT}/usr/lib/libcap.so
41
42 chmod 755 %{BUILDROOT}/lib/libcap.so.%{version}
43 end
44 end
45
46 packages
47 package %{name}
48
49 package %{name}-devel
50 template DEVEL
51 end
52
53 package %{name}-debuginfo
54 template DEBUGINFO
55 end
56 end