]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blame - libcap/libcap.nm
libcap: Make package work on x86_64.
[people/pmueller/ipfire-3.x.git] / libcap / libcap.nm
CommitLineData
a4d6eeb3 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
a4d6eeb3
MT
4###############################################################################
5
802ea3af 6name = libcap
54362111 7version = 2.22
309b91c8 8release = 2
a4d6eeb3 9
802ea3af
MT
10groups = System/Libraries
11url = http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
12license = LGPL2+
13summary = Library for getting and setting POSIX.1e capabilities.
a4d6eeb3 14
802ea3af 15description
54362111 16 libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
a4d6eeb3 17 draft 15 capabilities.
802ea3af
MT
18end
19
20source_dl = %{url}
21sources = %{thisapp}.tar.gz
22
23build
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
309b91c8 36 make install DESTDIR=%{BUILDROOT} lib=/%{lib}
802ea3af 37
309b91c8
MT
38 rm -vf %{BUILDROOT}/%{lib}/libcap.so
39 mkdir -pv %{BUILDROOT}%{libdir}
40 ln -svf ../../%{lib}/libcap.so.2 %{BUILDROOT}%{libdir}/libcap.so
802ea3af 41
309b91c8 42 chmod 755 %{BUILDROOT}/%{lib}/libcap.so.%{version}
802ea3af
MT
43 end
44end
45
46packages
47 package %{name}
54362111 48
802ea3af
MT
49 package %{name}-devel
50 template DEVEL
51 end
1f9bc2f0
MT
52
53 package %{name}-debuginfo
54 template DEBUGINFO
55 end
802ea3af 56end