From 4a40bda9e69c64cf01c7afeba1a053dcd3dbf529 Mon Sep 17 00:00:00 2001 From: Andy Grover Date: Mon, 19 Mar 2012 14:31:25 -0700 Subject: [PATCH] version 2.1.fb12-2 Add -doc subpackage Signed-off-by: Andy Grover --- python-rtslib.spec | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 - 2.1.fb12-2 +- Add -doc package of epydoc-generated html docs + * Wed Feb 29 2012 Andy Grover - 2.1.fb12-1 - New upstream release