diff --git a/python-zope.schema.changes b/python-zope.schema.changes index 3b9e71a..95e7add 100644 --- a/python-zope.schema.changes +++ b/python-zope.schema.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 29 12:16:07 UTC 2013 - hpj@urpla.net + +- generate separate -doc package + ------------------------------------------------------------------- Wed Mar 20 10:50:22 UTC 2013 - speilicke@suse.com diff --git a/python-zope.schema.spec b/python-zope.schema.spec index 1e57492..c8b5260 100644 --- a/python-zope.schema.spec +++ b/python-zope.schema.spec @@ -19,14 +19,14 @@ Name: python-zope.schema Version: 4.3.2 Release: 0 -Summary: Zopeinterface extension for defining data schemas +Summary: Zope interface extension for defining data schemas License: ZPL-2.1 Group: Development/Languages/Python Url: http://pypi.python.org/pypi/zope.schema Source: http://pypi.python.org/packages/source/z/zope.schema/zope.schema-%{version}.zip BuildRequires: python-devel BuildRequires: unzip -# Documentation requirementst +# Documentation requirements: BuildRequires: python-Sphinx # Test requirements: BuildRequires: python-zope.event @@ -53,12 +53,21 @@ its value and provide a validation method. Besides you can optionally specify characteristics such as its value being read-only or not required. +%package doc +Summary: Zope interface extension for defining data schemas +Group: Development/Languages/Python +Requires: %{name} = %{version} + +%description doc +This package contains documentation files for %{name}. + %prep %setup -q -n zope.schema-%{version} %build python setup.py build -python setup.py build_sphinx # Generate HTML documentation +# Generate HTML documentation +python setup.py build_sphinx && rm build/sphinx/html/.buildinfo %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} @@ -68,7 +77,11 @@ python setup.py test %files %defattr(-,root,root,-) -%doc COPYRIGHT.txt LICENSE.txt README.rst +%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst %{python_sitelib}/* +%files doc +%defattr(-,root,root,-) +%doc build/sphinx/html/ + %changelog