[bcfg2/el6] * Sun Jan 08 2012 Fabian Affolter <mail at fabian-affolter.ch> - 1.2.0-2 - Doc subpackage added

Fabian Affolter fab at fedoraproject.org
Sun Jan 8 13:04:33 UTC 2012


commit 22d691baa5f8cbfdbbec17dfd0a55a7b654e0e72
Author: Fabian Affolter <mail at fabian-affolter.ch>
Date:   Sun Jan 8 14:04:21 2012 +0100

    * Sun Jan 08 2012 Fabian Affolter <mail at fabian-affolter.ch> - 1.2.0-2
    - Doc subpackage added

 bcfg2.spec |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/bcfg2.spec b/bcfg2.spec
index 6a31e2a..957a1a6 100644
--- a/bcfg2.spec
+++ b/bcfg2.spec
@@ -4,7 +4,7 @@
 
 Name:             bcfg2
 Version:          1.2.0
-Release:          1%{?dist}
+Release:          2%{?dist}
 Summary:          A configuration management system
 
 Group:            Applications/System
@@ -71,6 +71,16 @@ Requires:	  python-ssl
 %description server
 A configuration management server
 
+%package doc
+Summary:          Documentation for Bcfg2
+Group:            System
+
+BuildRequires:    python-sphinx
+BuildRequires:    python-docutils
+
+%description doc
+Documentation for Bcfg2.
+
 %prep
 %setup0 -q -n %{name}-%{version}
 
@@ -95,6 +105,7 @@ done
 
 %build
 %{__python} -c 'import setuptools; execfile("setup.py")' build
+%{__python} -c 'import setuptools; execfile("setup.py")' build_sphinx
 
 %install
 rm -rf %{buildroot}
@@ -124,6 +135,8 @@ touch %{buildroot}%{_sysconfdir}/bcfg2.cert
 touch %{buildroot}%{_sysconfdir}/bcfg2.conf
 touch %{buildroot}%{_sysconfdir}/bcfg2.key
 
+mv build/sphinx/html/* %{buildroot}%{_defaultdocdir}/bcfg2-doc-%{version}
+
 %clean
 rm -rf %{buildroot}
 
@@ -201,7 +214,14 @@ fi
 %{_sbindir}/bcfg2-yum-helper
 %dir %{_var}/lib/bcfg2
 
+%files doc
+%defattr(-,root,root,-)
+%doc %{_defaultdocdir}/bcfg2-doc-%{version}%{?_pre:pre%{_pre}}
+
 %changelog
+* Sun Jan 08 2012 Fabian Affolter <mail at fabian-affolter.ch> - 1.2.0-2
+- Doc subpackage added
+
 * Sat Jan 07 2012 Fabian Affolter <mail at fabian-affolter.ch> - 1.2.0-1
 - New man page and tools added
 - Updated to new upstream version 1.2.0


More information about the scm-commits mailing list