Compare commits
No commits in common. "rawhide" and "f33" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
/*.tar.gz
|
||||
/cysignals-*.tar.gz
|
||||
|
14
README.md
14
README.md
@ -1,14 +0,0 @@
|
||||
# python-cysignals
|
||||
|
||||
When writing [Cython](http://cython.org/) code, special care must be taken to
|
||||
ensure that the code can be interrupted with `CTRL-C`. Since Cython optimizes
|
||||
for speed, Cython normally does not check for interrupts. For example, code
|
||||
like the following cannot be interrupted in Cython:
|
||||
|
||||
```
|
||||
while True:
|
||||
pass
|
||||
```
|
||||
|
||||
The [cysignals](https://github.com/sagemath/cysignals) package provides
|
||||
mechanisms to handle interrupts (and other signals and errors) in Cython code.
|
@ -1,11 +1,11 @@
|
||||
diff -up src/scripts/cysignals-CSI.orig src/scripts/cysignals-CSI
|
||||
--- src/scripts/cysignals-CSI.orig 2022-03-03 10:58:08.469357325 -0700
|
||||
+++ src/scripts/cysignals-CSI 2022-03-03 10:59:35.932408021 -0700
|
||||
@@ -57,6 +57,7 @@ def gdb_commands(pid, color):
|
||||
cmds = b''
|
||||
cmds += b'set prompt (cysignals-gdb-prompt)\n'
|
||||
cmds += b'set verbose off\n'
|
||||
+ cmds += b'set auto-load safe-path /\n'
|
||||
cmds += b'attach %d\n' % pid
|
||||
cmds += b'python\n'
|
||||
cmds += b'print("\\n")\n'
|
||||
--- src/scripts/cysignals-CSI.orig 2018-04-17 06:09:44.000000000 -0600
|
||||
+++ src/scripts/cysignals-CSI 2018-05-18 13:06:09.309487709 -0600
|
||||
@@ -69,6 +69,7 @@ def gdb_commands(pid, color):
|
||||
cmds = b('')
|
||||
cmds += b('set prompt (cysignals-gdb-prompt)\n')
|
||||
cmds += b('set verbose off\n')
|
||||
+ cmds += b('set auto-load safe-path /\n')
|
||||
cmds += b('attach {0}\n'.format(pid))
|
||||
cmds += b('python\n')
|
||||
cmds += b('print("\\n")\n')
|
||||
|
8
python-cysignals.rpmlintrc
Normal file
8
python-cysignals.rpmlintrc
Normal file
@ -0,0 +1,8 @@
|
||||
# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON
|
||||
# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors
|
||||
|
||||
# No man page: user should not invoke the script directly
|
||||
addFilter(r'W: no-manual-page-for-binary cysignals-CSI')
|
||||
|
||||
# Documentation is in the -doc subpackage
|
||||
addFilter(r'python3-cysignals-devel\.[^:]+: W: no-documentation')
|
@ -3,19 +3,15 @@
|
||||
# Python files are installed into nonstandard locations
|
||||
%global _python_bytecompile_extra 0
|
||||
|
||||
# Install documentation in the main package directory
|
||||
%global _docdir_fmt %{name}
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 1.11.2
|
||||
Release: 4%{?dist}
|
||||
Version: 1.10.2
|
||||
Release: 10%{?dist}
|
||||
Summary: Interrupt and signal handling for Cython
|
||||
License: LGPL-3.0-or-later
|
||||
URL: https://github.com/sagemath/cysignals
|
||||
Source0: %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
|
||||
License: LGPLv3+
|
||||
URL: https://github.com/sagemath/%{modname}
|
||||
Source0: https://github.com/sagemath/%{modname}/releases/download/%{version}/%{modname}-%{version}.tar.gz
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libtool
|
||||
BuildRequires: make
|
||||
BuildRequires: pari-devel
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1445411#c2
|
||||
@ -50,26 +46,24 @@ See http://cysignals.readthedocs.org/ for the full documentation.}
|
||||
%package -n python3-%{modname}
|
||||
Summary: %{summary}
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: %{py3_dist cython}
|
||||
BuildRequires: %{py3_dist pip}
|
||||
BuildRequires: %{py3_dist setuptools}
|
||||
BuildRequires: %{py3_dist wheel}
|
||||
BuildRequires: python3-docs
|
||||
BuildRequires: python3dist(cython)
|
||||
BuildRequires: python3dist(setuptools)
|
||||
|
||||
%description -n python3-%{modname} %{_description}
|
||||
|
||||
%package -n python3-%{modname}-devel
|
||||
Summary: %{summary} headers files
|
||||
Requires: python3-%{modname}%{?_isa} = %{version}-%{release}
|
||||
Requires: python3-%{modname}
|
||||
Requires: pari-devel
|
||||
|
||||
%description -n python3-%{modname}-devel %{_description}
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
BuildRequires: python3-docs
|
||||
BuildRequires: %{py3_dist sphinx}
|
||||
BuildRequires: python3dist(sphinx)
|
||||
Requires: python3-%{modname}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation and examples for %{name}.
|
||||
|
||||
@ -77,7 +71,7 @@ Documentation and examples for %{name}.
|
||||
%autosetup -p0 -n %{modname}-%{version}
|
||||
|
||||
# Use local objects.inv for intersphinx
|
||||
sed -i "s|'https://docs\.python\.org/3', None|'https://docs.python.org/3', '%{_docdir}/python3-docs/html/objects.inv'|" docs/source/conf.py
|
||||
sed -i "s|'https://docs\.python\.org/2\.7', None|'https://docs.python.org/3', '%{_docdir}/python3-docs/html/objects.inv'|" docs/source/conf.py
|
||||
|
||||
# Build for python 3
|
||||
sed -i 's/language_level=2/language_level=3/' setup.py
|
||||
@ -85,22 +79,20 @@ sed -i 's/language_level=2/language_level=3/' setup.py
|
||||
# The doctest timeout is sometimes too short for 32-bit builders
|
||||
sed -i 's/600/2400/' rundoctests.py
|
||||
|
||||
# Upstream does not generate the configure script
|
||||
autoreconf -fi .
|
||||
|
||||
%build
|
||||
%configure
|
||||
%pyproject_wheel
|
||||
%py3_build
|
||||
|
||||
# Build the documentation
|
||||
export PYTHONPATH=%{pyproject_build_lib}
|
||||
export PYTHONPATH=$PWD/$(ls -1d build/lib.linux*%{python3_version})
|
||||
make -C docs html
|
||||
rst2html --no-datestamp README.rst README.html
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files cysignals
|
||||
rm docs/build/html/.buildinfo
|
||||
%py3_install
|
||||
mkdir -p %{buildroot}%{_docdir}/%{name}
|
||||
cp -farp docs/build/html %{buildroot}%{_docdir}/%{name}
|
||||
rm %{buildroot}%{_docdir}/%{name}/html/.buildinfo
|
||||
|
||||
%check
|
||||
PATH=%{buildroot}%{_bindir}:$PATH
|
||||
@ -108,10 +100,13 @@ PYTHONPATH=%{buildroot}%{python3_sitearch}
|
||||
export PATH PYTHONPATH
|
||||
%{python3} rundoctests.py src/cysignals/*.pyx
|
||||
|
||||
%files -n python3-%{modname} -f %{pyproject_files}
|
||||
%files -n python3-%{modname}
|
||||
%license LICENSE
|
||||
%doc README.html
|
||||
%{_bindir}/%{modname}-CSI
|
||||
%{_datadir}/%{modname}/
|
||||
%{python3_sitearch}/%{modname}
|
||||
%{python3_sitearch}/%{modname}-*.egg-info
|
||||
%exclude %{python3_sitearch}/%{modname}/*.h
|
||||
%exclude %{python3_sitearch}/%{modname}/*.pxd
|
||||
%exclude %{python3_sitearch}/%{modname}/*.pxi
|
||||
@ -119,41 +114,13 @@ export PATH PYTHONPATH
|
||||
%files -n python3-%{modname}-devel
|
||||
%{python3_sitearch}/%{modname}/*.h
|
||||
%{python3_sitearch}/%{modname}/*.pxd
|
||||
%{python3_sitearch}/%{modname}/*.pxi
|
||||
|
||||
%files doc
|
||||
%doc docs/build/html
|
||||
%dir %{_docdir}/%{name}
|
||||
%{_docdir}/%{name}/html
|
||||
|
||||
%changelog
|
||||
* Tue Sep 27 2022 Jerry James <loganjerry@gmail.com> - 1.11.2-4
|
||||
- Rebuild for pari 2.15.0
|
||||
- Convert License tag to SPDX
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.11.2-2
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Thu Mar 17 2022 Jerry James <loganjerry@gmail.com> - 1.11.2-1
|
||||
- Version 1.11.2
|
||||
- Drop upstreamed -minsigstksz patch
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.3-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Thu Jun 17 2021 Jerry James <loganjerry@gmail.com> - 1.10.3-1
|
||||
- Version 1.10.3
|
||||
- Add -minsigstksz patch to fix FTBFS (bz 1935643)
|
||||
|
||||
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.10.2-12
|
||||
- Rebuilt for Python 3.10
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Nov 9 2020 Jerry James <loganjerry@gmail.com> - 1.10.2-10
|
||||
- Rebuild for pari 2.13.0
|
||||
- Add pari-devel R to -devel subpackage
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (cysignals-1.11.2.tar.gz) = 9beed298e1e9bdbea1254b621a33bc2f95892f4e6f4d1c3ba13a825b2c1a83b0f36f214428a956a0d58b4e97d3eaa31a839ceb404c0ac19a64aa69751736556b
|
||||
SHA512 (cysignals-1.10.2.tar.gz) = e76b1c2a479c21c4502a9836770a772dd6ead427799fc1dfcf7fba17008240d40bbf2ad3ce65f1ba4db550c802d60a9844182b5a4ebd30180edf797bb68d15c0
|
||||
|
Loading…
Reference in New Issue
Block a user