|
|
|
@ -1,17 +1,29 @@
|
|
|
|
|
# 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.14.5
|
|
|
|
|
Release: 5%{?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/
|
|
|
|
|
Source0: %{pypi_source cffi}
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
|
|
|
|
# x86_64 compose of CRB, but we don't want to ship it at all.
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
@ -20,20 +32,26 @@ 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 python3-cffi
|
|
|
|
|
%package -n python%{python3_pkgversion}-cffi
|
|
|
|
|
Summary: Foreign Function Interface for Python 3 to call C code
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-pycparser
|
|
|
|
|
%{?python_provide:%python_provide python3-cffi}
|
|
|
|
|
|
|
|
|
|
%description -n python3-cffi
|
|
|
|
|
%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
|
|
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-cffi}
|
|
|
|
|
|
|
|
|
|
%description -n python%{python3_pkgversion}-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 %{with docs}
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for CFFI
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -41,55 +59,48 @@ BuildArch: noarch
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for CFFI, the Foreign Function Interface for Python.
|
|
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1 -n cffi-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
cd doc
|
|
|
|
|
make SPHINXBUILD=sphinx-build-3 html
|
|
|
|
|
rm build/html/.buildinfo
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python3-cffi
|
|
|
|
|
%files -n python%{python3_pkgversion}-cffi
|
|
|
|
|
%doc PKG-INFO
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{python3_sitearch}/cffi/
|
|
|
|
|
%{python3_sitearch}/_cffi_backend.*.so
|
|
|
|
|
%{python3_sitearch}/cffi-%{version}-py%{python3_version}.egg-info/
|
|
|
|
|
|
|
|
|
|
%if %{with docs}
|
|
|
|
|
%files doc
|
|
|
|
|
%doc doc/build/html
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 1.14.5-5
|
|
|
|
|
- Add automatically generated Obsoletes tag with the python39- prefix
|
|
|
|
|
for smoother upgrade from RHEL8
|
|
|
|
|
- Related: rhbz#1990421
|
|
|
|
|
|
|
|
|
|
* Thu Aug 19 2021 DJ Delorie <dj@redhat.com> - 1.14.5-4
|
|
|
|
|
- Rebuilt for libffi 3.4.2 SONAME transition.
|
|
|
|
|
Related: rhbz#1891914
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.5-3
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.14.5-2
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Fri Feb 12 2021 Lumír Balhar <lbalhar@redhat.com> - 1.14.5-1
|
|
|
|
|
- Update to 1.14.5
|
|
|
|
|
Resolves: rhbz#1927933
|
|
|
|
|
* Fri May 24 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.14.3-2
|
|
|
|
|
- Rebuilt for MSVSphere 8.10
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 1.14.3-1
|
|
|
|
|
- Update to 1.14.3
|
|
|
|
|