- Enable building without html docs.

epel8
Thomas Moschny 14 years ago
parent a0444fbaec
commit c38965408c

@ -1,6 +1,10 @@
# Enable building without html docs (e.g. in case no recent sphinx is
# available)
%global with_docs 1
Name: waf Name: waf
Version: 1.6.2 Version: 1.6.2
Release: 1%{?dist} Release: 2%{?dist}
Summary: A Python-based build system Summary: A Python-based build system
Group: Development/Tools Group: Development/Tools
# The entire source code is BSD apart from pproc.py (taken from Python 2.5) # The entire source code is BSD apart from pproc.py (taken from Python 2.5)
@ -16,7 +20,9 @@ Patch0: waf-1.6.2-libdir.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch BuildArch: noarch
BuildRequires: python-devel BuildRequires: python-devel
%if 0%{?with_docs}
BuildRequires: python-sphinx BuildRequires: python-sphinx
%endif # with_docs
BuildRequires: graphviz BuildRequires: graphviz
BuildRequires: ImageMagick BuildRequires: ImageMagick
# Seems like automatic ABI dependency is not detected since the files are # Seems like automatic ABI dependency is not detected since the files are
@ -51,9 +57,12 @@ for f in waflib/extras/*.py ; do
done done
./waf-light --make-waf --strip --tools="$extras" ./waf-light --make-waf --strip --tools="$extras"
%if 0%{?with_docs}
# build html docs # build html docs
pushd docs/sphinx pushd docs/sphinx
../../waf configure build ../../waf configure build
popd
%endif # with_docs
%install %install
@ -87,12 +96,17 @@ rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README TODO ChangeLog demos %doc README TODO ChangeLog demos
%if 0%{?with_docs}
%doc docs/sphinx/build/html %doc docs/sphinx/build/html
%endif # with_docs
%{_bindir}/waf %{_bindir}/waf
%{_datadir}/waf %{_datadir}/waf
%changelog %changelog
* Tue Jan 18 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.6.2-2
- Enable building without html docs.
* Sat Jan 15 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.6.2-1 * Sat Jan 15 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.6.2-1
- Update to 1.6.2. - Update to 1.6.2.
- Generate and include html docs. - Generate and include html docs.

Loading…
Cancel
Save