forked from pool/python-zope.schema
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:
committed by
Git OBS Bridge
parent
78ef19c5d1
commit
4cf79c6476
@@ -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
|
Wed Mar 20 10:50:22 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
|||||||
@@ -19,14 +19,14 @@
|
|||||||
Name: python-zope.schema
|
Name: python-zope.schema
|
||||||
Version: 4.3.2
|
Version: 4.3.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Zopeinterface extension for defining data schemas
|
Summary: Zope interface extension for defining data schemas
|
||||||
License: ZPL-2.1
|
License: ZPL-2.1
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://pypi.python.org/pypi/zope.schema
|
Url: http://pypi.python.org/pypi/zope.schema
|
||||||
Source: http://pypi.python.org/packages/source/z/zope.schema/zope.schema-%{version}.zip
|
Source: http://pypi.python.org/packages/source/z/zope.schema/zope.schema-%{version}.zip
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
# Documentation requirementst
|
# Documentation requirements:
|
||||||
BuildRequires: python-Sphinx
|
BuildRequires: python-Sphinx
|
||||||
# Test requirements:
|
# Test requirements:
|
||||||
BuildRequires: python-zope.event
|
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
|
specify characteristics such as its value being read-only or not
|
||||||
required.
|
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
|
%prep
|
||||||
%setup -q -n zope.schema-%{version}
|
%setup -q -n zope.schema-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py 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
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
@@ -68,7 +77,11 @@ python setup.py test
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYRIGHT.txt LICENSE.txt README.rst
|
%doc COPYRIGHT.txt LICENSE.txt CHANGES.rst README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc build/sphinx/html/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user