2011-08-31 04:34:50 +02:00
|
|
|
#
|
2011-08-31 10:50:02 +02:00
|
|
|
# spec file for package libcap-ng
|
2011-08-31 04:34:50 +02:00
|
|
|
#
|
2018-02-18 10:52:15 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-08-31 04:34:50 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-02-19 09:04:27 +01:00
|
|
|
%define sover 0
|
2014-05-15 15:27:52 +02:00
|
|
|
Name: libcap-ng
|
2018-02-18 10:52:15 +01:00
|
|
|
Version: 0.7.9
|
2014-05-15 15:27:52 +02:00
|
|
|
Release: 0
|
2018-02-19 09:04:27 +01:00
|
|
|
Summary: An alternate Linux/POSIX capabilities library
|
2012-02-12 21:49:20 +01:00
|
|
|
License: LGPL-2.1+
|
2018-02-19 09:04:27 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-02-18 10:52:15 +01:00
|
|
|
Url: https://people.redhat.com/sgrubb/libcap-ng
|
|
|
|
Source0: https://people.redhat.com/sgrubb/%{name}/%{name}-%{version}.tar.gz
|
2014-05-15 15:27:52 +02:00
|
|
|
Source1: baselibs.conf
|
2011-08-31 04:34:50 +02:00
|
|
|
Source99: libcap-ng.rpmlintrc
|
|
|
|
BuildRequires: kernel-headers >= 2.6.11
|
2018-02-18 10:52:15 +01:00
|
|
|
BuildRequires: pkgconfig
|
2010-04-23 01:41:07 +02:00
|
|
|
|
|
|
|
%description
|
2018-02-19 09:04:27 +01:00
|
|
|
libcap-ng is a library providing an alternate mechanism to libcap to
|
|
|
|
make use of Linux process and file capabilities.
|
2010-04-23 01:41:07 +02:00
|
|
|
|
2018-02-19 09:04:27 +01:00
|
|
|
%package -n %{name}%{sover}
|
|
|
|
Summary: An alternate Linux/POSIX capabilities library
|
2012-02-12 21:49:20 +01:00
|
|
|
License: LGPL-2.1+
|
2011-08-31 04:34:50 +02:00
|
|
|
Group: System/Libraries
|
2010-04-23 01:41:07 +02:00
|
|
|
|
2018-02-19 09:04:27 +01:00
|
|
|
%description -n %{name}%{sover}
|
|
|
|
libcap-ng is a library providing an alternate mechanism to libcap to
|
|
|
|
inspect and set Linux process and file capabilities (modeled upon a
|
|
|
|
withdrawn POSIX.1e draft).
|
2010-04-23 01:41:07 +02:00
|
|
|
|
|
|
|
%package devel
|
2018-02-19 09:04:27 +01:00
|
|
|
Summary: Header files for the libcap-ng library
|
2012-02-12 21:49:20 +01:00
|
|
|
License: LGPL-2.1+
|
2011-08-31 04:34:50 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2018-02-19 09:04:27 +01:00
|
|
|
Requires: %{name}%{sover} = %{version}
|
2013-03-14 10:30:37 +01:00
|
|
|
Requires: kernel-headers >= 2.6.11
|
2011-08-31 04:34:50 +02:00
|
|
|
Requires: pkgconfig
|
2010-04-23 01:41:07 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The libcap-ng-devel package contains the files needed for developing
|
|
|
|
applications that need to use the libcap-ng library.
|
|
|
|
|
|
|
|
%package utils
|
2011-08-31 04:34:50 +02:00
|
|
|
Summary: Utilities for analysing and setting file capabilities
|
2012-02-12 21:49:20 +01:00
|
|
|
License: GPL-2.0+
|
2011-08-31 04:34:50 +02:00
|
|
|
Group: System/Base
|
2010-04-23 01:41:07 +02:00
|
|
|
|
|
|
|
%description utils
|
|
|
|
The libcap-ng-utils package contains applications to analyse the
|
2018-02-19 09:04:27 +01:00
|
|
|
Linux process capabilities of programs running on a system. It also
|
|
|
|
lets you set the filesystem-based capabilities.
|
2010-04-23 01:41:07 +02:00
|
|
|
|
|
|
|
%prep
|
2014-05-15 15:27:52 +02:00
|
|
|
%setup -q
|
2010-04-23 01:41:07 +02:00
|
|
|
|
|
|
|
%build
|
2014-05-15 15:27:52 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--without-python
|
|
|
|
make %{?_smp_mflags}
|
2010-04-23 01:41:07 +02:00
|
|
|
|
|
|
|
%install
|
2018-02-18 10:52:15 +01:00
|
|
|
%make_install
|
2014-05-15 15:27:52 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-08-31 04:34:50 +02:00
|
|
|
|
2018-02-19 09:04:27 +01:00
|
|
|
%post -n %{name}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
2010-04-23 01:41:07 +02:00
|
|
|
|
2018-02-19 09:04:27 +01:00
|
|
|
%files -n %{name}%{sover}
|
2010-04-23 01:41:07 +02:00
|
|
|
%doc COPYING.LIB
|
2018-02-19 09:04:27 +01:00
|
|
|
%{_libdir}/%{name}.so.%{sover}
|
|
|
|
%{_libdir}/%{name}.so.%{sover}.*
|
2010-04-23 01:41:07 +02:00
|
|
|
|
|
|
|
%files devel
|
2014-05-15 15:27:52 +02:00
|
|
|
%{_mandir}/man3/*.3%{ext_man}
|
|
|
|
%{_includedir}/cap-ng.h
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_datadir}/aclocal/cap-ng.m4
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
2010-04-23 01:41:07 +02:00
|
|
|
|
|
|
|
%files utils
|
|
|
|
%doc COPYING
|
2014-05-15 15:27:52 +02:00
|
|
|
%{_bindir}/captest
|
|
|
|
%{_bindir}/filecap
|
|
|
|
%{_bindir}/netcap
|
|
|
|
%{_bindir}/pscap
|
|
|
|
%{_mandir}/man8/*.8%{ext_man}
|
2010-11-02 16:42:38 +01:00
|
|
|
|
2010-04-23 01:41:07 +02:00
|
|
|
%changelog
|