SHA256
1
0
forked from pool/libcap-ng
libcap-ng/libcap-ng-python.spec

71 lines
2.1 KiB
RPMSpec

#
# spec file for package libcap-ng-python
#
# Copyright (c) 2014 SUSE LINUX Products 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 soname 0
Name: libcap-ng-python
Version: 0.7.4
Release: 0
Summary: An alternate POSIX capabilities library
License: LGPL-2.1+
Group: System/Libraries
Url: http://people.redhat.com/sgrubb/libcap-ng
Source0: http://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: pkg-config
BuildRequires: python-base
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Libcap-ng is a library that makes using posix capabilities easier
%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%{soname} = %{version}
%{py_requires}
%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-pic \
--with-python
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags} -C bindings/python
find %{buildroot} -type f -name "*.la" -delete -print
%files -n python-capng
%defattr(-,root,root,-)
%{python_sitearch}/_capng.so
%{python_sitearch}/capng.py*
%changelog