Compare commits
1 Commits
c8-stream-
...
c10-beta
| Author | SHA1 | Date | |
|---|---|---|---|
| d86daefcd8 |
@ -1 +0,0 @@
|
|||||||
db2286ea3b3a6060c4294f9c3df652c5b4f60fca SOURCES/Cython-0.29.14.tar.gz
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/Cython-0.29.14.tar.gz
|
Cython-3.0.9.tar.gz
|
||||||
|
|||||||
@ -1,95 +1,313 @@
|
|||||||
%global srcname Cython
|
## START: Set by rpmautospec
|
||||||
%global upname cython
|
## (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
|
Name: Cython
|
||||||
Version: 0.29.14
|
Version: 3.0.9
|
||||||
%global upver %{version_no_tilde %{nil}}
|
Release: %autorelease
|
||||||
Release: 4%{?dist}
|
|
||||||
Summary: Language for writing Python extension modules
|
Summary: Language for writing Python extension modules
|
||||||
|
|
||||||
License: ASL 2.0
|
License: Apache-2.0
|
||||||
URL: http://www.cython.org
|
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
|
BuildRequires: python3-devel
|
||||||
# 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: gcc
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: gcc-c++
|
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
|
%endif
|
||||||
|
|
||||||
%global _description \
|
%if %{with cython_compile}
|
||||||
This is a development version of Pyrex, a language\
|
BuildRequires: gcc
|
||||||
for writing Python extension modules.
|
%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}
|
%description %{_description}
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-%{srcname}
|
|
||||||
|
%package -n python3-cython
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
Provides: Cython = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
Provides: Cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
Provides: cython = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
Provides: cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
%if %{with tests}
|
%py_provides python3-Cython
|
||||||
BuildRequires: python%{python3_pkgversion}-coverage
|
Obsoletes: python3-Cython < 3~~
|
||||||
BuildRequires: python%{python3_pkgversion}-numpy
|
|
||||||
BuildRequires: python%{python3_pkgversion}-jedi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%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
|
%prep
|
||||||
%autosetup -n %{upname}-%{version} -p1
|
%autosetup -n cython-%{version} -p1
|
||||||
|
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_wheel %{!?with_cython_compile:-C--global-option=--no-cython-compile}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
%pyproject_save_files Cython cython pyximport
|
||||||
# Rename unversioned binaries
|
|
||||||
mv %{buildroot}%{_bindir}/cython{,-%{python3_version}}
|
|
||||||
mv %{buildroot}%{_bindir}/cygdb{,-%{python3_version}}
|
|
||||||
mv %{buildroot}%{_bindir}/cythonize{,-%{python3_version}}
|
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%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} \
|
%{python3} runtests.py -vv --no-pyregr %{?_smp_mflags} \
|
||||||
|
--exclude 'run.pstats_profile_test*' \
|
||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
--exclude run.parallel # https://github.com/cython/cython/issues/2807
|
--exclude run.parallel \
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-%{srcname}
|
|
||||||
%license LICENSE.txt
|
%files -n python3-cython -f %{pyproject_files}
|
||||||
%doc *.txt Demos Doc Tools
|
%doc *.txt Demos Doc Tools
|
||||||
%{_bindir}/cython-%{python3_version}
|
%{_bindir}/cython
|
||||||
%{_bindir}/cygdb-%{python3_version}
|
%{_bindir}/cygdb
|
||||||
%{_bindir}/cythonize-%{python3_version}
|
%{_bindir}/cythonize
|
||||||
%{python3_sitearch}/%{srcname}-*.egg-info/
|
|
||||||
%{python3_sitearch}/%{srcname}/
|
|
||||||
%{python3_sitearch}/pyximport/
|
|
||||||
%{python3_sitearch}/%{upname}.py
|
|
||||||
%{python3_sitearch}/__pycache__/%{upname}.*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 0.29.14-4
|
## START: Generated by rpmautospec
|
||||||
- Exclude unsupported i686 arch
|
* 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
|
* Mon May 13 2024 Miro Hrončok <miro@hroncok.cz> - 3.0.9-5
|
||||||
- Unversioned binaries renamed
|
- Add RHEL gating configuration
|
||||||
|
|
||||||
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 0.29.14-2
|
* Mon May 13 2024 Miro Hrončok <miro@hroncok.cz> - 3.0.9-4
|
||||||
- Adjusted for Python 3.8 module in RHEL 8
|
- CI: Run upstream testsuite
|
||||||
- without emacs plugin
|
|
||||||
|
* 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
|
* Mon Nov 04 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.14-1
|
||||||
- Update to 0.29.14 (#1768034)
|
- 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
|
* Tue Feb 26 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.12-1
|
||||||
- Initial version
|
- Initial version
|
||||||
|
|
||||||
|
## END: Generated by rpmautospec
|
||||||
Loading…
Reference in New Issue
Block a user