14
0

Accepting request 505397 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/505397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.interface?expand=0&rev=19
This commit is contained in:
2017-06-28 08:32:23 +00:00
committed by Git OBS Bridge
4 changed files with 65 additions and 41 deletions

View File

@@ -1,3 +1,35 @@
-------------------------------------------------------------------
Mon Jun 19 13:01:14 UTC 2017 - okurz@suse.com
- Cover building python3 packages as well
-------------------------------------------------------------------
Sat Jun 17 16:38:43 UTC 2017 - okurz@suse.com
- Update to 4.4.2
* Fix a regression storing zope.component.persistentregistry.PersistentRegistry instances. See issue 85.
* Fix a regression that could lead to the utility registration cache of Components getting out of sync. See issue 93.
- Update to 4.4.1
* Simplify the caching of utility-registration data. In addition to simplification, avoids spurious test failures when checking for leaks in tests with persistent registries. See pull 84.
* Raise ValueError when non-text names are passed to adapter registry methods: prevents corruption of lookup caches.
- Update to 4.4.0
* Avoid a warning from the C compiler. (https://github.com/zopefoundation/zope.interface/issues/71)
* Add support for Python 3.6.
- Update to 4.3.3
* Correct typos and ReST formatting errors in documentation.
* Add API documentation for the adapter registry.
* Ensure that the LICENSE.txt file is included in built wheels.
* Fix C optimizations broken on Py3k. See the Python bug at: http://bugs.python.org/issue15657 (https://github.com/zopefoundation/zope.interface/issues/60)
- Update to 4.3.2
* Fix equality testing of implementedBy objects and proxies. (https://github.com/zopefoundation/zope.interface/issues/55)
- Prevent duplicate doc package generation
- Cleanup duplicates in build tree
-------------------------------------------------------------------
Sat Mar 11 12:16:24 UTC 2017 - okurz@suse.com
- Convert package to singlespec
-------------------------------------------------------------------
Tue Nov 15 10:11:54 UTC 2016 - dmueller@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-zope.interface
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,35 +16,41 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-zope.interface
Version: 4.3.1
%global modname zope.interface
Version: 4.4.2
Release: 0
Url: http://pypi.python.org/pypi/zope.interface
Url: http://pypi.python.org/pypi/%{modname}
Summary: Interfaces for Python
License: ZPL-2.1
Group: Development/Languages/Python
Source: https://pypi.io/packages/source/z/zope.interface/zope.interface-%{version}.tar.gz
Source: https://pypi.io/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-setuptools
# Documentation requirements:
BuildRequires: python-Sphinx
#!BuildIgnore: python-zope.interface
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}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module zope.event}
BuildRequires: python-rpm-macros
%define oldpython python
%ifpython2
Provides: %{oldpython}-zopeinterface = %{version}
Obsoletes: %{oldpython}-zopeinterface < %{version}
Provides: %{oldpython}-zope-interface = %{version}
Obsoletes: %{oldpython}-zope-interface < %{version}
%endif
%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
%python_subpackages
%description
This package is intended to be independently reusable in any Python
project. It is maintained by the Zope Toolkit project.
@@ -54,37 +60,23 @@ 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}
%setup -q -n %{modname}-%{version}
%build
python setup.py build
PYTHONPATH=$(echo $(pwd)/build/lib.*) python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%python_build
%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
%python_install
%python_expand rm %{buildroot}%{$python_sitearch}/zope/interface/_zope_interface_coptimizations.c
%fdupes %{buildroot}%{_prefix}
%check
python setup.py -q test
%python_exec setup.py test
%files
%files %{python_files}
%defattr(-,root,root,-)
%doc COPYRIGHT.txt CHANGES.rst LICENSE.txt README.rst
%{python_sitearch}/*
%files doc
%defattr(-,root,root,-)
%doc build/sphinx/html/
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:320920cedb07666fd4022f6a0fcd4a44551133a8415c98eac0873b753bb5a70c
size 147262

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4e59e427200201f69ef82956ddf9e527891becf5b7cde8ec3ce39e1d0e262eb0
size 150150