# HG changeset patch
# User Mads Kiilerich <m...@kiilerich.com>
# Date 1248524892 -7200
# Node ID 54f66e1bf4c216225f92fd042328819800d5e304
# Parent  f88e3edec0ab53ebbd892350a072a3f8c44da52e
rpm spec: Build and include html docs in rpm

diff --git a/contrib/tortoisehg.spec b/contrib/tortoisehg.spec
--- a/contrib/tortoisehg.spec
+++ b/contrib/tortoisehg.spec
@@ -11,7 +11,7 @@
 URL:           http://bitbucket.org/tortoisehg/stable/wiki/
 Source0:       tortoisehg-%{version}.tar.gz
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: python, python-devel, gettext
+BuildRequires: python, python-devel, gettext, python-sphinx
 Requires:      python >= 2.4, python-iniparse, mercurial >= 1.3, 
gnome-python2-gconf
 Requires:      gnome-python2-gtksourceview, pycairo, pygobject2, pygtk2 >= 2.10
 
@@ -45,6 +45,9 @@
 %build
 %{__python} setup.py build
 
+cd doc
+make html
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -57,7 +60,7 @@
 
 %files
 %defattr(-,root,root,-)
-%doc COPYING.txt ReleaseNotes.txt
+%doc COPYING.txt ReleaseNotes.txt doc/build/html/
 %{_bindir}/hgtk
 %{python_sitelib}/hggtk/
 %{python_sitelib}/thgutil/

------------------------------------------------------------------------------
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to