Compare commits
10 Commits
1c3444e22e
...
fe05ef1471
Author | SHA1 | Date |
---|---|---|
David Abdurachmanov | fe05ef1471 | |
Miro Hrončok | 8319632a82 | |
Miro Hrončok | 14926296e2 | |
Miro Hrončok | 87851c9fe5 | |
Miro Hrončok | 1f32e41a7e | |
Miro Hrončok | d2e6364600 | |
Tomáš Hrnčiar | 47185aeaea | |
Petr Viktorin | c6b945e9de | |
Miro Hrončok | 5bbbb81a09 | |
Python Maint | 4a30dd7e93 |
|
@ -54,3 +54,11 @@ Cython-0.12.1.tar.gz
|
|||
/Cython-0.29.32.tar.gz
|
||||
/Cython-0.29.33.tar.gz
|
||||
/Cython-0.29.34.tar.gz
|
||||
/Cython-0.29.35.tar.gz
|
||||
/Cython-3.0.0a11.tar.gz
|
||||
/Cython-3.0.0b1.tar.gz
|
||||
/Cython-3.0.0b2.tar.gz
|
||||
/Cython-3.0.0b3.tar.gz
|
||||
/Cython-3.0.0rc2.tar.gz
|
||||
/Cython-3.0.0.tar.gz
|
||||
/Cython-3.0.2.tar.gz
|
||||
|
|
90
Cython.spec
90
Cython.spec
|
@ -1,39 +1,33 @@
|
|||
%global _without_tests 1
|
||||
%bcond tests 1
|
||||
%bcond tests 0
|
||||
|
||||
# This bcond allows to ship a non-compiled version
|
||||
# Slower, but sometimes necessary with alpha Python versions
|
||||
%bcond cython_compile 1
|
||||
|
||||
# We don't ship emacs-cython-mode in EL.
|
||||
%bcond emacs %{undefined rhel}
|
||||
|
||||
Name: Cython
|
||||
Version: 0.29.34
|
||||
Release: 3%{?dist}
|
||||
Version: 3.0.2
|
||||
Release: 1.0.riscv64%{?dist}
|
||||
Summary: Language for writing Python extension modules
|
||||
|
||||
License: Apache-2.0
|
||||
URL: http://www.cython.org
|
||||
Source: https://github.com/cython/cython/archive/%{version}/Cython-%{version}.tar.gz
|
||||
|
||||
# Wrap the docstring of cython-default-compile-format to 80 characters
|
||||
# Upstream PR: https://github.com/cython/emacs-cython-mode/pull/1
|
||||
# Fixes https://bugzilla.redhat.com/2155090
|
||||
Patch: emacs-docstring-wrap.patch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
|
||||
%if %{with tests}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: python3-numpy
|
||||
BuildRequires: python3-pythran
|
||||
%if %{undefined rhel}
|
||||
# We don't want to pull in ipython to RHEL just to run more tests.
|
||||
BuildRequires: python3-ipython
|
||||
# The tests requiring jedi are optional and skipped when jedi is not installed.
|
||||
# Note that the jedi tests were forcefully disabled a long time ago,
|
||||
# in https://github.com/cython/cython/issues/1845 far, far away.
|
||||
# We keep the dependency here so we don't forget to re-add it once the balance is restored.
|
||||
# We don't want to pull in jedi to RHEL just to potentially run more tests.
|
||||
%if %{undefined rhel}
|
||||
BuildRequires: python3-jedi
|
||||
%endif
|
||||
%endif
|
||||
|
@ -63,13 +57,14 @@ libraries, and for fast C modules that speed up the execution of Python code.}
|
|||
%description %{_description}
|
||||
|
||||
|
||||
%package -n python3-Cython
|
||||
%package -n python3-cython
|
||||
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
|
||||
%py_provides python3-Cython
|
||||
Obsoletes: python3-Cython < 3~~
|
||||
|
||||
# A small templating library is bundled in Cython/Tempita
|
||||
# Upstream version 0.5.2 is available from https://pypi.org/project/Tempita
|
||||
|
@ -77,21 +72,7 @@ Provides: cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|||
# Upstream homepage is inaccessible.
|
||||
Provides: bundled(python3dist(tempita))
|
||||
|
||||
%description -n python3-Cython %{_description}
|
||||
|
||||
|
||||
%if %{with emacs}
|
||||
%package -n emacs-cython-mode
|
||||
Summary: A major mode for editing Cython source files in Emacs
|
||||
BuildArch: noarch
|
||||
BuildRequires: emacs
|
||||
%{?_emacs_version:
|
||||
Requires: emacs(bin) >= %{_emacs_version}
|
||||
}
|
||||
|
||||
%description -n emacs-cython-mode
|
||||
cython-mode is an Emacs major mode for editing Cython source files.
|
||||
%endif
|
||||
%description -n python3-cython %{_description}
|
||||
|
||||
|
||||
%prep
|
||||
|
@ -101,30 +82,16 @@ cython-mode is an Emacs major mode for editing Cython source files.
|
|||
%build
|
||||
%py3_build -- %{!?with_cython_compile:--no-cython-compile}
|
||||
|
||||
%if %{with emacs}
|
||||
# emacs-cython-mode build
|
||||
echo ";;
|
||||
(require 'cython-mode)" > cython-mode-init.el
|
||||
cp -p Tools/cython-mode.el .
|
||||
%{_emacs_bytecompile} *.el
|
||||
%endif
|
||||
|
||||
|
||||
%install
|
||||
%py3_install -- %{!?with_cython_compile:--no-cython-compile}
|
||||
|
||||
%if %{with emacs}
|
||||
# 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}/
|
||||
%endif
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
# run.pstats_profile_test* fails on Python 3.12
|
||||
%{python3} runtests.py -vv --no-pyregr %{?_smp_mflags} \
|
||||
--exclude 'run.pstats_profile_test*' \
|
||||
%ifarch %{ix86}
|
||||
--exclude run.parallel # https://github.com/cython/cython/issues/2807
|
||||
%endif
|
||||
|
@ -132,7 +99,7 @@ cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir
|
|||
%endif
|
||||
|
||||
|
||||
%files -n python3-Cython
|
||||
%files -n python3-cython
|
||||
%license LICENSE.txt
|
||||
%doc *.txt Demos Doc Tools
|
||||
%{_bindir}/cython
|
||||
|
@ -143,15 +110,30 @@ cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir
|
|||
%{python3_site}/pyximport/
|
||||
%pycached %{python3_site}/cython.py
|
||||
|
||||
%if %{with emacs}
|
||||
%files -n emacs-cython-mode
|
||||
%license LICENSE.txt
|
||||
%{_emacs_sitelispdir}/cython*.el*
|
||||
%{_emacs_sitestartdir}/cython*.el*
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Oct 21 2023 David Abdurachmanov <davidlt@rivosinc.com> - 3.0.2-1.0.riscv64
|
||||
- Bootstrap for Python 3.12 on riscv64
|
||||
|
||||
* Fri Sep 01 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-1
|
||||
- Update to 3.0.2
|
||||
- Fixes: rhbz#2235027
|
||||
|
||||
* Mon Jul 17 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-1
|
||||
- Update to 3.0.0
|
||||
- Rename python3-Cython to python3-cython
|
||||
|
||||
* Thu Jul 13 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.0.0~rc2-1
|
||||
- Update to 3.0.0rc2
|
||||
- The emacs-cython-mode package is no longer part of this project
|
||||
|
||||
* Fri Jun 30 2023 Petr Viktorin <pviktori@redhat.com> - 0.29.35-2
|
||||
- Compile-time Python 3.12 compatibility for CYTHON_TRACE support
|
||||
|
||||
* Sun Jun 18 2023 Miro Hrončok <mhroncok@redhat.com> - 0.29.35-1
|
||||
- Update to 0.29.35
|
||||
- Fixes: rhbz#2210064
|
||||
|
||||
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.29.34-3
|
||||
- Bootstrap for Python 3.12
|
||||
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
From 38339b8598b5cfaef324650368581f6967b024a0 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
||||
Date: Tue, 20 Dec 2022 01:08:58 +0100
|
||||
Subject: [PATCH] Wrap the docstring of cython-default-compile-format to 80
|
||||
characters
|
||||
|
||||
This should avoid a warning as reported in:
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=2155090
|
||||
---
|
||||
Tools/cython-mode.el | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Tools/cython-mode.el b/Tools/cython-mode.el
|
||||
index 2d9fbae..970a765 100644
|
||||
--- a/Tools/cython-mode.el
|
||||
+++ b/Tools/cython-mode.el
|
||||
@@ -108,7 +108,8 @@
|
||||
;;;###autoload
|
||||
(defcustom cython-default-compile-format "cython -a %s"
|
||||
"Format for the default command to compile a Cython file.
|
||||
-It will be passed to `format' with `buffer-file-name' as the only other argument."
|
||||
+It will be passed to `format' with `buffer-file-name'
|
||||
+as the only other argument."
|
||||
:group 'cython
|
||||
:type 'string)
|
||||
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
SHA512 (Cython-0.29.34.tar.gz) = 51679d1304d0f87dfb51e60c753f1ce60027f855a91cf130a5dcf84353884a7dcf09c01701945ae2f9173f8f095890c377d5faac28c2f01d7f764609c0130411
|
||||
SHA512 (Cython-3.0.2.tar.gz) = f55be138efdca6ca61bd39c6f2fab736244328a170a6f6c9bda87036e022c846930b209e9e9101fad889cb179d6e60034ba6f299f14b3056536d46235b438eb7
|
||||
|
|
Loading…
Reference in New Issue