From 1b3f0d6b7fb162a409a59d0450686e2de074dffc7096164b19b641af038a56f7 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 17 Jun 2013 12:55:00 +0000 Subject: [PATCH 1/4] Python3 moved to devel:languages:python3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.interface?expand=0&rev=14 --- python-zope.interface.spec | 2 +- python3-zope.interface.changes | 5 --- python3-zope.interface.spec | 58 ---------------------------------- 3 files changed, 1 insertion(+), 64 deletions(-) delete mode 100644 python3-zope.interface.changes delete mode 100644 python3-zope.interface.spec diff --git a/python-zope.interface.spec b/python-zope.interface.spec index dcf1118..47179ac 100644 --- a/python-zope.interface.spec +++ b/python-zope.interface.spec @@ -25,9 +25,9 @@ License: ZPL-2.1 Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: fdupes BuildRequires: python-devel BuildRequires: python-setuptools -BuildRequires: fdupes Provides: python-zopeinterface = %{version} Obsoletes: python-zopeinterface < %{version} Provides: python-zope-interface = %{version} diff --git a/python3-zope.interface.changes b/python3-zope.interface.changes deleted file mode 100644 index b0c29c5..0000000 --- a/python3-zope.interface.changes +++ /dev/null @@ -1,5 +0,0 @@ -------------------------------------------------------------------- -Mon Jan 14 13:53:23 UTC 2013 - p.drouand@gmail.com - -- Initial python3 support - diff --git a/python3-zope.interface.spec b/python3-zope.interface.spec deleted file mode 100644 index 1bc7f05..0000000 --- a/python3-zope.interface.spec +++ /dev/null @@ -1,58 +0,0 @@ -# -# spec file for package python3-zope.interface -# -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - - -Name: python3-zope.interface -Version: 4.0.3 -Release: 0 -Url: http://pypi.python.org/pypi/zope.interface -Summary: Interfaces for Python -License: ZPL-2.1 -Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: fdupes -BuildRequires: python3 -BuildRequires: python3-devel -BuildRequires: python3-distribute - -%description -This package is intended to be independently reusable in any Python -project. It is maintained by the Zope Toolkit project. - -This package provides an implementation of object interfaces for Python. -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. - -%prep -%setup -q -n zope.interface-%{version} - -%build -python3 setup.py build - -%install -python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} -# Remove duplicate files -%fdupes -s %{buildroot} - -%files -%defattr(-,root,root,-) -%doc COPYRIGHT.txt CHANGES.txt LICENSE.txt README.txt -%{python3_sitearch}/* - -%changelog From ff4c4cc3309eb2d284b39007b57540db200a093a62aabce6c22f88b6758a52cd Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Mon, 29 Jul 2013 13:37:45 +0000 Subject: [PATCH 2/4] 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 --- python-zope.interface.changes | 12 ++++++++++++ python-zope.interface.spec | 29 +++++++++++++++++++++++++++-- zope.interface-4.0.3.tar.gz | 3 --- zope.interface-4.0.5.tar.gz | 3 +++ 4 files changed, 42 insertions(+), 5 deletions(-) delete mode 100644 zope.interface-4.0.3.tar.gz create mode 100644 zope.interface-4.0.5.tar.gz 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 From 87d87c0850673b5b6f677292bf8a759ae115d4c9ad41a3c216c6658675bb51ca Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 1 Aug 2013 07:16:29 +0000 Subject: [PATCH 3/4] - Ship upstream tarbal (zipfile) and fix Source URL OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.interface?expand=0&rev=16 --- python-zope.interface.changes | 5 +++++ python-zope.interface.spec | 2 +- zope.interface-4.0.5.tar.gz | 3 --- zope.interface-4.0.5.zip | 3 +++ 4 files changed, 9 insertions(+), 4 deletions(-) delete mode 100644 zope.interface-4.0.5.tar.gz create mode 100644 zope.interface-4.0.5.zip diff --git a/python-zope.interface.changes b/python-zope.interface.changes index 3c2f8ec..c8e30dc 100644 --- a/python-zope.interface.changes +++ b/python-zope.interface.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 1 07:19:44 UTC 2013 - speilicke@suse.com + +- Ship upstream tarbal (zipfile) and fix Source URL + ------------------------------------------------------------------- Mon Jul 29 11:17:31 UTC 2013 - hpj@urpla.net diff --git a/python-zope.interface.spec b/python-zope.interface.spec index 7614056..838d6e5 100644 --- a/python-zope.interface.spec +++ b/python-zope.interface.spec @@ -23,7 +23,7 @@ Url: http://pypi.python.org/pypi/zope.interface Summary: Interfaces for Python License: ZPL-2.1 Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz +Source: https://pypi.python.org/packages/source/z/zope.interface/zope.interface-%{version}.zip BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: python-devel diff --git a/zope.interface-4.0.5.tar.gz b/zope.interface-4.0.5.tar.gz deleted file mode 100644 index 6c58b9d..0000000 --- a/zope.interface-4.0.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:edc0f5cb7b7d7287282e978280fbe96cc175971571d1e09c519010c72bb927f6 -size 142515 diff --git a/zope.interface-4.0.5.zip b/zope.interface-4.0.5.zip new file mode 100644 index 0000000..6d6fe63 --- /dev/null +++ b/zope.interface-4.0.5.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a7c84716bbd9981915b64a81d8a3f076a5934a8c8df4224655469b3564940cc +size 173379 From da91d4c632342503287928378299877bf48a3149ad3f92ed4b416e7f6d77f5ed Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Thu, 1 Aug 2013 11:14:54 +0000 Subject: [PATCH 4/4] Accepting request 185385 from home:frispete:python - add unzip to BuildRequires OBS-URL: https://build.opensuse.org/request/show/185385 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.interface?expand=0&rev=17 --- python-zope.interface.changes | 5 +++++ python-zope.interface.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/python-zope.interface.changes b/python-zope.interface.changes index c8e30dc..7321f70 100644 --- a/python-zope.interface.changes +++ b/python-zope.interface.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 1 08:37:20 UTC 2013 - hpj@urpla.net + +- add unzip to BuildRequires + ------------------------------------------------------------------- Thu Aug 1 07:19:44 UTC 2013 - speilicke@suse.com diff --git a/python-zope.interface.spec b/python-zope.interface.spec index 838d6e5..1f495ad 100644 --- a/python-zope.interface.spec +++ b/python-zope.interface.spec @@ -28,6 +28,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: python-devel BuildRequires: python-setuptools +BuildRequires: unzip # Documentation requirements: BuildRequires: python-Sphinx BuildRequires: python-repoze.sphinx.autointerface