[packages/python-sympy] - disable werror for docs build

baggins baggins at pld-linux.org
Fri Mar 12 09:43:25 CET 2021


commit 8ccea6208d3f760ea947a0413a1ab4d1d7f93ea3
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Mar 12 09:42:57 2021 +0100

    - disable werror for docs build

 docs-build.patch  | 10 ++++++++++
 python-sympy.spec |  9 ++++++---
 2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/python-sympy.spec b/python-sympy.spec
index 6c9214c..504daab 100644
--- a/python-sympy.spec
+++ b/python-sympy.spec
@@ -15,6 +15,7 @@ Group:		Libraries/Python
 #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
@@ -39,6 +40,7 @@ BuildRequires:	python3-numpy
 %endif
 %endif
 %if %{with doc}
+BuildRequires:	fonts-TTF-DejaVu
 BuildRequires:	pydoc3
 BuildRequires:	python3-matplotlib
 BuildRequires:	python3-mpmath >= 0.19
@@ -102,6 +104,7 @@ Dokumentacja do SymPy w formacie HTML.
 
 %prep
 %setup -q -n sympy-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
@@ -152,24 +155,24 @@ 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
 
diff --git a/docs-build.patch b/docs-build.patch
new file mode 100644
index 0000000..6052705
--- /dev/null
+++ b/docs-build.patch
@@ -0,0 +1,10 @@
+--- sympy-1.7.1/doc/Makefile~	2020-11-18 01:03:10.000000000 +0100
++++ sympy-1.7.1/doc/Makefile	2021-03-12 09:34:45.978437636 +0100
+@@ -44,7 +44,6 @@
+ 	-rm -rf sphinx
+ 	-rm -f $(PDFFILES)
+ 
+-html: SPHINXOPTS += -W --keep-going
+ html: _build/logo/sympy-notailtext-favicon.ico
+ 	mkdir -p src/.static
+ 	mkdir -p _build/html
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sympy.git/commitdiff/8ccea6208d3f760ea947a0413a1ab4d1d7f93ea3



More information about the pld-cvs-commit mailing list