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
|
|
|
#
|
2015-12-07 15:31:35 +01:00
|
|
|
# Copyright (c) 2015 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-05-15 15:27:52 +02:00
|
|
|
%define soname 0
|
|
|
|
Name: libcap-ng-python
|
2015-12-02 19:38:19 +01:00
|
|
|
Version: 0.7.7
|
2014-05-15 15:27:52 +02:00
|
|
|
Release: 0
|
2011-08-31 04:34:50 +02:00
|
|
|
Summary: An alternate POSIX capabilities library
|
2012-02-12 21:49:20 +01:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Libraries
|
2011-08-31 04:34:50 +02:00
|
|
|
Url: http://people.redhat.com/sgrubb/libcap-ng
|
2013-03-14 10:30:37 +01:00
|
|
|
Source0: http://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
|
2012-02-12 21:49:20 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python-base
|
2014-05-15 15:27:52 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-02 16:42:38 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Libcap-ng is a library that makes using posix capabilities easier
|
|
|
|
|
|
|
|
%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
|
2014-05-15 15:27:52 +02:00
|
|
|
Requires: libcap-ng%{soname} = %{version}
|
|
|
|
%{py_requires}
|
2010-11-02 16:42:38 +01:00
|
|
|
|
|
|
|
%description -n python-capng
|
|
|
|
The libcap-ng-python package contains the bindings so that libcap-ng
|
|
|
|
and can be used by python applications.
|
|
|
|
|
|
|
|
%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 \
|
|
|
|
--with-pic \
|
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
|
2014-05-15 15:27:52 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags} -C bindings/python
|
|
|
|
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
|
|
|
|
%defattr(-,root,root,-)
|
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
|