Move python-cffi => python2-cffi

This commit is contained in:
Nathaniel McCallum 2016-01-11 14:51:29 -05:00
parent 27bc6b1bea
commit ac2b1cb37e

View File

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