forked from pool/python-zope.interface
Accepting request 184603 from home:frispete:python
- Updated to 4.0.5: * Fixed a bug where a decorated method caused false positive failures on verifyClass(). - Updated to 4.0.4: * Fixed a bug that was revealed by porting zope.traversing. During a loop, the loop body modified a weakref dict causing a RuntimeError error. - generate documentation in -doc package - enable tests OBS-URL: https://build.opensuse.org/request/show/184603 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.interface?expand=0&rev=15
This commit is contained in:
committed by
Git OBS Bridge
parent
1b3f0d6b7f
commit
ff4c4cc330
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: python-zope.interface
|
||||
Version: 4.0.3
|
||||
Version: 4.0.5
|
||||
Release: 0
|
||||
Url: http://pypi.python.org/pypi/zope.interface
|
||||
Summary: Interfaces for Python
|
||||
@@ -28,10 +28,18 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
# Documentation requirements:
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-repoze.sphinx.autointerface
|
||||
# Testing requirements:
|
||||
BuildRequires: python-coverage
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-zope.event
|
||||
Provides: python-zopeinterface = %{version}
|
||||
Obsoletes: python-zopeinterface < %{version}
|
||||
Provides: python-zope-interface = %{version}
|
||||
Obsoletes: python-zope-interface < %{version}
|
||||
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%endif
|
||||
@@ -45,20 +53,37 @@ Interfaces are a mechanism for labeling objects as conforming to a given
|
||||
API or contract. So, this package can be considered as implementation of
|
||||
the Design By Contract methodology support in Python.
|
||||
|
||||
%package doc
|
||||
Summary: Interfaces for Python
|
||||
Group: Development/Languages/Python
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n zope.interface-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
# Remove duplicate files
|
||||
%fdupes -s %{buildroot}
|
||||
rm %{buildroot}%python_sitearch/zope/interface/_zope_interface_coptimizations.c
|
||||
|
||||
%check
|
||||
python setup.py test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYRIGHT.txt CHANGES.txt LICENSE.txt README.txt
|
||||
%doc COPYRIGHT.txt CHANGES.rst LICENSE.txt README.rst
|
||||
%{python_sitearch}/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html/
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user