[waf] Use python-sphinx10 where available. Turn off standard brp-python-bytecompile only when building the

Thomas Moschny thm at fedoraproject.org
Sat Apr 9 14:26:45 UTC 2011


commit 58a9c2acd525e047d39dee4007d507d9c1eaab6b
Author: Thomas Moschny <thm at fedoraproject.org>
Date:   Sat Apr 9 16:25:43 2011 +0200

    Use python-sphinx10 where available.
    Turn off standard brp-python-bytecompile only when building the
    python3 subpackage.

 waf.spec |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/waf.spec b/waf.spec
index 53beef0..3b97594 100644
--- a/waf.spec
+++ b/waf.spec
@@ -1,17 +1,16 @@
 %if (! 0%{?rhel}) || 0%{?rhel} > 6
 %global with_python3 1
+# Turn off the brp-python-bytecompile script
+%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
 %endif
 
 # Enable building without html docs (e.g. in case no recent sphinx is
 # available)
 %global with_docs 1
 
-# Turn off the brp-python-bytecompile script
-%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
-
 Name:           waf
 Version:        1.6.3
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A Python-based build system
 Group:          Development/Tools
 # The entire source code is BSD apart from pproc.py (taken from Python 2.5)
@@ -31,7 +30,11 @@ BuildRequires:  python-devel
 BuildRequires:  python3-devel
 %endif # with_python3
 %if 0%{?with_docs}
+%if 0%{?fedora > 13}
 BuildRequires:  python-sphinx
+%else
+BuildRequires:  python-sphinx10
+%endif
 BuildRequires:  graphviz
 BuildRequires:  ImageMagick
 %endif # with_docs
@@ -70,6 +73,9 @@ done
 %if 0%{?with_docs}
 # build html docs
 pushd docs/sphinx
+%if ! 0%{?fedora > 13}
+export SPHINX_BUILD=sphinx-1.0-build
+%endif
 ../../waf configure build
 popd
 %endif # with_docs
@@ -109,9 +115,9 @@ find demos utils -type f -exec %{__chmod} 0644 {} \;
 # remove hidden file
 rm -f docs/sphinx/build/html/.buildinfo
 
+%if 0%{?with_python3}
 # do byte compilation
 %py_byte_compile %{__python} %{buildroot}%{_datadir}/waf
-%if 0%{?with_python3}
 %py_byte_compile %{__python3} %{buildroot}%{_datadir}/waf3
 %endif # with_python3
 
@@ -134,6 +140,11 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Sat Apr  9 2011 Thomas Moschny <thomas.moschny at gmx.de> - 1.6.3-2
+- Use python-sphinx10 where available.
+- Turn off standard brp-python-bytecompile only when building the
+  python3 subpackage.
+
 * Sat Feb 19 2011 Thomas Moschny <thomas.moschny at gmx.de> - 1.6.3-1
 - Update to 1.6.3.
 


More information about the scm-commits mailing list