Compare commits

...

No commits in common. "c8-stream-3.8" and "c9" have entirely different histories.

3 changed files with 158 additions and 52 deletions

View File

@ -1 +1 @@
db2286ea3b3a6060c4294f9c3df652c5b4f60fca SOURCES/Cython-0.29.14.tar.gz 6e1f2a315194526e5092e34b77622c117c14371c SOURCES/Cython-0.29.22.tar.gz

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/Cython-0.29.14.tar.gz SOURCES/Cython-0.29.22.tar.gz

View File

@ -1,63 +1,105 @@
%global srcname Cython # Disable tests on RHEL9 as to not pull in the test dependencies
%global upname cython # Specify --with tests to run the tests e.g. on EPEL
%bcond_with tests %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: Cython Name: Cython
Version: 0.29.14 Version: 0.29.22
%global upver %{version_no_tilde %{nil}} Release: 7%{?dist}
Release: 4%{?dist}
Summary: Language for writing Python extension modules Summary: Language for writing Python extension modules
License: ASL 2.0 License: ASL 2.0
URL: http://www.cython.org URL: http://www.cython.org
Source: https://github.com/cython/cython/archive/%{upver}/%{srcname}-%{version}.tar.gz Source: https://github.com/cython/cython/archive/%{version}/Cython-%{version}.tar.gz
# Exclude i686 arch. Due to a modularity issue it's being added to the BuildRequires: python3-devel
# x86_64 compose of CRB, but we don't want to ship it at all. BuildRequires: python3-setuptools
# See: https://projects.engineering.redhat.com/browse/RCM-72605
ExcludeArch: i686
BuildRequires: gcc
%if %{with tests} %if %{with tests}
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: python3-numpy
BuildRequires: python3-jedi
%endif %endif
%global _description \ %if %{with cython_compile}
This is a development version of Pyrex, a language\ BuildRequires: gcc
for writing Python extension modules. %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.}
%description %{_description} %description %{_description}
%package -n python%{python3_pkgversion}-%{srcname}
%package -n python3-Cython
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} Provides: Cython = %{?epoch:%{epoch}:}%{version}-%{release}
BuildRequires: python%{python3_pkgversion}-devel Provides: Cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
BuildRequires: python%{python3_pkgversion}-setuptools Provides: cython = %{?epoch:%{epoch}:}%{version}-%{release}
BuildRequires: python%{python3_pkgversion}-rpm-macros Provides: cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%if %{with tests} %py_provides python3-cython
BuildRequires: python%{python3_pkgversion}-coverage
BuildRequires: python%{python3_pkgversion}-numpy
BuildRequires: python%{python3_pkgversion}-jedi
%endif
%description -n python%{python3_pkgversion}-%{srcname} %{_description} # 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}
%description -n emacs-cython-mode
cython-mode is an Emacs major mode for editing Cython source files.
Python 3 version.
%prep %prep
%autosetup -n %{upname}-%{version} -p1 %autosetup -n cython-%{version} -p1
%build %build
%py3_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
%install %install
%py3_install %py3_install -- %{!?with_cython_compile:--no-cython-compile}
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
# Rename unversioned binaries
mv %{buildroot}%{_bindir}/cython{,-%{python3_version}} # emacs-cython-mode install
mv %{buildroot}%{_bindir}/cygdb{,-%{python3_version}} mkdir -p %{buildroot}%{_emacs_sitelispdir}/
mv %{buildroot}%{_bindir}/cythonize{,-%{python3_version}} 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} %if %{with tests}
%check %check
@ -68,28 +110,92 @@ mv %{buildroot}%{_bindir}/cythonize{,-%{python3_version}}
%endif %endif
%files -n python%{python3_pkgversion}-%{srcname}
%files -n python3-Cython
%license LICENSE.txt %license LICENSE.txt
%doc *.txt Demos Doc Tools %doc *.txt Demos Doc Tools
%{_bindir}/cython-%{python3_version} %{_bindir}/cython
%{_bindir}/cygdb-%{python3_version} %{_bindir}/cygdb
%{_bindir}/cythonize-%{python3_version} %{_bindir}/cythonize
%{python3_sitearch}/%{srcname}-*.egg-info/ %{python3_site}/Cython-*.egg-info/
%{python3_sitearch}/%{srcname}/ %{python3_site}/Cython/
%{python3_sitearch}/pyximport/ %{python3_site}/pyximport/
%{python3_sitearch}/%{upname}.py %pycached %{python3_site}/cython.py
%{python3_sitearch}/__pycache__/%{upname}.*
%files -n emacs-cython-mode
%license LICENSE.txt
%{_emacs_sitelispdir}/cython*.el*
%{_emacs_sitestartdir}/cython*.el*
%changelog %changelog
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 0.29.14-4 * Wed Feb 16 2022 Tomas Orsava <torsava@redhat.com> - 0.29.22-7
- Exclude unsupported i686 arch - Add gating configuration and a simple smoke test
- Related: rhbz#1950291
* Thu Nov 21 2019 Lumír Balhar <lbalhar@redhat.com> - 0.29.14-3 * Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 0.29.22-6
- Unversioned binaries renamed - Add automatically generated Obsoletes tag with the python39- prefix
for smoother upgrade from RHEL8
- Related: rhbz#1990421
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 0.29.14-2 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
- Adjusted for Python 3.8 module in RHEL 8 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
- without emacs plugin 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
* 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 * Mon Nov 04 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.14-1
- Update to 0.29.14 (#1768034) - Update to 0.29.14 (#1768034)