From da2dd38c4c14425c1977df1807004e6941d1364f Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Wed, 8 Feb 2023 14:16:04 +0000 Subject: [PATCH] Auto sync2gitlab import of python3.11-Cython-0.29.32-1.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - python3.11-Cython.spec | 125 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 python3.11-Cython.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a137063 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Cython-0.29.32.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/python3.11-Cython.spec b/python3.11-Cython.spec new file mode 100644 index 0000000..c792445 --- /dev/null +++ b/python3.11-Cython.spec @@ -0,0 +1,125 @@ +%global __python3 /usr/bin/python3.11 +%global python3_pkgversion 3.11 + +# RHEL: Tests disabled during build due to missing dependencies +%bcond_with tests + +# This bcond allows to ship a non-compiled version +# Slower, but sometimes necessary with alpha Python versions +%bcond_without cython_compile + +Name: python%{python3_pkgversion}-Cython +Version: 0.29.32 +Release: 1%{?dist} +Summary: Language for writing Python extension modules + +License: ASL 2.0 +URL: http://www.cython.org +Source: https://github.com/cython/cython/archive/%{version}/Cython-%{version}.tar.gz + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-rpm-macros +BuildRequires: python%{python3_pkgversion}-setuptools + +%if %{with tests} +BuildRequires: gcc-c++ +BuildRequires: python%{python3_pkgversion}-numpy +BuildRequires: python%{python3_pkgversion}-jedi +%endif + +%if %{with cython_compile} +BuildRequires: gcc +%global python3_site %{python3_sitearch} +%else +BuildArch: noarch +%global python3_site %{python3_sitelib} +%endif + +%py_provides python%{python3_pkgversion}-cython + +# 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(python%{python3_pkgversion}dist(tempita)) + +%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} + +%prep +%autosetup -n cython-%{version} -p1 + + +%build +%py3_build -- %{!?with_cython_compile:--no-cython-compile} + +%install +%py3_install -- %{!?with_cython_compile:--no-cython-compile} + +# Rename unversioned binaries +mv %{buildroot}%{_bindir}/cython{,-%{python3_version}} +mv %{buildroot}%{_bindir}/cygdb{,-%{python3_version}} +mv %{buildroot}%{_bindir}/cythonize{,-%{python3_version}} + + +%if %{with tests} +%check +%{__python3} runtests.py -vv --no-pyregr %{?_smp_mflags} \ + %ifarch %{ix86} + --exclude run.parallel # https://github.com/cython/cython/issues/2807 + %endif + +%endif + + +%files -n python%{python3_pkgversion}-Cython +%license LICENSE.txt +%doc *.txt Demos Doc Tools +%{_bindir}/cython-%{python3_version} +%{_bindir}/cygdb-%{python3_version} +%{_bindir}/cythonize-%{python3_version} +%{python3_site}/Cython-*.egg-info/ +%{python3_site}/Cython/ +%{python3_site}/pyximport/ +%pycached %{python3_site}/cython.py + +%changelog +* Thu Oct 20 2022 Charalampos Stratakis - 0.29.32-1 +- Initial package +- Fedora contributions by: + Alex Cobb + Bill Nottingham + Charalampos Stratakis + David Malcolm + Dennis Gilmore + Gwyn Ciesla + Ignacio Vazquez-Abrams + Igor Gnatenko + Jesse Keating + Kevin Fenzi + Marcel Plch + Miro Hrončok + nbecker + Neal D. Becker + Orion Poplawski + Peter Robinson + Petr Viktorin + Robert Kuska + Scott Talbert + serge-sans-paille + Thomas Spura + Tomáš Hrnčiar + Toshio くらとみ diff --git a/sources b/sources new file mode 100644 index 0000000..9a5af0a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Cython-0.29.32.tar.gz) = 55462792fa70d8edf60aa470627ab494918d7297fd7d282a7a54da76ee5a180233108404a1c8f3d79f6408f19b6e4f46b36e59fd47c38ede24f061f374437b6f