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
|
|
|
#
|
2021-12-10 10:12:55 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
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.
|
|
|
|
|
2019-08-08 14:44:47 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-08-31 04:34:50 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2018-02-19 09:04:27 +01:00
|
|
|
%define sover 0
|
2018-02-20 11:29:37 +01:00
|
|
|
%bcond_without python2
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2014-05-15 15:27:52 +02:00
|
|
|
Name: libcap-ng-python
|
2021-12-10 10:12:55 +01:00
|
|
|
Version: 0.7.11
|
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
|
2019-08-08 14:44:47 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2018-02-19 09:04:27 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-05-12 16:19:06 +02:00
|
|
|
URL: https://people.redhat.com/sgrubb/libcap-ng
|
2018-02-18 10:52:15 +01:00
|
|
|
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
|
2018-02-20 11:29:37 +01:00
|
|
|
BuildRequires: %{python_module devel}
|
2011-08-31 04:34:50 +02:00
|
|
|
BuildRequires: kernel-headers >= 2.6.11
|
2018-02-20 11:29:37 +01:00
|
|
|
BuildRequires: libcap-ng-devel = %{version}
|
2018-02-18 10:52:15 +01:00
|
|
|
BuildRequires: pkgconfig
|
2018-02-20 11:29:37 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: swig
|
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
|
|
|
|
2018-02-20 11:29:37 +01:00
|
|
|
%package -n python2-capng
|
2011-08-31 04:34:50 +02:00
|
|
|
Summary: Python bindings for libcap-ng library
|
|
|
|
Group: Development/Libraries/Python
|
2018-02-19 09:04:27 +01:00
|
|
|
Requires: libcap-ng%{sover} = %{version}
|
2010-11-02 16:42:38 +01:00
|
|
|
|
2018-02-20 11:29:37 +01:00
|
|
|
%description -n python2-capng
|
2010-11-02 16:42:38 +01:00
|
|
|
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
|
|
|
|
2018-02-20 11:29:37 +01:00
|
|
|
%package -n python3-capng
|
|
|
|
Summary: Python bindings for libcap-ng library
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: libcap-ng%{sover} = %{version}
|
|
|
|
|
|
|
|
%description -n python3-capng
|
|
|
|
The libcap-ng-python package contains the bindings so that libcap-ng
|
|
|
|
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 \
|
2018-02-20 11:29:37 +01:00
|
|
|
%if %{with python2}
|
2015-12-07 15:31:35 +01:00
|
|
|
--with-python \
|
2018-02-20 11:29:37 +01:00
|
|
|
%endif
|
|
|
|
--with-python3
|
2014-05-15 15:27:52 +02:00
|
|
|
make %{?_smp_mflags}
|
2010-11-02 16:42:38 +01:00
|
|
|
|
|
|
|
%install
|
2018-02-20 11:29:37 +01:00
|
|
|
%if %{with python2}
|
2018-02-18 10:52:15 +01:00
|
|
|
%make_install -C bindings/python
|
2018-02-20 11:29:37 +01:00
|
|
|
%endif
|
|
|
|
%make_install -C bindings/python3
|
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-20 11:29:37 +01:00
|
|
|
%if %{with python2}
|
|
|
|
%files -n python2-capng
|
|
|
|
%{python2_sitearch}/*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n python3-capng
|
|
|
|
%{python3_sitearch}/*
|
2010-11-02 16:42:38 +01:00
|
|
|
|
|
|
|
%changelog
|