diff --git a/python-zope.interface.changes b/python-zope.interface.changes index fe34d25..3c2f8ec 100644 --- a/python-zope.interface.changes +++ b/python-zope.interface.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Mon Jul 29 11:17:31 UTC 2013 - hpj@urpla.net + +- 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 + ------------------------------------------------------------------- Mon Jan 14 13:53:10 UTC 2013 - p.drouand@gmail.com diff --git a/python-zope.interface.spec b/python-zope.interface.spec index 47179ac..7614056 100644 --- a/python-zope.interface.spec +++ b/python-zope.interface.spec @@ -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 diff --git a/zope.interface-4.0.3.tar.gz b/zope.interface-4.0.3.tar.gz deleted file mode 100644 index e869aef..0000000 --- a/zope.interface-4.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be6f0f8b897b8e0521441b923c3e2abc50d5ac2531a376d8d3a0bb69b3207bb9 -size 140124 diff --git a/zope.interface-4.0.5.tar.gz b/zope.interface-4.0.5.tar.gz new file mode 100644 index 0000000..6c58b9d --- /dev/null +++ b/zope.interface-4.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edc0f5cb7b7d7287282e978280fbe96cc175971571d1e09c519010c72bb927f6 +size 142515