From bedd13ad31f23223fba9166d7bc33d719568ca44a07b013d2165aa3a8df1714e Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Wed, 17 Dec 2014 13:10:23 +0000 Subject: [PATCH] - set fixed doc build date, lower sphinx requirement (for older openSUSE) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=171 --- python-doc.changes | 1 + python-doc.spec | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/python-doc.changes b/python-doc.changes index 370e369..90fec7e 100644 --- a/python-doc.changes +++ b/python-doc.changes @@ -3,6 +3,7 @@ Fri Dec 12 17:11:51 UTC 2014 - jmatejek@suse.com - update to 2.7.9 - drop HTML doc tarball, build HTML documentation from source +- set fixed doc build date, lower sphinx requirement (for older openSUSE) ------------------------------------------------------------------- Tue Sep 30 15:32:07 UTC 2014 - jmatejek@suse.com diff --git a/python-doc.spec b/python-doc.spec index 8682b55..8924ad6 100644 --- a/python-doc.spec +++ b/python-doc.spec @@ -101,7 +101,15 @@ sed -i 's/^version_required/dnl version_required/' configure.ac # COMMON-PREP-END %build +TODAY_DATE=`date -r %{S:0} "+%B %d, %Y"` +# TODO use not date of tarball but date of latest patch + pushd Doc +sed -i "s/^today = .*/today = '$TODAY_DATE'/" conf.py +%if 0%{?suse_version} < 1320 +# lower sphinx version requirement, docs seem to work fine with 1.1 +sed -i "s/^needs_sphinx = .*/needs_sphinx = '1.1'/" conf.py +%endif make html popd