|
|
|
@ -1,280 +1,78 @@
|
|
|
|
|
# Disable tests on RHEL9 as to not pull in the test dependencies
|
|
|
|
|
# Specify --with tests to run the tests e.g. on EPEL
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
%global srcname Cython
|
|
|
|
|
%global upname cython
|
|
|
|
|
|
|
|
|
|
# This bcond allows to ship a non-compiled version
|
|
|
|
|
# Slower, but sometimes necessary with alpha Python versions
|
|
|
|
|
%bcond_without cython_compile
|
|
|
|
|
# https://github.com/cython/cython/issues/1982
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
Name: Cython
|
|
|
|
|
Version: 0.29.22
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Version: 0.28.1
|
|
|
|
|
Release: 3%{?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: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
Source: https://github.com/cython/cython/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: python3-numpy
|
|
|
|
|
BuildRequires: python3-jedi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with cython_compile}
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
%global python3_site %{python3_sitearch}
|
|
|
|
|
%else
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%global python3_site %{python3_sitelib}
|
|
|
|
|
%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.}
|
|
|
|
|
%global _description \
|
|
|
|
|
This is a development version of Pyrex, a language\
|
|
|
|
|
for writing Python extension modules.
|
|
|
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-Cython
|
|
|
|
|
%package -n python3-%{srcname}
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
Provides: Cython = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Provides: Cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Provides: cython = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
Provides: cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
|
%py_provides python3-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(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}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: python3-coverage
|
|
|
|
|
BuildRequires: python3-numpy
|
|
|
|
|
BuildRequires: python3-jedi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description -n emacs-cython-mode
|
|
|
|
|
cython-mode is an Emacs major mode for editing Cython source files.
|
|
|
|
|
%description -n python3-%{srcname} %{_description}
|
|
|
|
|
|
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n cython-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%autosetup -n %{upname}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build -- %{!?with_cython_compile:--no-cython-compile}
|
|
|
|
|
|
|
|
|
|
# emacs-cython-mode build
|
|
|
|
|
echo ";;
|
|
|
|
|
(require 'cython-mode)" > cython-mode-init.el
|
|
|
|
|
cp -p Tools/cython-mode.el .
|
|
|
|
|
%{_emacs_bytecompile} *.el
|
|
|
|
|
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install -- %{!?with_cython_compile:--no-cython-compile}
|
|
|
|
|
%py3_install
|
|
|
|
|
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
|
|
|
|
|
|
|
|
|
# emacs-cython-mode install
|
|
|
|
|
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}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
%{__python3} runtests.py -vv
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-Cython
|
|
|
|
|
%files -n python3-%{srcname}
|
|
|
|
|
%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*
|
|
|
|
|
|
|
|
|
|
%{_bindir}/cygdb
|
|
|
|
|
%{python3_sitearch}/%{srcname}-*.egg-info/
|
|
|
|
|
%{python3_sitearch}/%{srcname}/
|
|
|
|
|
%{python3_sitearch}/pyximport/
|
|
|
|
|
%{python3_sitearch}/%{upname}.py
|
|
|
|
|
%{python3_sitearch}/__pycache__/%{upname}.*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Feb 16 2022 Tomas Orsava <torsava@redhat.com> - 0.29.22-7
|
|
|
|
|
- Add gating configuration and a simple smoke test
|
|
|
|
|
- Related: rhbz#1950291
|
|
|
|
|
|
|
|
|
|
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 0.29.22-6
|
|
|
|
|
- Add automatically generated Obsoletes tag with the python39- prefix
|
|
|
|
|
for smoother upgrade from RHEL8
|
|
|
|
|
- Related: rhbz#1990421
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com>
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 0.29.22-3
|
|
|
|
|
- Disable tests on RHEL9 as to not pull in the test dependencies
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
* Tue Jul 31 2018 Petr Viktorin <pviktori@redhat.com> - 0.28.1-3
|
|
|
|
|
- Remove the Python 2 subpackage
|
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1591686
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
- Update to 0.29.14 (#1768034)
|
|
|
|
|
- Python 2 subpackage has been removed
|
|
|
|
|
|
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.13-5
|
|
|
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
|
|
|
|
|
|
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.13-4
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.13-3
|
|
|
|
|
- Bootstrap for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Thu Aug 01 2019 Gwyn Ciesla <gwync@protonmail.com> 0.29.13-2
|
|
|
|
|
- Rebuild with new numpy.
|
|
|
|
|
|
|
|
|
|
* Sat Jul 27 11:58:51 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29.13-1
|
|
|
|
|
- Update to 0.29.13
|
|
|
|
|
|
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.12-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 22 2019 Petr Viktorin <pviktori@redhat.com> - 0.29.12-2
|
|
|
|
|
- Remove non-essential Python 2 test dependencies
|
|
|
|
|
|
|
|
|
|
* Thu Jul 11 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.12-1
|
|
|
|
|
- Update to 0.29.12 (#1727580)
|
|
|
|
|
|
|
|
|
|
* Mon Jul 01 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.11-1
|
|
|
|
|
- Update to 0.29.11 (#1725361)
|
|
|
|
|
|
|
|
|
|
* Sun Jun 02 2019 Charalampos Stratakis <cstratak@redhat.com> - 0.29.10-1
|
|
|
|
|
- Update to 0.29.10 (#1716146)
|
|
|
|
|
|
|
|
|
|
* Thu May 30 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.9-1
|
|
|
|
|
- Update to 0.29.9 (#1714365)
|
|
|
|
|
|
|
|
|
|
* Mon May 13 07:10:35 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29.7-1
|
|
|
|
|
- Update to 0.29.7
|
|
|
|
|
|
|
|
|
|
* Wed Feb 27 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.6-1
|
|
|
|
|
- Update to 0.29.6 (#1683661)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 08 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.5-1
|
|
|
|
|
- Update to 0.29.5 (#1667643)
|
|
|
|
|
|
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.3-1
|
|
|
|
|
- Update to 0.29.3 (#1667643)
|
|
|
|
|
|
|
|
|
|
* Tue Jan 08 2019 Alex Cobb <alex.cobb@smart.mit.edu> - 0.29.1-2
|
|
|
|
|
- Added emacs-cython-mode subpackage
|
|
|
|
|
|
|
|
|
|
* Mon Dec 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29.1-1
|
|
|
|
|
- Update to 0.29.1
|
|
|
|
|
|
|
|
|
|
* Mon Dec 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29-1
|
|
|
|
|
- Update to 0.29
|
|
|
|
|
|
|
|
|
|
* Wed Oct 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29~rc2-1
|
|
|
|
|
- Update to 0.29~rc2
|
|
|
|
|
|
|
|
|
|
* Sat Aug 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.28.5-1
|
|
|
|
|
- Update to 0.28.5
|
|
|
|
|
|
|
|
|
|
* Sun Aug 05 2018 Miro Hrončok <mhroncok@redhat.com> - 0.28.4-3
|
|
|
|
|
- Only have one /usr/bin/cython
|
|
|
|
|
|
|
|
|
|
* Sun Jul 15 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.28.4-1
|
|
|
|
|
- Update to 0.28.4
|
|
|
|
|
|
|
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.28.1-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 0.28.1-2
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
* Mon Jun 25 2018 Lumír Balhar <lbalhar@redhat.com> - 0.28.1-2
|
|
|
|
|
- Allow build with Python 2
|
|
|
|
|
|
|
|
|
|
* Mon Mar 19 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.28.1-1
|
|
|
|
|
- Update to 0.28.1
|
|
|
|
@ -532,3 +330,4 @@ cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir
|
|
|
|
|
|
|
|
|
|
* Tue Feb 26 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.12-1
|
|
|
|
|
- Initial version
|
|
|
|
|
|
|
|
|
|