]> git.pld-linux.org Git - packages/python-sympy.git/blobdiff - python-sympy.spec
rebuild with tests and docs
[packages/python-sympy.git] / python-sympy.spec
index 31d06d48c0a0e35ebb2ca2b2e511833f22007235..4376889f320ac6abd10fdf611bc5d1b2cdcc83d7 100644 (file)
@@ -2,24 +2,20 @@
 # Conditional build:
 %bcond_without doc     # HTML and PDF documentation
 %bcond_without tests   # unit tests
-%bcond_without python2 # CPython 2.x module
+%bcond_with    python2 # CPython 2.x module
 %bcond_without python3 # CPython 3.x module
 
 Summary:       Python 2 library for symbolic mathematics
 Summary(pl.UTF-8):     Biblioteka Pythona 2 do matematyki symbolicznej
 Name:          python-sympy
-Version:       1.4
-Release:       2
+Version:       1.7.1
+Release:       3
 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
-Patch0:                %{name}-nodisplay.patch
-Patch1:                0001-Exception-changed-after-numpy-1.17.patch
-Patch2:                0001-Fix-more-compatibility-issues-with-Python3.8.patch
-Patch3:                0001-Modify-literal-comparisons-as-per-python3.8-guidelines.patch
-Patch4:                sympy-is.patch
+#Source0Download: https://pypi.org/simple/sympy/
+Source0:       https://files.pythonhosted.org/packages/source/s/sympy/sympy-%{version}.tar.gz
+# Source0-md5: f5973bcbe33fdc86203ca397cc901994
+Patch0:                docs-build.patch
 URL:           https://www.sympy.org/
 BuildRequires: gettext
 BuildRequires: graphviz
@@ -35,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
@@ -44,10 +40,14 @@ BuildRequires:      python3-numpy
 %endif
 %endif
 %if %{with doc}
+BuildRequires: fonts-TTF-DejaVu
 BuildRequires: pydoc3
 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
@@ -55,7 +55,6 @@ 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)
@@ -77,8 +76,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
@@ -107,10 +105,6 @@ Dokumentacja do SymPy w formacie HTML.
 %prep
 %setup -q -n sympy-%{version}
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
 
 %build
 %if %{with python2}
@@ -161,29 +155,29 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS LICENSE README.rst
+%doc AUTHORS LICENSE README.md
 %attr(755,root,root) %{_bindir}/isympy
 %{py_sitescriptdir}/isympy.py[co]
 %{py_sitescriptdir}/sympy
 %{py_sitescriptdir}/sympy-%{version}-*.egg-info
-%{_mandir}/man1/isympy.1*
 %{_examplesdir}/%{name}-%{version}
 %endif
 
 %if %{with python3}
 %files -n python3-sympy
 %defattr(644,root,root,755)
-%doc AUTHORS LICENSE README.rst
+%doc AUTHORS LICENSE README.md
 %attr(755,root,root) %{_bindir}/isympy3
 %{py3_sitescriptdir}/isympy.py
 %{py3_sitescriptdir}/__pycache__/isympy.cpython-*.py[co]
 %{py3_sitescriptdir}/sympy
 %{py3_sitescriptdir}/sympy-%{version}-*.egg-info
+%{_mandir}/man1/isympy.1*
 %{_examplesdir}/python3-sympy-%{version}
 %endif
 
 %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.056195 seconds and 4 git commands to generate.