## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 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: 3.0.11 Release: %autorelease Summary: Language for writing Python extension modules License: Apache-2.0 URL: http://www.cython.org Source: https://github.com/cython/cython/archive/%{version}/Cython-%{version}.tar.gz # Backport patch for NumPy 2.x # https://github.com/cython/cython/issues/6581 Patch: https://github.com/cython/cython/commit/852286242ee46cc16f0a6efef7eb40a5ab3c57d5.patch BuildRequires: python3-devel %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 %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 python3-cython Summary: %{summary} 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~~ # 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} %prep %autosetup -n cython-%{version} -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %{!?with_cython_compile:-C--global-option=--no-cython-compile} %install %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.numpy_parallel fails on i686 # https://github.com/cython/cython/issues/6200 # 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 \ --exclude run.numpy_parallel \ %endif %endif %files -n python3-cython -f %{pyproject_files} %doc *.txt Demos Doc Tools %{_bindir}/cython %{_bindir}/cygdb %{_bindir}/cythonize %changelog ## START: Generated by rpmautospec * Wed Dec 25 2024 Sandro - 3.0.11-2 - Apply patch for NumPy 2.x test failure * Wed Aug 07 2024 Charalampos Stratakis - 3.0.11-1 - Update to 3.0.11 - Fixes: rhbz#2303197 - Fixes: rhbz#2293086 * Wed Jul 17 2024 Fedora Release Engineering - 3.0.9-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 16 2024 Python Maint - 3.0.9-6 - Rebuilt for Python 3.13 * Fri Jun 07 2024 Python Maint - 3.0.9-5 - Bootstrap for Python 3.13 * Mon May 13 2024 Miro Hrončok - 3.0.9-4 - CI: Run upstream testsuite * Tue May 07 2024 Miro Hrončok - 3.0.9-3 - Import CI tests from RHEL * Thu Apr 11 2024 Miro Hrončok - 3.0.9-2 - Don't BuildRequire pythran in RHEL * Sun Mar 17 2024 Charalampos Stratakis - 3.0.9-1 - Update to 3.0.9 (rhbz#2268123) * Sat Mar 02 2024 Miro Hrončok - 3.0.8-4 - Disable GCC warnings/errors about wrong self casts in final function calls * Wed Feb 21 2024 Karolina Surma - 3.0.8-3 - Use Python 3.13.0a4 PyCFunctionFastWithKeywords * Tue Jan 23 2024 Lumír Balhar - 3.0.8-1 - Update to 3.0.8 (rhbz#2255460) * Mon Jan 22 2024 Fedora Release Engineering - 3.0.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 3.0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 18 2024 Fedora Release Engineering - 3.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Nov 30 2023 Miro Hrončok - 3.0.6-1 - Update to 3.0.6 - Fixes: rhbz#2251973 * Tue Oct 31 2023 Miro Hrončok - 3.0.5-1 - Update to 3.0.5 * Wed Oct 18 2023 Miro Hrončok - 3.0.4-1 - Update to 3.0.4 - Fixes: rhbz#2244865 * Fri Oct 13 2023 Miro Hrončok - 3.0.3-1 - Update to 3.0.3 - Fixes: rhbz#2242429 * Fri Sep 01 2023 Miro Hrončok - 3.0.2-1 - Update to 3.0.2 - Fixes: rhbz#2235027 * Mon Jul 17 2023 Miro Hrončok - 3.0.0-1 - Update to 3.0.0 - Rename python3-Cython to python3-cython * Thu Jul 13 2023 Tomáš Hrnčiar - 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 - 0.29.35-2 - Compile-time Python 3.12 compatibility for CYTHON_TRACE support * Sun Jun 18 2023 Miro Hrončok - 0.29.35-1 - Update to 0.29.35 - Fixes: rhbz#2210064 * Tue Jun 13 2023 Python Maint - 0.29.34-3 - Bootstrap for Python 3.12 * Wed May 24 2023 Yaakov Selkowitz - 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 - 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 - 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 - 0.29.32-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Dec 20 2022 Miro Hrončok - 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 - 0.29.32-1 - Update to 0.29.32 * Wed Jul 20 2022 Fedora Release Engineering - 0.29.30-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.29.30-3 - Rebuilt for Python 3.11 * Mon Jun 13 2022 Python Maint - 0.29.30-2 - Bootstrap for Python 3.11 * Mon May 30 2022 Tomáš Hrnčiar - 0.29.30-1 - Update to 0.29.30 * Thu Mar 31 2022 Miro Hrončok - 0.29.28-1 - Update to 0.29.28 * Wed Jan 19 2022 Fedora Release Engineering - 0.29.26-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jan 07 2022 Miro Hrončok - 0.29.26-1 - Update to 0.29.26 * Wed Jul 21 2021 Scott Talbert - 0.29.24-1 - Update to 0.29.24 to fix FTBFS with Python 3.10 * Wed Jul 21 2021 Fedora Release Engineering - 0.29.22-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jun 02 2021 Python Maint - 0.29.22-4 - Rebuilt for Python 3.10 * Wed Jun 02 2021 Python Maint - 0.29.22-3 - Bootstrap for Python 3.10 * Tue Mar 09 2021 Miro Hrončok - 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 - 0.29.22-1 - Update to 0.29.22 * Mon Jan 25 2021 Fedora Release Engineering - 0.29.21-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 13 2020 Miro Hrončok - 0.29.21-4 - Drop build dependency on coverage * Mon Jul 27 2020 Fedora Release Engineering - 0.29.21-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 22 2020 Gwyn Ciesla - 0.29.21-2 - Re-enable tests. * Wed Jul 22 2020 Gwyn Ciesla - 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 - 0.29.17-4 - Rebuilt for Python 3.9 * Fri May 22 2020 Miro Hrončok - 0.29.17-3 - Bootstrap for Python 3.9 * Wed May 13 2020 Petr Viktorin - 0.29.17-2 - Backport classmethod fixes Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1788506 * Tue Apr 28 2020 Marcel Plch - 0.29.17-1 - Update to 0.29.17 * Wed Mar 25 2020 Miro Hrončok - 0.29.16-1 - Update to 0.29.16 (#1816785) * Sat Feb 08 2020 Miro Hrončok - 0.29.15-1 - Update to 0.29.15 (#1800158) * Tue Jan 28 2020 Fedora Release Engineering - 0.29.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Nov 04 2019 Miro Hrončok - 0.29.14-1 - Update to 0.29.14 (#1768034) - Python 2 subpackage has been removed * Thu Oct 03 2019 Miro Hrončok - 0.29.13-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Thu Aug 15 2019 Miro Hrončok - 0.29.13-4 - Rebuilt for Python 3.8 * Thu Aug 15 2019 Miro Hrončok - 0.29.13-3 - Bootstrap for Python 3.8 * Thu Aug 01 2019 Gwyn Ciesla 0.29.13-2 - Rebuild with new numpy. * Sat Jul 27 11:58:51 CEST 2019 Igor Gnatenko - 0.29.13-1 - Update to 0.29.13 * Wed Jul 24 2019 Fedora Release Engineering - 0.29.12-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jul 22 2019 Petr Viktorin - 0.29.12-2 - Remove non-essential Python 2 test dependencies * Thu Jul 11 2019 Miro Hrončok - 0.29.12-1 - Update to 0.29.12 (#1727580) * Mon Jul 01 2019 Miro Hrončok - 0.29.11-1 - Update to 0.29.11 (#1725361) * Sun Jun 02 2019 Charalampos Stratakis - 0.29.10-1 - Update to 0.29.10 (#1716146) * Thu May 30 2019 Miro Hrončok - 0.29.9-1 - Update to 0.29.9 (#1714365) * Mon May 13 07:10:35 CEST 2019 Igor Gnatenko - 0.29.7-1 - Update to 0.29.7 * Wed Feb 27 2019 Miro Hrončok - 0.29.6-1 - Update to 0.29.6 (#1683661) * Fri Feb 08 2019 Miro Hrončok - 0.29.5-1 - Update to 0.29.5 (#1667643) * Thu Jan 31 2019 Fedora Release Engineering - 0.29.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jan 19 2019 Miro Hrončok - 0.29.3-1 - Update to 0.29.3 (#1667643) * Tue Jan 08 2019 Alex Cobb - 0.29.1-2 - Added emacs-cython-mode subpackage * Mon Dec 10 2018 Igor Gnatenko - 0.29.1-1 - Update to 0.29.1 * Mon Dec 10 2018 Igor Gnatenko - 0.29-1 - Update to 0.29 * Wed Oct 03 2018 Igor Gnatenko - 0.29~rc2-1 - Update to 0.29~rc2 * Sat Aug 11 2018 Igor Gnatenko - 0.28.5-1 - Update to 0.28.5 * Sun Aug 05 2018 Miro Hrončok - 0.28.4-3 - Only have one /usr/bin/cython * Sun Jul 15 2018 Igor Gnatenko - 0.28.4-1 - Update to 0.28.4 * Thu Jul 12 2018 Fedora Release Engineering - 0.28.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 15 2018 Miro Hrončok - 0.28.1-2 - Rebuilt for Python 3.7 * Mon Mar 19 2018 Igor Gnatenko - 0.28.1-1 - Update to 0.28.1 * Wed Feb 07 2018 Fedora Release Engineering - 0.27.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Nov 06 2017 Igor Gnatenko - 0.27.3-1 - Update to 0.27.3 * Mon Oct 02 2017 Igor Gnatenko - 0.27.1-1 - Update to 0.27.1 * Wed Aug 02 2017 Fedora Release Engineering - 0.25.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.25.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed May 03 2017 Igor Gnatenko - 0.25.2-5 - Fix license * Fri Feb 10 2017 Fedora Release Engineering - 0.25.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 22 2016 Igor Gnatenko - 0.25.2-3 - Backport couple of patches * Mon Dec 12 2016 Charalampos Stratakis - 0.25.2-2 - Rebuild for Python 3.6 * Sat Dec 10 2016 Igor Gnatenko - 0.25.2-1 - Update to 0.25.2 * Sat Aug 27 2016 Igor Gnatenko - 0.24.1-8 - Fix provides (RHBZ #1370879) * Thu Aug 25 2016 Igor Gnatenko - 0.24.1-7 - Run test suite * Thu Aug 25 2016 Igor Gnatenko - 0.24.1-6 - Provide old names * Thu Aug 25 2016 Igor Gnatenko - 0.24.1-5 - Use %%python_provide * Tue Aug 23 2016 Igor Gnatenko - 0.24.1-4 - Update to 0.24.1 * Tue Jul 19 2016 Fedora Release Engineering - 0.23.4-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Feb 03 2016 Fedora Release Engineering - 0.23.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jan 13 2016 Orion Poplawski - 0.23.4-1 - Update to 0.23.4 - Ship cythonize3 - Modernize and cleanup spec - Run tests, one python3 test fails with 3.5 * Tue Oct 13 2015 Robert Kuska - 0.23-2 - Rebuilt for Python3.5 rebuild * Wed Aug 12 2015 Neal Becker - 0.23-2 - Update to 0.23 * Tue Jun 16 2015 Fedora Release Engineering - 0.22-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Feb 13 2015 nbecker - 0.22-1 - oops, that should be 0.22 not 0.22.1 * Fri Feb 13 2015 nbecker - 0.22.1-1 - Update to 0.22 * Sat Nov 22 2014 nbecker - 0.21.1-1 - Update to 0.21.1 (br #1164297) * Mon Sep 15 2014 nbecker - 0.21-5 - Add /bin/cythonize * Mon Sep 15 2014 nbecker - 0.21-1 - Update to 0.21 * Fri Aug 15 2014 Fedora Release Engineering - 0.20.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Jun 06 2014 Fedora Release Engineering - 0.20.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Thomas Spura - 0.20.1-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Fri May 9 2014 Orion Poplawski - 0.20.1-2 - Rebuild for Python 3.4 * Fri May 9 2014 Orion Poplawski - 0.20.1-1 - Update to 0.20.1 * Mon Jan 20 2014 nbecker - 0.20-1 - Update to 0.20 * Thu Oct 17 2013 nbecker - 0.19.2-2 - Fix BR 1019498 * Sun Oct 13 2013 nbecker - 0.19-2 - Update to 0.19.2 * Fri Aug 02 2013 Fedora Release Engineering - 0.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Apr 19 2013 nbecker - 0.19-1 - Update to 0.19 * Tue Jan 29 2013 Neal Becker - 0.18-1 - update to 0.18 * Sat Dec 15 2012 Neal Becker - 0.17.3-1 - Update to 0.17.3 * Wed Nov 21 2012 Neal Becker - 0.17.2-1 - update to 0.17.2 * Wed Sep 26 2012 Neal Becker - 0.17.1-1 - Update to 0.17.1 * Mon Sep 3 2012 Neal Becker - 0.17-1 - Update to 0.17 * Tue Aug 28 2012 Neal Becker - 0.17-3.b3 - Turn on check (temporarily) - Add br numpy from check * Tue Aug 28 2012 Neal Becker - 0.17-1.b3 - Test 0.17b3 * Fri Aug 24 2012 David Malcolm - 0.16-3 - generalize egg-info logic to support RHEL (rhbz#851528) * Wed Jul 18 2012 Fedora Release Engineering - 0.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Apr 27 2012 Neal Becker - 0.16-1 - Update to 0.16 * Thu Jan 12 2012 Fedora Release Engineering - 0.15.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Sep 20 2011 Neal Becker - 0.15.1-1 - Update to 0.15.1 * Sat Aug 6 2011 Neal Becker - 0.15-1 - Update to 0.15 * Mon Feb 07 2011 Fedora Release Engineering - 0.14.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sat Feb 5 2011 Neal Becker - 0.14.1-1 - Update to 0.14.1 * Wed Dec 15 2010 Neal Becker - 0.14-2 - Add cygdb * Wed Dec 15 2010 Neal Becker - 0.14-1 - Update to 0.14 * Wed Aug 25 2010 Neal Becker - 0.13-1 - Update to 0.13 * Wed Jul 21 2010 David Malcolm - 0.12.1-5 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Fri Feb 5 2010 Neal Becker - 0.12.1-4 - Disable check for now as it fails on PPC * Tue Feb 2 2010 Neal Becker - 0.12.1-2 - typo - stupid rpm comments * Mon Nov 23 2009 Neal Becker - 0.12-1.rc1 - Make that 0.12 * Mon Nov 23 2009 Neal Becker - 0.12.1-1.rc1 - Update to 0.12.1 * Sun Sep 27 2009 Neal Becker - 0.11.3-1.rc1 - Update to 0.11.3rc1 - Update to 0.11.3 * Fri Jul 24 2009 Fedora Release Engineering - 0.11.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed May 20 2009 Neal Becker - 0.11.2-1 - Update to 0.11.2 * Thu Apr 16 2009 Neal Becker - 0.11.1-1 - Update to 0.11.1 * Sat Mar 14 2009 Neal Becker - 0.11-2 - Missed cython.py* * Sat Mar 14 2009 Neal Becker - 0.11-1 - Update to 0.11 - Exclude numpy from tests so we don't have to BR it * Mon Feb 23 2009 Fedora Release Engineering - 0.10.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Dec 17 2008 Neal Becker - 0.10.3-1 - Update to 0.10.3 * Thu Dec 04 2008 Ignacio Vazquez-Abrams - 0.10.2-2 - Rebuild for Python 2.6 * Mon Dec 1 2008 Neal Becker - 0.10.2-1 - Update to 0.10.2 * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.10.1-2 - Rebuild for Python 2.6 * Wed Nov 19 2008 Neal Becker - 0.10.1-1 - Update to 0.10.1 * Sun Nov 9 2008 Neal Becker - 0.10-3 - Fix typo * Sun Nov 9 2008 Neal Becker - 0.10-1 - Update to 0.10 * Fri Jun 13 2008 Neal Becker - 0.9.8-2 - Install into python_sitearch - Add %%check * Fri Jun 13 2008 Neal Becker - 0.9.8-1 - Update to 0.9.8 * Mon Apr 14 2008 José Matos - 0.9.6.13.1-3 - Remove remaining --record. - Add more documentation (Doc and Tools). - Add correct entry for egg-info (F9+). * Mon Apr 14 2008 Neal Becker - 0.9.6.13.1-2 - Change License to Python - Install About.html - Fix mixed spaces/tabs - Don't use --record * Tue Apr 8 2008 Neal Becker - 0.9.6.13.1-1 - Update to 0.9.6.13.1 * Mon Apr 7 2008 Neal Becker - 0.9.6.13-1 - Update to 0.9.6.13 - Add docs * Tue Feb 26 2008 Neal Becker - 0.9.6.12-1 - Initial version ## END: Generated by rpmautospec