2011-08-31 04:34:50 +02:00
|
|
|
#
|
2013-03-14 10:30:37 +01:00
|
|
|
# spec file for package libcap-ng-python
|
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-python
|
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/libcap-ng/libcap-ng-%{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
|
2012-02-12 21:49:20 +01:00
|
|
|
BuildRequires: python-base
|
2010-11-02 16:42:38 +01:00
|
|
|
|
|
|
|
%description
|
2018-02-19 09:04:27 +01:00
|
|
|
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-11-02 16:42:38 +01:00
|
|
|
|
|
|
|
%package -n python-capng
|
2011-08-31 04:34:50 +02:00
|
|
|
Summary: Python bindings for libcap-ng library
|
|
|
|
Group: Development/Libraries/Python
|
2014-05-15 15:27:52 +02:00
|
|
|
BuildRequires: libcap-ng-devel = %{version}
|
2012-02-12 21:49:20 +01:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: swig
|
2018-02-19 09:04:27 +01:00
|
|
|
Requires: libcap-ng%{sover} = %{version}
|
2010-11-02 16:42:38 +01:00
|
|
|
|
|
|
|
%description -n python-capng
|
|
|
|
The libcap-ng-python package contains the bindings so that libcap-ng
|
2018-02-19 09:04:27 +01:00
|
|
|
and can be used by Python applications.
|
2010-11-02 16:42:38 +01:00
|
|
|
|
|
|
|
%prep
|
2014-05-15 15:27:52 +02:00
|
|
|
%setup -q -n libcap-ng-%{version}
|
2010-11-02 16:42:38 +01:00
|
|
|
|
|
|
|
%build
|
2014-05-15 15:27:52 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
2015-12-07 15:31:35 +01:00
|
|
|
--with-python \
|
|
|
|
--without-python3
|
2014-05-15 15:27:52 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-11-02 16:42:38 +01:00
|
|
|
|
|
|
|
%install
|
2018-02-18 10:52:15 +01:00
|
|
|
%make_install -C bindings/python
|
2014-05-15 15:27:52 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2011-08-31 04:34:50 +02:00
|
|
|
|
2010-11-02 16:42:38 +01:00
|
|
|
%files -n python-capng
|
2014-05-15 15:27:52 +02:00
|
|
|
%{python_sitearch}/_capng.so
|
2010-11-02 16:42:38 +01:00
|
|
|
%{python_sitearch}/capng.py*
|
|
|
|
|
|
|
|
%changelog
|