Blame SPECS/python3.11-Cython.spec

600c74
%global __python3 /usr/bin/python3.11
600c74
%global python3_pkgversion 3.11
600c74
600c74
# RHEL: Tests disabled during build due to missing dependencies
600c74
%bcond_with tests
600c74
600c74
# This bcond allows to ship a non-compiled version
600c74
# Slower, but sometimes necessary with alpha Python versions
600c74
%bcond_without cython_compile
600c74
600c74
Name:           python%{python3_pkgversion}-Cython
600c74
Version:        0.29.32
600c74
Release:        2%{?dist}
600c74
Summary:        Language for writing Python extension modules
600c74
600c74
License:        ASL 2.0
600c74
URL:            http://www.cython.org
600c74
Source:         https://github.com/cython/cython/archive/%{version}/Cython-%{version}.tar.gz
600c74
600c74
BuildRequires:  python%{python3_pkgversion}-devel
600c74
BuildRequires:  python%{python3_pkgversion}-rpm-macros
600c74
BuildRequires:  python%{python3_pkgversion}-setuptools
600c74
600c74
%if %{with tests}
600c74
BuildRequires:  gcc-c++
600c74
BuildRequires:  python%{python3_pkgversion}-numpy
600c74
BuildRequires:  python%{python3_pkgversion}-jedi
600c74
%endif
600c74
600c74
%if %{with cython_compile}
600c74
BuildRequires:  gcc
600c74
%global python3_site %{python3_sitearch}
600c74
%else
600c74
BuildArch:      noarch
600c74
%global python3_site %{python3_sitelib}
600c74
%endif
600c74
600c74
%py_provides    python%{python3_pkgversion}-cython
600c74
600c74
# A small templating library is bundled in Cython/Tempita
600c74
# Upstream version 0.5.2 is available from https://pypi.org/project/Tempita
600c74
# but the bundled copy is patched and reorganized.
600c74
# Upstream homepage is inaccessible.
600c74
Provides:       bundled(python%{python3_pkgversion}dist(tempita))
600c74
600c74
%global _description %{expand:
600c74
The Cython language makes writing C extensions for the Python language as easy
600c74
as Python itself. Cython is a source code translator based on Pyrex,
600c74
but supports more cutting edge functionality and optimizations.
600c74
600c74
The Cython language is a superset of the Python language (almost all Python
600c74
code is also valid Cython code), but Cython additionally supports optional
600c74
static typing to natively call C functions, operate with C++ classes and
600c74
declare fast C types on variables and class attributes.
600c74
This allows the compiler to generate very efficient C code from Cython code.
600c74
600c74
This makes Cython the ideal language for writing glue code for external C/C++
600c74
libraries, and for fast C modules that speed up the execution of Python code.}
600c74
600c74
%description %{_description}
600c74
600c74
%prep
600c74
%autosetup -n cython-%{version} -p1
600c74
600c74
600c74
%build
600c74
%py3_build -- %{!?with_cython_compile:--no-cython-compile}
600c74
600c74
%install
600c74
%py3_install -- %{!?with_cython_compile:--no-cython-compile}
600c74
600c74
# Rename unversioned binaries
600c74
mv %{buildroot}%{_bindir}/cython{,-%{python3_version}}
600c74
mv %{buildroot}%{_bindir}/cygdb{,-%{python3_version}}
600c74
mv %{buildroot}%{_bindir}/cythonize{,-%{python3_version}}
600c74
600c74
600c74
%if %{with tests}
600c74
%check
600c74
%{__python3} runtests.py -vv --no-pyregr %{?_smp_mflags} \
600c74
  %ifarch %{ix86}
600c74
  --exclude run.parallel  # https://github.com/cython/cython/issues/2807
600c74
  %endif
600c74
600c74
%endif
600c74
600c74
600c74
%files -n python%{python3_pkgversion}-Cython
600c74
%license LICENSE.txt
600c74
%doc *.txt Demos Doc Tools
600c74
%{_bindir}/cython-%{python3_version}
600c74
%{_bindir}/cygdb-%{python3_version}
600c74
%{_bindir}/cythonize-%{python3_version}
600c74
%{python3_site}/Cython-*.egg-info/
600c74
%{python3_site}/Cython/
600c74
%{python3_site}/pyximport/
600c74
%pycached %{python3_site}/cython.py
600c74
600c74
%changelog
600c74
* Mon Feb 13 2023 Charalampos Stratakis <cstratak@redhat.com> - 0.29.32-2
600c74
- Bump release for gating
600c74
600c74
* Thu Oct 20 2022 Charalampos Stratakis <cstratak@redhat.com> - 0.29.32-1
600c74
- Initial package
600c74
- Fedora contributions by:
600c74
      Alex Cobb <alex.cobb@smart.mit.edu>
600c74
      Bill Nottingham <notting@fedoraproject.org>
600c74
      Charalampos Stratakis <cstratak@redhat.com>
600c74
      David Malcolm <dmalcolm@redhat.com>
600c74
      Dennis Gilmore <dennis@ausil.us>
600c74
      Gwyn Ciesla <gwync@protonmail.com>
600c74
      Ignacio Vazquez-Abrams <ivazquez@fedoraproject.org>
600c74
      Igor Gnatenko <ignatenkobrain@fedoraproject.org>
600c74
      Jesse Keating <jkeating@fedoraproject.org>
600c74
      Kevin Fenzi <kevin@fedoraproject.org>
600c74
      Marcel Plch <mplch@redhat.com>
600c74
      Miro Hrončok <miro@hroncok.cz>
600c74
      nbecker <ndbecker2@gmail.com>
600c74
      Neal D. Becker <ndbecker2@gmail.com>
600c74
      Orion Poplawski <orion@cora.nwra.com>
600c74
      Peter Robinson <pbrobinson@fedoraproject.org>
600c74
      Petr Viktorin <pviktori@redhat.com>
600c74
      Robert Kuska <rkuska@redhat.com>
600c74
      Scott Talbert <swt@techie.net>
600c74
      serge-sans-paille <sguelton@redhat.com>
600c74
      Thomas Spura <thomas.spura@gmail.com>
600c74
      Tomáš Hrnčiar <thrnciar@redhat.com>
600c74
      Toshio くらとみ <toshio@fedoraproject.org>