Accepting request 184852 from home:frispete:python
- generate documentation in separate -doc file - enable tests (run tests on source tree) OBS-URL: https://build.opensuse.org/request/show/184852 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.exceptions?expand=0&rev=3
This commit is contained in:
parent
1f4c868454
commit
b781aa51b8
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jul 29 14:04:41 UTC 2013 - hpj@urpla.net
|
||||||
|
|
||||||
|
- generate documentation in separate -doc file
|
||||||
|
- enable tests (run tests on source tree)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 15 14:01:12 UTC 2013 - speilicke@suse.com
|
Fri Mar 15 14:01:12 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
@ -13,22 +13,27 @@
|
|||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: python-zope.exceptions
|
Name: python-zope.exceptions
|
||||||
Version: 4.0.6
|
Version: 4.0.6
|
||||||
Release: 0
|
Release: 0
|
||||||
License: ZPL-2.1
|
|
||||||
Summary: Zope Exceptions
|
Summary: Zope Exceptions
|
||||||
Url: http://cheeseshop.python.org/pypi/zope.exceptions
|
License: ZPL-2.1
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
Url: http://cheeseshop.python.org/pypi/zope.exceptions
|
||||||
Source: http://pypi.python.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.zip
|
Source: http://pypi.python.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.zip
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-distribute
|
BuildRequires: python-distribute
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
|
# Documentation requirements:
|
||||||
|
BuildRequires: python-Sphinx
|
||||||
|
BuildRequires: python-repoze.sphinx.autointerface
|
||||||
# Test requirements:
|
# Test requirements:
|
||||||
#BuildRequires: python-zope.interface
|
BuildRequires: python-six
|
||||||
#BuildRequires: python-zope.testrunner
|
BuildRequires: python-zope.interface
|
||||||
|
BuildRequires: python-zope.testrunner
|
||||||
Requires: python-zope.interface
|
Requires: python-zope.interface
|
||||||
Requires: python-zope.testrunner
|
Requires: python-zope.testrunner
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -42,22 +47,37 @@ BuildArch: noarch
|
|||||||
This package contains exception interfaces and implementations which are so
|
This package contains exception interfaces and implementations which are so
|
||||||
general purpose that they don't belong in Zope application-specific packages.
|
general purpose that they don't belong in Zope application-specific packages.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
Summary: Zope Exceptions
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description doc
|
||||||
|
This package contains documentation files for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n zope.exceptions-%{version}
|
%setup -q -n zope.exceptions-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
PYTHONPATH=$(pwd)/build/lib 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}
|
||||||
|
|
||||||
#NOTE(saschpe): Tests are self-referential, i.e. move to sperarate spec file:
|
#NOTE(saschpe): Tests are self-referential, i.e. move to sperarate spec file
|
||||||
#%%check
|
#NOTE(frispete): run tests against source in order to avoid the need for an
|
||||||
#python setup.py test
|
# external test package
|
||||||
|
%check
|
||||||
|
PYTHONPATH=$(pwd)/src python setup.py test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYRIGHT.txt LICENSE.txt README.rst
|
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc build/sphinx/html/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user