From 49767573c9ae2eb331458d04614ce9ee2028ecfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 13 Jan 2017 21:34:11 -0500 Subject: [PATCH] Use python3 in texmacs-sympy --- sympy.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sympy.spec b/sympy.spec index 37d43bb..2e0c17a 100644 --- a/sympy.spec +++ b/sympy.spec @@ -68,7 +68,8 @@ Python and does not require any external libraries. %package texmacs Summary: TeXmacs integration for sympy -Requires: %{name} = %{version}-%{release}, TeXmacs +Requires: %{name} = %{version}-%{release} +Requires: texmacs %description texmacs This package contains a TeXmacs plugin for sympy. @@ -76,6 +77,7 @@ This package contains a TeXmacs plugin for sympy. %package examples Summary: Sympy examples Requires: %{name} = %{version}-%{release} +# once rich dependencies are allowed, add "or python3-sympy = %{version}-%{release}" %description examples This package contains example input for sympy. @@ -161,7 +163,7 @@ rm -f %{buildroot}%{_bindir}/{,doc}test ## Install the TeXmacs integration pushd %{sympydir} -sed 's/python/python2/' data/TeXmacs/bin/tm_sympy > \ +sed 's/python/python3/' data/TeXmacs/bin/tm_sympy > \ %{buildroot}%{_bindir}/tm_sympy chmod a+x %{buildroot}%{_bindir}/tm_sympy touch -r data/TeXmacs/bin/tm_sympy %{buildroot}%{_bindir}/tm_sympy @@ -173,7 +175,7 @@ chmod a-x %{buildroot}%{_datadir}/TeXmacs/plugins/sympy/progs/*.scm chmod a-x examples/all.py # Convert the README to HTML -python2 %{_bindir}/rst2html --no-datestamp README.rst README.html +rst2html --no-datestamp README.rst README.html # Install the HTML documentation mkdir -p %{buildroot}%{_docdir}/%{name}-doc @@ -182,6 +184,9 @@ rm -f %{buildroot}%{_docdir}/%{name}-doc/html/.buildinfo rm -fr %{buildroot}%{_docdir}/%{name}-doc/i18n popd +# Try to get rid of pyc files, which aren't useful for documentation +find %{sympydir}/examples/ -name '*.py[co]' -print -delete + %check let "dnum = $RANDOM % 90 + 10" # Split into many small chunks to reduce waiting in the end-game @@ -234,6 +239,7 @@ popd %changelog * Fri Jan 13 2017 Zbigniew Jędrzejewski-Szmek - 1.0-4 - Run tests in parallel +- Use python3 in texmacs-sympy (#1360766) * Thu Dec 22 2016 Miro Hrončok - 1.0-4 - Rebuild for Python 3.6