Compare commits

...

3 Commits
rawhide ... f33

Author SHA1 Message Date
Jerry James 5df8a7b612 Version 1.7.1. 2020-12-12 20:18:44 -07:00
Jerry James e7b9e8609f Fix preview of PNG images (bz 1906363).
Add missing Recommends needed to preview images (bz 1906363).
2020-12-10 12:54:51 -07:00
Jerry James ba1f67aa81 Version 1.7. 2020-11-29 12:47:19 -07:00
3 changed files with 34 additions and 4 deletions

View File

@ -1 +1 @@
SHA512 (sympy-1.6.2.tar.gz) = e16a1d85aba438e4248bac48a163ea1827e2cee57c28f7670ed19cc69d4c08d6796d62f79d245e269d75765b8f7ff4f4ca2841f98534e136ceeb5d3f7a5d252a
SHA512 (sympy-1.7.1.tar.gz) = eb9387bb9c632203af650279f896427556725b7496c00d8dfe97b7476beedbbee5714659f7fb44b4fa986c9567cdcaefcc19401d63e1ca0e9a6c7317855440ea

13
sympy-png-decoder.patch Normal file
View File

@ -0,0 +1,13 @@
--- sympy-sympy-1.7/sympy/printing/preview.py.orig 2020-11-29 04:02:22.000000000 -0700
+++ sympy-sympy-1.7/sympy/printing/preview.py 2020-12-10 10:55:53.290413553 -0700
@@ -32,8 +32,8 @@ def _run_pyglet(fname, fmt):
from pyglet.window import key
if fmt == "png":
- from pyglet.image.codecs.png import PNGImageDecoder
- img = image.load(fname, decoder=PNGImageDecoder())
+ from pyglet.image.codecs.pil import PILImageDecoder
+ img = image.load(fname, decoder=PILImageDecoder())
else:
raise ValueError("pyglet preview works only for 'png' files.")

View File

@ -1,5 +1,5 @@
Name: sympy
Version: 1.6.2
Version: 1.7.1
Release: 1%{?dist}
Summary: A Python library for symbolic mathematics
License: BSD
@ -9,6 +9,8 @@ Source0: https://github.com/%{name}/%{name}/archive/%{name}-%{version}.ta
Patch0: %{name}-float.patch
# Default to python3 in the Cython backend
Patch1: %{name}-python3.patch
# Work around Fedora pyglet not including PNGImageDecoder
Patch2: %{name}-png-decoder.patch
BuildArch: noarch
@ -58,6 +60,12 @@ Requires: %{py3_dist gmpy2}
Requires: %{py3_dist matplotlib}
Requires: %{py3_dist pyglet}
Recommends: tex(latex)
Recommends: tex(amsfonts.sty)
Recommends: tex(amsmath.sty)
Recommends: tex(euler.sty)
Recommends: tex(eulervm.sty)
Recommends: tex(standalone.cls)
Recommends: %{py3_dist numexpr}
Recommends: %{py3_dist scipy}
Recommends: %{py3_dist theano}
@ -140,11 +148,10 @@ find examples/ -name '*.py[co]' -print -delete
# Do not run tests on 32-bit systems.
%global maxpyint %(python3 -c 'import sys;print("%x" % sys.maxsize)')
if [ "%{maxpyint}" != "7fffffff" ]; then
let "dnum = $RANDOM % 90 + 10"
# Split into many small chunks to reduce waiting in the end-game
jobs=%{?_smp_mflags}; jobs=${jobs#-j}; jobs=$((jobs * 3))
xvfb-run -a -n $dnum \
xvfb-run -d \
parallel %{?_smp_mflags} \
%{python3} bin/test -v --split {}/$jobs \
::: $(bash -c "echo {1..$jobs}")
@ -174,6 +181,16 @@ fi
%{_docdir}/%{name}-doc/html
%changelog
* Sat Dec 12 2020 Jerry James <loganjerry@gmail.com> - 1.7.1-1
- Version 1.7.1
* Thu Dec 10 2020 Jerry James <loganjerry@gmail.com> - 1.7-2
- Fix preview of PNG images (bz 1906363)
- Add missing Recommends needed to preview images (bz 1906363)
* Sat Nov 28 2020 Jerry James <loganjerry@gmail.com> - 1.7-1
- Version 1.7
* Mon Aug 10 2020 Jerry James <loganjerry@gmail.com> - 1.6.2-1
- Version 1.6.2