summaryrefslogtreecommitdiff
path: root/packaging/libcap-ng.spec
blob: c0371f58e03b6b5511e5134e42f70ff2cb2bb5ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Name:           libcap-ng
Version:        0.8.4
Release:        0
License:        LGPL-2.1+
Summary:        An alternate POSIX capabilities library
Group:          System/Libraries
Url:            http://people.redhat.com/sgrubb/libcap-ng
Source0:        http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
Source1001:     libcap-ng.manifest
BuildRequires:  kernel-headers >= 2.6.11
BuildRequires:  libattr-devel
BuildRequires:  pkg-config

%description
Libcap-ng is a library that makes using posix capabilities easier

%package devel

License:        LGPL-2.1+
Summary:        Header files for libcap-ng library
Group:          Development/Libraries
Requires:       %{name} = %{version}
Requires:       kernel-headers >= 2.6.11
Requires:       pkgconfig

%description devel
The libcap-ng-devel package contains the files needed for developing
applications that need to use the libcap-ng library.

%package utils

License:        GPL-2.0+
Summary:        Utilities for analysing and setting file capabilities
Group:          System/Base

%description utils
The libcap-ng-utils package contains applications to analyse the
posix capabilities of all the program running on a system. It also
lets you set the file system based capabilities.

%prep
%setup -q
cp %{SOURCE1001} .

%build
./autogen.sh
%configure --disable-static --with-pic --with-python=no
make %{?_smp_mflags}

%install
%make_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%license COPYING.LIB
%{_libdir}/libcap-ng.so.*
%{_libdir}/libdrop_ambient.so.*

%files devel
%manifest %{name}.manifest
%{_includedir}/cap-ng.h
%{_libdir}/libcap-ng.so
%{_libdir}/libdrop_ambient.so
%{_datadir}/aclocal/cap-ng.m4
%{_libdir}/pkgconfig/libcap-ng.pc

%files utils
%manifest %{name}.manifest
%license COPYING
%{_bindir}/*
%exclude %{_mandir}/