2013-02-10 11:02:31 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-cffi
|
|
|
|
#
|
2019-03-02 11:48:08 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-02-10 11:02:31 +01: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.
|
|
|
|
|
2018-09-18 18:00:36 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-09-30 10:50:15 +02:00
|
|
|
#
|
2013-02-10 11:02:31 +01:00
|
|
|
|
|
|
|
|
2017-03-16 19:03:17 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-02-20 09:20:54 +01:00
|
|
|
Name: python-cffi
|
2019-10-15 12:55:03 +02:00
|
|
|
Version: 1.13.0
|
2013-02-10 11:02:31 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Foreign Function Interface for Python calling C code
|
2013-09-30 10:50:15 +02:00
|
|
|
License: MIT
|
2013-02-10 11:02:31 +01:00
|
|
|
Group: Development/Languages/Python
|
2018-09-18 18:00:36 +02:00
|
|
|
URL: http://cffi.readthedocs.org
|
2018-02-20 09:20:54 +01:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/c/cffi/cffi-%{version}.tar.gz
|
2015-06-02 19:47:58 +02:00
|
|
|
Source1: python-cffi-rpmlintrc
|
2017-03-16 19:03:17 +01:00
|
|
|
BuildRequires: %{python_module devel}
|
2018-01-18 14:30:58 +01:00
|
|
|
BuildRequires: %{python_module pycparser}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2017-03-16 19:03:17 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-09-18 18:00:36 +02:00
|
|
|
BuildRequires: fdupes
|
2015-06-02 19:47:58 +02:00
|
|
|
BuildRequires: gcc-c++
|
2018-01-18 14:30:58 +01:00
|
|
|
BuildRequires: pkgconfig
|
2017-03-16 19:03:17 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2014-03-31 16:19:07 +02:00
|
|
|
BuildRequires: pkgconfig(libffi)
|
2018-01-18 14:30:58 +01:00
|
|
|
Requires: python-pycparser
|
2017-03-16 19:03:17 +01:00
|
|
|
%python_subpackages
|
2013-02-10 11:02:31 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Foreign Function Interface for Python calling C code. The aim of this project
|
|
|
|
is to provide a convenient and reliable way of calling C code from Python.
|
|
|
|
|
|
|
|
%prep
|
2018-02-20 09:20:54 +01:00
|
|
|
%setup -q -n cffi-%{version}
|
2013-02-10 11:02:31 +01:00
|
|
|
|
|
|
|
%build
|
2017-03-16 19:03:17 +01:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
2013-02-10 11:02:31 +01:00
|
|
|
|
|
|
|
%install
|
2017-03-16 19:03:17 +01:00
|
|
|
%python_install
|
2018-09-18 18:00:36 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2013-02-10 11:02:31 +01:00
|
|
|
|
2014-04-02 10:15:41 +02:00
|
|
|
%check
|
2018-10-17 17:28:45 +02:00
|
|
|
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
2019-03-07 17:39:07 +01:00
|
|
|
py.test-%$python_bin_suffix -v -W ignore::UserWarning c/ testing/
|
2018-10-17 17:28:45 +02:00
|
|
|
}
|
2013-02-10 11:02:31 +01:00
|
|
|
|
2017-03-16 19:03:17 +01:00
|
|
|
%files %{python_files}
|
2018-09-18 18:00:36 +02:00
|
|
|
%license LICENSE
|
2019-03-07 17:39:07 +01:00
|
|
|
%doc README.md doc/source/*.rst doc/misc/*.rst
|
2013-02-10 11:02:31 +01:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|