2013-02-10 11:02:31 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-cffi
|
|
|
|
#
|
2017-03-16 19:03:17 +01:00
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://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-%{**}}
|
|
|
|
%define modname cffi
|
|
|
|
Name: python-%{modname}
|
2017-10-04 15:07:40 +02:00
|
|
|
Version: 1.11.1
|
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
|
2017-03-16 19:03:17 +01:00
|
|
|
Url: http://%{modname}.readthedocs.org
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/c/%{modname}/%{modname}-%{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}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2015-06-02 19:47:58 +02:00
|
|
|
BuildRequires: gcc-c++
|
2017-03-16 19:03:17 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2013-02-10 11:02:31 +01:00
|
|
|
# Documentation requirements:
|
2017-03-16 19:03:17 +01:00
|
|
|
BuildRequires: %{python_module pycparser}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2013-02-10 11:02:31 +01:00
|
|
|
Requires: python-pycparser
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-03-31 16:19:07 +02:00
|
|
|
BuildRequires: pkgconfig(libffi)
|
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
|
2017-03-16 19:03:17 +01:00
|
|
|
%setup -q -n %{modname}-%{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
|
2013-02-10 11:02:31 +01:00
|
|
|
|
2014-04-02 10:15:41 +02:00
|
|
|
%check
|
2017-10-04 15:07:40 +02:00
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} py.test-%$python_bin_suffix -k "not test_init_once_multithread" c/ testing/
|
2013-02-10 11:02:31 +01:00
|
|
|
|
2017-03-16 19:03:17 +01:00
|
|
|
%files %{python_files}
|
2013-02-10 11:02:31 +01:00
|
|
|
%defattr(-,root,root,-)
|
2017-03-27 13:51:35 +02:00
|
|
|
%doc LICENSE
|
2013-02-10 11:02:31 +01:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|