Update Python 2 dependency declarations to new packaging standards

This commit is contained in:
Iryna Shcherbina 2018-03-09 05:57:40 +01:00
parent 171cc09517
commit 1077dbb824

View File

@ -4,18 +4,18 @@
Name: python-cffi
Version: 1.11.5
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Foreign Function Interface for Python to call C code
License: MIT
URL: http://cffi.readthedocs.org/
Source0: https://pypi.io/packages/source/c/cffi/cffi-%{version}.tar.gz
BuildRequires: libffi-devel python-sphinx
BuildRequires: libffi-devel python2-sphinx
#BuildRequires: python2-pytest python3-pytest
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: Cython
BuildRequires: python-pycparser
BuildRequires: python2-Cython
BuildRequires: python2-pycparser
BuildRequires: python2-pytest
%if 0%{?with_python3}
BuildRequires: python3-devel
@ -36,7 +36,7 @@ based on LuaJITs FFI.
%package -n python2-cffi
Summary: Foreign Function Interface for Python 3 to call C code
Requires: python-pycparser
Requires: python2-pycparser
Obsoletes: python-cffi <= 1.4.2-1
%{?python_provide:%python_provide python2-cffi}
@ -60,7 +60,7 @@ based on LuaJITs FFI.
%package doc
Summary: Documentation for CFFI
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Requires: python2-cffi = %{version}-%{release}
%description doc
Documentation for CFFI, the Foreign Function Interface for Python.
@ -109,6 +109,10 @@ PYTHONPATH=build/lib.linux-* py.test c/ testing/
%doc doc/build/html
%changelog
* Fri Mar 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.11.5-2
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Fri Mar 02 2018 John Dulaney <jdulaney@Fedoraproject.org> - 1.11.2-1
- New release 1.11.5