14
0

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
This commit is contained in:
Sascha Peilicke
2013-07-30 10:20:40 +00:00
committed by Git OBS Bridge
parent 78ef19c5d1
commit 4cf79c6476
2 changed files with 22 additions and 4 deletions

View File

@@ -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

View File

@@ -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