diff --git a/python-cffi.spec b/python-cffi.spec index db1e151..24a2513 100644 --- a/python-cffi.spec +++ b/python-cffi.spec @@ -6,20 +6,18 @@ Name: python-cffi Version: 1.4.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Foreign Function Interface for Python to call C code License: MIT URL: http://cffi.readthedocs.org/ Source0: http://pypi.python.org/packages/source/c/cffi/cffi-%{version}.tar.gz BuildRequires: libffi-devel python-sphinx -BuildRequires: python2-devel python-setuptools Cython python-pycparser +BuildRequires: python2-devel python2-setuptools Cython python-pycparser %if 0%{?with_python3} BuildRequires: python3-devel python3-setuptools python3-Cython python3-pycparser %endif # if with_python3 -Requires: python-pycparser - # Do not check .so files in the python_sitelib directory # or any files in the application's directory for provides %global __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch})/.*\\.so$ @@ -29,10 +27,22 @@ Foreign Function Interface for Python, providing a convenient and reliable way of calling existing C code from Python. The interface is based on LuaJIT’s FFI. +%package -n python2-cffi +Summary: Foreign Function Interface for Python 3 to call C code +Requires: python-pycparser +Obsoletes: python-cffi <= 1.4.2-1 +%{?python_provide:%python_provide python2-cffi} + +%description -n python2-cffi +Foreign Function Interface for Python, providing a convenient and +reliable way of calling existing C code from Python. The interface is +based on LuaJIT’s FFI. + %if 0%{?with_python3} %package -n python3-cffi Summary: Foreign Function Interface for Python 3 to call C code Requires: python3-pycparser +%{?python_provide:%python_provide python3-cffi} %description -n python3-cffi Foreign Function Interface for Python, providing a convenient and @@ -83,7 +93,7 @@ popd %endif # with_python3 %{__python} setup.py install --skip-build --prefix=%{_prefix} --root %{buildroot} -%files +%files -n python2-cffi %doc PKG-INFO %license LICENSE %{python_sitearch}/* @@ -99,6 +109,9 @@ popd %doc doc/build/html %changelog +* Mon Jan 11 2016 Nathaniel McCallum - 1.4.2-2 +- Move python-cffi => python2-cffi + * Tue Dec 22 2015 John Dulaney - 1.4.2-1 - Update to 1.4.2 (#1293504)