Compare commits

...

No commits in common. 'i8c-stream-3.9_bootstrap' and 'c9' have entirely different histories.

2
.gitignore vendored

@ -1 +1 @@
SOURCES/cffi-1.14.3.tar.gz SOURCES/cffi-1.14.5.tar.gz

@ -1 +1 @@
7199374653c1927e8d3c523b6498b149acdb6f7e SOURCES/cffi-1.14.3.tar.gz 21cdeccd7b7b121d35eae1b8e91d78f9ec83da98 SOURCES/cffi-1.14.5.tar.gz

@ -1,29 +1,17 @@
# 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 Name: python-cffi
Version: 1.14.3 Version: 1.14.5
Release: 2%{?dist} Release: 5%{?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: https://cffi.readthedocs.org/ URL: https://cffi.readthedocs.org/
Source0: %{pypi_source cffi} Source0: %{pypi_source cffi}
# Exclude i686 arch. Due to a modularity issue it's being added to the BuildRequires: make
# 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: libffi-devel
BuildRequires: gcc BuildRequires: gcc
%if %{with tests}
# For tests: # For tests:
BuildRequires: gcc-c++ BuildRequires: gcc-c++
%endif
%?python_enable_dependency_generator %?python_enable_dependency_generator
@ -32,26 +20,20 @@ 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 python%{python3_pkgversion}-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
%if %{with docs}
BuildRequires: python3-sphinx BuildRequires: python3-sphinx
%endif BuildRequires: python3-pytest
%if %{with tests} BuildRequires: python3-devel
BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python3-setuptools
%endif BuildRequires: python3-pycparser
BuildRequires: python%{python3_pkgversion}-devel %{?python_provide:%python_provide python3-cffi}
BuildRequires: python%{python3_pkgversion}-rpm-macros
BuildRequires: python%{python3_pkgversion}-setuptools %description -n python3-cffi
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 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.
%if %{with docs}
%package doc %package doc
Summary: Documentation for CFFI Summary: Documentation for CFFI
BuildArch: noarch BuildArch: noarch
@ -59,48 +41,55 @@ BuildArch: noarch
%description doc %description doc
Documentation for CFFI, the Foreign Function Interface for Python. Documentation for CFFI, the Foreign Function Interface for Python.
%endif
%prep %prep
%autosetup -p1 -n cffi-%{version} %autosetup -p1 -n cffi-%{version}
%build %build
%py3_build %py3_build
%if %{with docs}
cd doc cd doc
make SPHINXBUILD=sphinx-build-3 html make SPHINXBUILD=sphinx-build-3 html
rm build/html/.buildinfo rm build/html/.buildinfo
%endif
%install %install
%py3_install %py3_install
%if %{with tests}
%check %check
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/ PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest c/ testing/
%endif
%files -n python%{python3_pkgversion}-cffi %files -n python3-cffi
%doc PKG-INFO %doc PKG-INFO
%license LICENSE %license LICENSE
%{python3_sitearch}/cffi/ %{python3_sitearch}/cffi/
%{python3_sitearch}/_cffi_backend.*.so %{python3_sitearch}/_cffi_backend.*.so
%{python3_sitearch}/cffi-%{version}-py%{python3_version}.egg-info/ %{python3_sitearch}/cffi-%{version}-py%{python3_version}.egg-info/
%if %{with docs}
%files doc %files doc
%doc doc/build/html %doc doc/build/html
%endif
%changelog %changelog
* Fri May 24 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.14.3-2 * Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 1.14.5-5
- Rebuilt for MSVSphere 8.10 - 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
* Mon Jan 18 2021 Tomas Orsava <torsava@redhat.com> - 1.14.3-2 * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.3-2
- Convert from Fedora to the python39 module in RHEL8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
- Resolves: rhbz#1877430
* Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 1.14.3-1 * Thu Nov 19 2020 Joel Capitao <jcapitao@redhat.com> - 1.14.3-1
- Update to 1.14.3 - Update to 1.14.3

Loading…
Cancel
Save