]> git.ipfire.org Git - ipfire-3.x.git/blob - libcap/libcap.nm
sudo: Fix library permissions
[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.66
8 release = 2
9
10 groups = System/Libraries
11 url = http://ftp.kernel.org/pub/linux/libs/security/linux-privs/libcap2/
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 = https://mirrors.edge.kernel.org/pub/linux/libs/security/linux-privs/libcap2/
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 CFLAGS += \
32 -fno-builtin-exit \
33 -D__noreturn__=
34
35 build
36 make DYNAMIC=yes LIBATTR=yes \
37 CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}"
38 end
39
40 install
41 make install DESTDIR=%{BUILDROOT} prefix=%{prefix} lib=%{lib}
42 chmod 755 %{BUILDROOT}/%{libdir}/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