version 2.1.fb12-2

Add -doc subpackage

Signed-off-by: Andy Grover <agrover@redhat.com>
This commit is contained in:
Andy Grover 2012-03-19 14:31:25 -07:00
parent e4220a08dc
commit 4a40bda9e6

View File

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