Use python3 in texmacs-sympy
This commit is contained in:
parent
a6942f1f3b
commit
49767573c9
12
sympy.spec
12
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 <zbyszek@in.waw.pl> - 1.0-4
|
||||
- Run tests in parallel
|
||||
- Use python3 in texmacs-sympy (#1360766)
|
||||
|
||||
* Thu Dec 22 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0-4
|
||||
- Rebuild for Python 3.6
|
||||
|
Loading…
Reference in New Issue
Block a user