File python-cffi.spec of Package python-cffi

#
# spec file for package python-cffi
#
# Copyright (c) 2018 COMBES Pascal <pascom@orange.fr>
#
# 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.

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:		python-cffi
Version:	1.14.0
Release:	0
Summary:	C Foreign Function Interface for Python
Url:		http://cffi.readthedocs.io/en/latest/
License:	MIT
Group:		Development/Languages/Python
Source0:	cffi-%{version}.tar.gz
BuildRequires:	python-rpm-macros
BuildRequires:	fdupes
BuildRequires:	%{python_module devel}
BuildRequires:	%{python_module setuptools >= 11.3}
BuildRequires:	%{python_module xml}
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(libffi)

%python_subpackages

%description
This package contains a Python library allowing to interact with almost any
C code, based on C-like declarations that you can often copy-paste from header files or documentation.

The goal of the library is to call C code from Python without learning a third
language. The CFFI design requires users to know only C and Python, minimizing
the extra bits of API that need to be learned.

%prep
%setup -q -n cffi-%{version}

%build
%python_build

%install
%python_install
%fdupes %{buildroot}%{_prefix}

%files %{python_files}
%{python_sitearch}/*

%changelog

openSUSE Build Service is sponsored by