From 4cf79c6476cdc15f68d05d8b65c235320da27f68f69a1d577d47c71c4b752884 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 30 Jul 2013 10:20:40 +0000 Subject: [PATCH] Accepting request 184892 from home:frispete:python - generate separate -doc package OBS-URL: https://build.opensuse.org/request/show/184892 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.schema?expand=0&rev=6 --- python-zope.schema.changes | 5 +++++ python-zope.schema.spec | 21 +++++++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) 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