[python-rtslib] version 2.1.fb12-2

Andy Grover grover at fedoraproject.org
Mon Mar 19 21:31:36 UTC 2012


commit 4a40bda9e69c64cf01c7afeba1a053dcd3dbf529
Author: Andy Grover <agrover at redhat.com>
Date:   Mon Mar 19 14:31:25 2012 -0700

    version 2.1.fb12-2
    
    Add -doc subpackage
    
    Signed-off-by: Andy Grover <agrover at redhat.com>

 python-rtslib.spec |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/python-rtslib.spec b/python-rtslib.spec
index 1aa6892..17571b3 100644
--- a/python-rtslib.spec
+++ b/python-rtslib.spec
@@ -13,14 +13,26 @@ BuildArch:      noarch
 BuildRequires:  python-ipaddr python-ethtool python-configobj python-devel
 Requires:       python-ipaddr python-ethtool python-configobj
 
+%package doc
+Summary:	Documentation for python-rtslib
+Group:		Documentation
+Requires:	%{name} = %{version}-%{release}
+
+
 %description
 API for generic Linux SCSI kernel target.
 
+%description doc
+API documentation for rtslib, to configure the generic Linux SCSI
+kernel target.
+
 %prep
 %setup -q -n agrover-%{oname}-46e1918
 
 %build
 %{__python} setup.py build
+mkdir -p doc/html
+epydoc --no-sourcecode --html -n rtslib -o doc/html rtslib/*.py
 
 %install
 rm -rf %{buildroot}
@@ -38,7 +50,13 @@ rm -rf %{buildroot}
 /var/lib/target
 %doc COPYING README
 
+%files doc
+%doc doc/html
+
 %changelog
+* Wed Feb 29 2012 Andy Grover <agrover at redhat.com> - 2.1.fb12-2
+- Add -doc package of epydoc-generated html docs
+
 * Wed Feb 29 2012 Andy Grover <agrover at redhat.com> - 2.1.fb12-1
 - New upstream release
 


More information about the scm-commits mailing list