Blame SPECS/python3.11-Cython.spec

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