diff --git a/python-feedparser.spec b/python-feedparser.spec index ec338ab..ce30131 100644 --- a/python-feedparser.spec +++ b/python-feedparser.spec @@ -8,7 +8,7 @@ Name: python-feedparser Version: 5.1.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Parse RSS and Atom feeds in Python Group: Development/Languages @@ -66,6 +66,16 @@ Atom 0.3, Atom 1.0, and CDF feeds. It also parses several popular extension modules, including Dublin Core and Apple's iTunes extensions. %endif +%package doc +BuildRequires: python-sphinx +BuildArch: noarch +Summary: Documentation for the Python feedparser + +%description doc +This documentation describes the behavior of Universal Feed Parser %{version}. + +The documentation is also included in source form (Sphinx ReST). + %prep %setup -q -n %{srcname}-%{version} @@ -82,6 +92,11 @@ find -type f -exec chmod 0644 {} ';' %build %{__python} setup.py build + +# build documentation +rm -rf __tmp_docs ; mkdir __tmp_docs +sphinx-build -b html -d __tmp_docs/ docs/ __tmp_docs/html/ + %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build @@ -128,8 +143,17 @@ rm -rf %{buildroot} %{python3_sitelib}/* %endif +%files doc +%doc LICENSE __tmp_docs/html/ +# the original Sphinx ReST tree +%doc docs %changelog +* Sun May 26 2013 Michael Schwendt - 5.1.3-3 +- BR python-sphinx and build pregenerated HTML documentation to be + included in a python-feedparser-doc package together with the sources + for the documentation + * Sat Mar 9 2013 Michael Schwendt - 5.1.3-2 - Add BuildRequires/Requires python-chardet because if it's installed as a dependency of other Python module packages, it would be imported