summaryrefslogtreecommitdiff
path: root/packaging/libcap-ng.spec
blob: 05fa0d6f4ca31f72b81193dacc8af320de958e1c (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%{!?python_sitelib:  %global python_sitelib  %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}

Name:           libcap-ng
Version:        0.6.6
Release:        0
License:        LGPL-2.1+
Summary:        An alternate POSIX capabilities library
%define soname 0
%define rname libcap-ng
Url:            http://people.redhat.com/sgrubb/libcap-ng
Group:          System/Libraries
# http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-%{version}.tar.gz
Source:         %{name}-%{version}.tar.bz2
Source2:        baselibs.conf
Source99:       libcap-ng.rpmlintrc
Source1001: 	libcap-ng.manifest
BuildRequires:  kernel-headers >= 2.6.11
BuildRequires:  libattr-devel
BuildRequires:  pkg-config
BuildRequires:  python

%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 -n %{rname}-%{version}
cp %{SOURCE1001} .

%build
%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
%defattr(-,root,root,-)
%license COPYING.LIB
%attr(0755,root,root) %{_libdir}/%{rname}.so.%{soname}
%attr(0755,root,root) %{_libdir}/%{rname}.so.%{soname}.*

%files devel
%manifest %{name}.manifest
%defattr(-,root,root,-)
%attr(0644,root,root) %{_mandir}/man3/*.3%{ext_man}
%attr(0644,root,root) %{_includedir}/cap-ng.h
%attr(0755,root,root) %{_libdir}/%{rname}.so
%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
%{_libdir}/pkgconfig/%{rname}.pc

%files utils
%manifest %{name}.manifest
%defattr(-,root,root,-)
%license COPYING
%attr(0755,root,root) %{_bindir}/captest
%attr(0755,root,root) %{_bindir}/filecap
%attr(0755,root,root) %{_bindir}/netcap
%attr(0755,root,root) %{_bindir}/pscap
%attr(0644,root,root) %{_mandir}/man8/*.8%{ext_man}

%changelog