# # spec file for package libcap-ng-python # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # %define sover 0 Name: libcap-ng-python Version: 0.7.9 Release: 0 Summary: An alternate Linux/POSIX capabilities library License: LGPL-2.1+ Group: Development/Libraries/C and C++ Url: https://people.redhat.com/sgrubb/libcap-ng Source0: https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-%{version}.tar.gz Source1: baselibs.conf Source99: libcap-ng.rpmlintrc BuildRequires: kernel-headers >= 2.6.11 BuildRequires: pkgconfig BuildRequires: python-base %description 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). %package -n python-capng Summary: Python bindings for libcap-ng library Group: Development/Libraries/Python BuildRequires: libcap-ng-devel = %{version} BuildRequires: python-devel BuildRequires: swig Requires: libcap-ng%{sover} = %{version} %description -n python-capng The libcap-ng-python package contains the bindings so that libcap-ng and can be used by Python applications. %prep %setup -q -n libcap-ng-%{version} %build %configure \ --disable-static \ --with-python \ --without-python3 make %{?_smp_mflags} %install %make_install -C bindings/python find %{buildroot} -type f -name "*.la" -delete -print %files -n python-capng %{python_sitearch}/_capng.so %{python_sitearch}/capng.py* %changelog