import RHEL 10 Beta Cython-3.0.9-6.el10

This commit is contained in:
eabdullin 2024-11-25 12:29:54 +00:00
parent b77652fb69
commit d86daefcd8
4 changed files with 276 additions and 56 deletions

View File

@ -1 +0,0 @@
db2286ea3b3a6060c4294f9c3df652c5b4f60fca SOURCES/Cython-0.29.14.tar.gz

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/Cython-0.29.14.tar.gz
Cython-3.0.9.tar.gz

View File

@ -1,95 +1,313 @@
%global srcname Cython
%global upname cython
## START: Set by rpmautospec
## (rpmautospec version 0.6.1)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 6;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
%bcond_with tests
%bcond tests 1
# This bcond allows to ship a non-compiled version
# Slower, but sometimes necessary with alpha Python versions
%bcond cython_compile 1
Name: Cython
Version: 0.29.14
%global upver %{version_no_tilde %{nil}}
Release: 4%{?dist}
Version: 3.0.9
Release: %autorelease
Summary: Language for writing Python extension modules
License: ASL 2.0
License: Apache-2.0
URL: http://www.cython.org
Source: https://github.com/cython/cython/archive/%{upver}/%{srcname}-%{version}.tar.gz
Source: https://github.com/cython/cython/archive/%{version}/Cython-%{version}.tar.gz
# 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: python3-devel
BuildRequires: gcc
%if %{with tests}
BuildRequires: gcc-c++
BuildRequires: gdb
# optionally uses Python's test.support for some test
BuildRequires: python3-test
# the Python tests requirements are curated manually
# the test-requirements*.txt files mix in coverage and optional deps
BuildRequires: python3-numpy
%if %{undefined rhel}
# We don't want to pull in the following deps to RHEL just to run more tests.
# The tests use IPython.testing.globalipapp:
BuildRequires: python3-ipython+test
BuildRequires: python3-pythran
# The tests requiring jedi are optional and skipped when jedi is not installed.
# Note that the jedi tests were forcefully disabled a long time ago,
# in https://github.com/cython/cython/issues/1845 far, far away.
# We keep the dependency here so we don't forget to re-add it once the balance is restored.
BuildRequires: python3-jedi
%endif
%endif
%global _description \
This is a development version of Pyrex, a language\
for writing Python extension modules.
%if %{with cython_compile}
BuildRequires: gcc
%else
BuildArch: noarch
%endif
%global _description %{expand:
The Cython language makes writing C extensions for the Python language as easy
as Python itself. Cython is a source code translator based on Pyrex,
but supports more cutting edge functionality and optimizations.
The Cython language is a superset of the Python language (almost all Python
code is also valid Cython code), but Cython additionally supports optional
static typing to natively call C functions, operate with C++ classes and
declare fast C types on variables and class attributes.
This allows the compiler to generate very efficient C code from Cython code.
This makes Cython the ideal language for writing glue code for external C/C++
libraries, and for fast C modules that speed up the execution of Python code.}
%description %{_description}
%package -n python%{python3_pkgversion}-%{srcname}
%package -n python3-cython
Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-rpm-macros
%if %{with tests}
BuildRequires: python%{python3_pkgversion}-coverage
BuildRequires: python%{python3_pkgversion}-numpy
BuildRequires: python%{python3_pkgversion}-jedi
%endif
Provides: Cython = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: Cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: cython = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%py_provides python3-Cython
Obsoletes: python3-Cython < 3~~
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
# A small templating library is bundled in Cython/Tempita
# Upstream version 0.5.2 is available from https://pypi.org/project/Tempita
# but the bundled copy is patched and reorganized.
# Upstream homepage is inaccessible.
Provides: bundled(python3dist(tempita))
%description -n python3-cython %{_description}
Python 3 version.
%prep
%autosetup -n %{upname}-%{version} -p1
%autosetup -n cython-%{version} -p1
%generate_buildrequires
%pyproject_buildrequires
%build
%py3_build
%pyproject_wheel %{!?with_cython_compile:-C--global-option=--no-cython-compile}
%install
%py3_install
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
# Rename unversioned binaries
mv %{buildroot}%{_bindir}/cython{,-%{python3_version}}
mv %{buildroot}%{_bindir}/cygdb{,-%{python3_version}}
mv %{buildroot}%{_bindir}/cythonize{,-%{python3_version}}
%pyproject_install
%pyproject_save_files Cython cython pyximport
%if %{with tests}
%check
# run.pstats_profile_test* fails on Python 3.12
# https://github.com/cython/cython/issues/5470
# run.parallel fails on i686
# https://github.com/cython/cython/issues/2807
%{python3} runtests.py -vv --no-pyregr %{?_smp_mflags} \
--exclude 'run.pstats_profile_test*' \
%ifarch %{ix86}
--exclude run.parallel # https://github.com/cython/cython/issues/2807
--exclude run.parallel \
%endif
%endif
%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE.txt
%files -n python3-cython -f %{pyproject_files}
%doc *.txt Demos Doc Tools
%{_bindir}/cython-%{python3_version}
%{_bindir}/cygdb-%{python3_version}
%{_bindir}/cythonize-%{python3_version}
%{python3_sitearch}/%{srcname}-*.egg-info/
%{python3_sitearch}/%{srcname}/
%{python3_sitearch}/pyximport/
%{python3_sitearch}/%{upname}.py
%{python3_sitearch}/__pycache__/%{upname}.*
%{_bindir}/cython
%{_bindir}/cygdb
%{_bindir}/cythonize
%changelog
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 0.29.14-4
- Exclude unsupported i686 arch
## START: Generated by rpmautospec
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.0.9-6
- Bump release for June 2024 mass rebuild
* Thu Nov 21 2019 Lumír Balhar <lbalhar@redhat.com> - 0.29.14-3
- Unversioned binaries renamed
* Mon May 13 2024 Miro Hrončok <miro@hroncok.cz> - 3.0.9-5
- Add RHEL gating configuration
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 0.29.14-2
- Adjusted for Python 3.8 module in RHEL 8
- without emacs plugin
* Mon May 13 2024 Miro Hrončok <miro@hroncok.cz> - 3.0.9-4
- CI: Run upstream testsuite
* Tue May 07 2024 Miro Hrončok <miro@hroncok.cz> - 3.0.9-3
- Import CI tests from RHEL
* Thu Apr 11 2024 Miro Hrončok <miro@hroncok.cz> - 3.0.9-2
- Don't BuildRequire pythran in RHEL
* Sun Mar 17 2024 Charalampos Stratakis <cstratak@redhat.com> - 3.0.9-1
- Update to 3.0.9 (rhbz#2268123)
* Sat Mar 02 2024 Miro Hrončok <miro@hroncok.cz> - 3.0.8-4
- Disable GCC warnings/errors about wrong self casts in final function
calls
* Wed Feb 21 2024 Karolina Surma <ksurma@redhat.com> - 3.0.8-3
- Use Python 3.13.0a4 PyCFunctionFastWithKeywords
* Tue Jan 23 2024 Lumír Balhar <lbalhar@redhat.com> - 3.0.8-1
- Update to 3.0.8 (rhbz#2255460)
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jan 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Nov 30 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.6-1
- Update to 3.0.6
- Fixes: rhbz#2251973
* Tue Oct 31 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.5-1
- Update to 3.0.5
* Wed Oct 18 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.4-1
- Update to 3.0.4
- Fixes: rhbz#2244865
* Fri Oct 13 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.3-1
- Update to 3.0.3
- Fixes: rhbz#2242429
* Fri Sep 01 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-1
- Update to 3.0.2
- Fixes: rhbz#2235027
* Mon Jul 17 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-1
- Update to 3.0.0
- Rename python3-Cython to python3-cython
* Thu Jul 13 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.0.0~rc2-1
- Update to 3.0.0rc2
- The emacs-cython-mode package is no longer part of this project
* Fri Jun 30 2023 Petr Viktorin <pviktori@redhat.com> - 0.29.35-2
- Compile-time Python 3.12 compatibility for CYTHON_TRACE support
* Sun Jun 18 2023 Miro Hrončok <mhroncok@redhat.com> - 0.29.35-1
- Update to 0.29.35
- Fixes: rhbz#2210064
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.29.34-3
- Bootstrap for Python 3.12
* Wed May 24 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.29.34-2
- Avoid python-jedi dependency in RHEL builds
- Stop shipping emacs-cython-mode in RHEL builds
* Mon Apr 03 2023 Miro Hrončok <mhroncok@redhat.com> - 0.29.34-1
- Update to 0.29.34
- Fixes: rhbz#1823181
- Fixes: rhbz#2172822
- Fixes: rhbz#2177838
* Fri Feb 17 2023 Miro Hrončok <mhroncok@redhat.com> - 0.29.33-1
- Update to 0.29.33
- Fix test failures with NumPy 1.24
- Update the RPM license tag to SPDX
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.32-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Tue Dec 20 2022 Miro Hrončok <mhroncok@redhat.com> - 0.29.32-2
- emacs-cython-mode: Wrap the docstring of cython-default-compile-format to 80 characters
- Fixes: rhbz#2155090
* Mon Aug 08 2022 Miro Hrončok <mhroncok@redhat.com> - 0.29.32-1
- Update to 0.29.32
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.30-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.29.30-3
- Rebuilt for Python 3.11
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.29.30-2
- Bootstrap for Python 3.11
* Mon May 30 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.29.30-1
- Update to 0.29.30
* Thu Mar 31 2022 Miro Hrončok <mhroncok@redhat.com> - 0.29.28-1
- Update to 0.29.28
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.26-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Jan 07 2022 Miro Hrončok <mhroncok@redhat.com> - 0.29.26-1
- Update to 0.29.26
* Wed Jul 21 2021 Scott Talbert <swt@techie.net> - 0.29.24-1
- Update to 0.29.24 to fix FTBFS with Python 3.10
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.22-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 0.29.22-4
- Rebuilt for Python 3.10
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 0.29.22-3
- Bootstrap for Python 3.10
* Tue Mar 09 2021 Miro Hrončok <mhroncok@redhat.com> - 0.29.22-2
- Remove an obsoleted patch
- Remove old Obsoletes and Conflicts
- Update description
- Provide cython, python3-cython
* Thu Mar 04 2021 Miro Hrončok <mhroncok@redhat.com> - 0.29.22-1
- Update to 0.29.22
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.21-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Nov 13 2020 Miro Hrončok <mhroncok@redhat.com> - 0.29.21-4
- Drop build dependency on coverage
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.21-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 22 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.29.21-2
- Re-enable tests.
* Wed Jul 22 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.29.21-1
- 0.29.21
* Wed May 27 2020 sguelton@redhat.com - 0.29.19-1
- Update to 0.29.19
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 0.29.17-4
- Rebuilt for Python 3.9
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 0.29.17-3
- Bootstrap for Python 3.9
* Wed May 13 2020 Petr Viktorin <pviktori@redhat.com> - 0.29.17-2
- Backport classmethod fixes
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1788506
* Tue Apr 28 2020 Marcel Plch <mplch@redhat.com> - 0.29.17-1
- Update to 0.29.17
* Wed Mar 25 2020 Miro Hrončok <mhroncok@redhat.com> - 0.29.16-1
- Update to 0.29.16 (#1816785)
* Sat Feb 08 2020 Miro Hrončok <mhroncok@redhat.com> - 0.29.15-1
- Update to 0.29.15 (#1800158)
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Nov 04 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.14-1
- Update to 0.29.14 (#1768034)
@ -426,3 +644,5 @@ mv %{buildroot}%{_bindir}/cythonize{,-%{python3_version}}
* Tue Feb 26 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.12-1
- Initial version
## END: Generated by rpmautospec

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (Cython-3.0.9.tar.gz) = 7899474882faab14716973783bbb46b981eab48192791acbbd06133efee83bfa9ace0e9a0272b0a44061a95ed94cdceaa98c4100f843220f5987791e36fa00e6