]> git.pld-linux.org Git - packages/python-sympy.git/blobdiff - python-sympy.spec
- BR: texlive-fonts-other
[packages/python-sympy.git] / python-sympy.spec
index d5aec65c55f6191ef207fdc9c0eadf10216d4e47..cb6d2e4a7c15518bb69628388424e0e9b56cc9f0 100644 (file)
@@ -8,13 +8,13 @@
 Summary:       Python 2 library for symbolic mathematics
 Summary(pl.UTF-8):     Biblioteka Pythona 2 do matematyki symbolicznej
 Name:          python-sympy
-Version:       1.4
+Version:       1.5.1
 Release:       1
 License:       BSD
 Group:         Libraries/Python
-#Source0Download: https://github.com/sympy/sympy/releases
-Source0:       https://github.com/sympy/sympy/releases/download/sympy-%{version}/sympy-%{version}.tar.gz
-# Source0-md5: 478072d75b564c9356990e3027d464e6
+#Source0Download: https://pypi.org/simple/sympy/
+Source0:       https://files.pythonhosted.org/packages/source/s/sympy/sympy-%{version}.tar.gz
+# Source0-md5: b11b310c3e1642bf66e51038cb3c0021
 Patch0:                %{name}-nodisplay.patch
 URL:           https://www.sympy.org/
 BuildRequires: gettext
@@ -31,7 +31,7 @@ BuildRequires:        python-numpy
 %endif
 %endif
 %if %{with python3}
-BuildRequires: python3-devel >= 1:3.4
+BuildRequires: python3-devel >= 1:3.5
 BuildRequires: python3-setuptools
 %if %{with tests}
 BuildRequires: python3-devel-tools
@@ -41,14 +41,19 @@ BuildRequires:      python3-numpy
 %endif
 %if %{with doc}
 BuildRequires: pydoc3
-BuildRequires: sphinx-pdg
+BuildRequires: python3-matplotlib
+BuildRequires: python3-mpmath >= 0.19
+BuildRequires: python3-sphinx_math_dollar
+BuildRequires: sphinx-pdg-3
+# for cmex/fmex9.pfb
+BuildRequires: texlive-fonts-other
 BuildRequires: texlive-format-pdflatex
 BuildRequires: texlive-latex
+BuildRequires: texlive-latex-ams
 BuildRequires: texlive-latex-pgf
 %endif
 Requires:      python-matplotlib
 Requires:      python-modules >= 1:2.7
-Requires:      python-mpmath
 Requires:      python-pyglet
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -70,8 +75,7 @@ Summary:      Python 3 library for symbolic mathematics
 Summary(pl.UTF-8):     Biblioteka Pythona 3 do matematyki symbolicznej
 Group:         Libraries/Python
 Requires:      python3-matplotlib
-Requires:      python3-modules >= 1:3.4
-Requires:      python3-mpmath
+Requires:      python3-modules >= 1:3.5
 Requires:      python3-pyglet
 
 %description -n python3-sympy
@@ -111,8 +115,11 @@ Dokumentacja do SymPy w formacie HTML.
 %endif
 
 %if %{with doc}
+pydir=$(pwd)/build-3/lib
 cd doc
-%{__make} html
+PYTHONPATH=$pydir \
+%{__make} html \
+       SPHINXBUILD=sphinx-build-3
 %{__make} cheatsheet
 %endif
 
@@ -171,5 +178,5 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with doc}
 %files doc
 %defattr(644,root,root,755)
-%doc doc/_build/html/* doc/_build/cheatsheet/cheatsheet.pdf
+%doc doc/_build/html/{_images,_static,modules,pics,special_topics,tutorial,*.html,*.js} doc/_build/cheatsheet/cheatsheet.pdf
 %endif
This page took 0.081639 seconds and 4 git commands to generate.