[packages/python-sympy] - rel 6; fix doc building

arekm arekm at pld-linux.org
Wed Sep 16 13:02:45 CEST 2015


commit 1202e344510cc08b97043d99451ea572cc1877c5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Sep 16 12:52:34 2015 +0200

    - rel 6; fix doc building

 python-sympy.spec |  4 +++-
 sympy-doc.patch   | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+), 1 deletion(-)
---
diff --git a/python-sympy.spec b/python-sympy.spec
index e3374f4..df9a44e 100644
--- a/python-sympy.spec
+++ b/python-sympy.spec
@@ -7,7 +7,7 @@
 Summary:	A Python library for symbolic mathematics
 Name:		python-sympy
 Version:	0.7.4
-Release:	5
+Release:	6
 License:	BSD
 Group:		Libraries/Python
 Source0:	https://github.com/sympy/sympy/releases/download/sympy-%{version}/sympy-%{version}.tar.gz
@@ -15,6 +15,7 @@ Source0:	https://github.com/sympy/sympy/releases/download/sympy-%{version}/sympy
 # Upstream tried to graft in another project as a private copy; we rip
 # it out (rhbz# 551576):
 Patch0:		strip-internal-mpmath.patch
+Patch1:		sympy-doc.patch
 URL:		http://sympy.org/
 BuildRequires:	gettext
 BuildRequires:	graphviz
@@ -69,6 +70,7 @@ HTML documentation for sympy.
 %prep
 %setup -q -n sympy-%{version}
 %patch0
+%patch1 -p1
 %{__rm} -rf sympy/mpmath doc/src/modules/mpmath
 
 %build
diff --git a/sympy-doc.patch b/sympy-doc.patch
new file mode 100644
index 0000000..272a268
--- /dev/null
+++ b/sympy-doc.patch
@@ -0,0 +1,69 @@
+From 9cc6ab1da7f11d401f941ff81b7d657f5bb61a39 Mon Sep 17 00:00:00 2001
+From: Aaditya M Nair <aadityanair6494 at gmail.com>
+Date: Tue, 14 Apr 2015 16:30:01 +0530
+Subject: [PATCH] Doc creation now compatible with sphinx 1.3.1. Fixes
+ sympy/sympy#9273.
+
+New version of sphinx renamed the `default` theme to `classic` theme.
+Corrected by defining all variables inside the .css file.
+---
+ doc/src/_static/default.css_t | 17 +++++++++++++++++
+ doc/src/conf.py               | 17 +----------------
+ 2 files changed, 18 insertions(+), 16 deletions(-)
+
+diff --git a/doc/src/_static/default.css_t b/doc/src/_static/default.css_t
+index 6165d8b..c2d8489 100644
+--- a/doc/src/_static/default.css_t
++++ b/doc/src/_static/default.css_t
+@@ -13,6 +13,23 @@
+ 
+ /* -- page layout ----------------------------------------------------------- */
+ 
++{%  set theme_collapsiblesidebar = True %}
++{%  set theme_relbarbgcolor = '#2f441e'  %}
++{%  set theme_sidebarbgcolor = '#3b5526'  %}
++{%  set theme_sidebarbtncolor = '#4F663C'  %}
++{%  set theme_sidebarlinkcolor = '#81B953'  %}
++{%  set theme_linkcolor = '#29A329'  %}
++{%  set theme_visitedlinkcolor = '#307748'  %}
++{%  set theme_headtextcolor = '#2f441e'  %}
++{%  set theme_footerbgcolor = '#293b1b'  %}
++{%  set theme_headlinkcolor = '#AAAAAA'  %}
++{%  set theme_sidebartextcolor = '#DDDDDD'  %}
++{%  set theme_footertextcolor = '#DDDDDD'  %}
++{%  set theme_relbartextcolor = '#DDDDDD'  %}
++{%  set theme_relbarlinkcolor = '#81B953'  %}
++{%  set theme_bgcolor = '#FFFFFF'  %}
++
++
+ body {
+     font-family: {{ theme_bodyfont }};
+     font-size: 100%;
+diff --git a/doc/src/conf.py b/doc/src/conf.py
+index 2c1d302..97837e3 100644
+--- a/doc/src/conf.py
++++ b/doc/src/conf.py
+@@ -96,22 +96,7 @@
+ html_logo = '_static/sympylogo.png'
+ html_favicon = '../_build/logo/sympy-notailtext-favicon.ico'
+ # See http://sphinx-doc.org/theming.html#builtin-themes.
+-html_theme_options = {
+-    'collapsiblesidebar': True,
+-    'relbarbgcolor': '#2f441e',
+-    'sidebarbgcolor': '#3b5526',
+-    'sidebarbtncolor': '#4F663C',
+-    'sidebarlinkcolor': '#81B953',
+-    'linkcolor': '#29A329',
+-    'visitedlinkcolor': '#307748',
+-    'headtextcolor': '#2f441e',
+-    'footerbgcolor': '#293b1b',
+-    'headlinkcolor': '#AAAAAA',
+-    'sidebartextcolor': '#DDDDDD',
+-    'footertextcolor': '#DDDDDD',
+-    'relbartextcolor': '#DDDDDD',
+-    'relbarlinkcolor': '#81B953',
+-}
++
+ 
+ # If true, SmartyPants will be used to convert quotes and dashes to
+ # typographically correct entities.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sympy.git/commitdiff/1202e344510cc08b97043d99451ea572cc1877c5



More information about the pld-cvs-commit mailing list