|
|
|
@ -1,8 +1,11 @@
|
|
|
|
|
# RHEL: Docs disabled due to python3-sphinx not being installable during build of the python39 module
|
|
|
|
|
%bcond_with docs
|
|
|
|
|
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
|
|
Name: python-cffi
|
|
|
|
|
Version: 1.13.2
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 1.14.3
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Foreign Function Interface for Python to call C code
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://cffi.readthedocs.org/
|
|
|
|
@ -13,11 +16,14 @@ Source0: %{pypi_source cffi}
|
|
|
|
|
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
|
|
|
|
ExcludeArch: i686
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: libffi-devel
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
# For tests:
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%?python_enable_dependency_generator
|
|
|
|
|
|
|
|
|
@ -29,13 +35,15 @@ based on LuaJIT’s FFI.
|
|
|
|
|
%package -n python%{python3_pkgversion}-cffi
|
|
|
|
|
Summary: Foreign Function Interface for Python 3 to call C code
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-sphinx
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pycparser
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-cffi}
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-cffi
|
|
|
|
@ -43,6 +51,7 @@ 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 %{with docs}
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for CFFI
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -50,6 +59,9 @@ BuildArch: noarch
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for CFFI, the Foreign Function Interface for Python.
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n cffi-%{version}
|
|
|
|
|
|
|
|
|
@ -65,8 +77,10 @@ rm build/html/.buildinfo
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-cffi
|
|
|
|
|
%doc PKG-INFO
|
|
|
|
@ -81,11 +95,29 @@ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 1.13.2-3
|
|
|
|
|
- Exclude unsupported i686 arch
|
|
|
|
|
* Mon Jan 18 2021 Tomas Orsava <torsava@redhat.com> - 1.14.3-2
|
|
|
|
|
- Convert from Fedora to the python39 module in RHEL8
|
|
|
|
|
- Resolves: rhbz#1877430
|
|
|
|
|
|
|
|
|
|
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 1.13.2-2
|
|
|
|
|
- Adjusted for Python 3.8 module in RHEL 8
|
|
|
|
|
* Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 1.14.3-1
|
|
|
|
|
- Update to 1.14.3
|
|
|
|
|
|
|
|
|
|
* Tue Sep 08 2020 Lumír Balhar <lbalhar@redhat.com> - 1.14.2-1
|
|
|
|
|
- Update to 1.14.2 (#1869032)
|
|
|
|
|
|
|
|
|
|
* Fri Aug 14 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.1-1
|
|
|
|
|
- Update to 1.14.1
|
|
|
|
|
- Fixes: rhbz#1860698
|
|
|
|
|
- Fixes: rhbz#1865276
|
|
|
|
|
|
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-2
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Mon Feb 10 2020 Lumír Balhar <lbalhar@redhat.com> - 1.14.0
|
|
|
|
|
- Update to 1.14.0 (#1800646)
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Nov 18 2019 Lumír Balhar <lbalhar@redhat.com> - 1.13.2-1
|
|
|
|
|
- Update to 1.13.2 (#1768219)
|
|
|
|
|