diff --git a/0.29.24.tar.gz b/0.29.24.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..118f3f30d1643889bef41fafa5bee764d5884784 Binary files /dev/null and b/0.29.24.tar.gz differ diff --git a/Cython.spec b/Cython.spec new file mode 100644 index 0000000000000000000000000000000000000000..25442275f904e978544cef6be023cbc8cf6ae74a --- /dev/null +++ b/Cython.spec @@ -0,0 +1,91 @@ +Name: Cython +Version: 0.29.24 +Release: 1 +Summary: Language for writing Python extension modules +License: ASL 2.0 +URL: https://github.com/cython/cython +Source: https://github.com/cython/cython/archive/refs/tags/0.29.24.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +#BuildRequires: gcc-c++ +#BuildRequires: python3-numpy +#BuildRequires: python3-jedi + +#BuildRequires: gcc +%global python3_site %{python3_sitearch} + +BuildArch: noarch +%global python3_site %{python3_sitelib} + +%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. +} +%description %{_description} + +%package -n python3-Cython +Summary: %{summary} +Provides: Cython = %{?epoch:%{epoch}:}0.29.24-1 +Provides: Cython%{?_isa} = %{?epoch:%{epoch}:}0.29.24-1 +Provides: cython = %{?epoch:%{epoch}:}0.29.24-1 +Provides: cython%{?_isa} = %{?epoch:%{epoch}:}0.29.24-1 +Provides: bundled(python3dist(tempita)) + +%description -n python3-Cython %{_description} + +%package -n emacs-cython-mode +Summary: A major mode for editing Cython source files in Emacs +BuildArch: noarch +BuildRequires: emacs +Requires: emacs(bin) >= %{_emacs_version} + +%description -n emacs-cython-mode +cython-mode is an Emacs major mode for editing Cython source files. + +%prep +%autosetup -n cython-0.29.24 -p1 + +%build +%py3_build -- %{!?with_cython_compile:--no-cython-compile} +echo ";; +(require 'cython-mode)" > cython-mode-init.el +cp -p Tools/cython-mode.el . +%{_emacs_bytecompile} *.el + +%install +%py3_install -- %{!?with_cython_compile:--no-cython-compile} +rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests +mkdir -p %{buildroot}%{_emacs_sitelispdir}/ +cp -p cython-mode.el cython-mode.elc %{buildroot}%{_emacs_sitelispdir}/ +mkdir -p %{buildroot}%{_emacs_sitestartdir}/ +cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir}/ + +#%check +#%{python3} runtests.py -vv --no-pyregr %{?_smp_mflags} + +%files -n python3-Cython +%license LICENSE.txt +%doc *.txt Demos Doc Tools +%{_bindir}/cython +%{_bindir}/cygdb +%{_bindir}/cythonize +%{python3_site}/Cython-*.egg-info/ +%{python3_site}/Cython/ +%{python3_site}/pyximport/ +%pycached %{python3_site}/cython.py + +%files -n emacs-cython-mode +%license LICENSE.txt +%{_emacs_sitelispdir}/cython*.el* +%{_emacs_sitestartdir}/cython*.el* + +%changelog +* Wed Jul 21 2021 Scott Talbert - 0.29.24-1 +- Update to 0.29.24 to fix FTBFS with Python 3.10