From 9917b5eb6822d49e2ceb45dbe2863e7779a2a09982b8871276db63be63c22e2b Mon Sep 17 00:00:00 2001 From: Hans-Peter Jansen Date: Sat, 8 Jul 2017 09:16:30 +0000 Subject: [PATCH] Accepting request 508918 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/508918 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.deprecation?expand=0&rev=10 --- python-zope.deprecation.changes | 9 +++++++ python-zope.deprecation.spec | 43 ++++++++++++++++++--------------- zope.deprecation-4.1.2.tar.gz | 3 --- zope.deprecation-4.2.0.tar.gz | 3 +++ 4 files changed, 35 insertions(+), 23 deletions(-) delete mode 100644 zope.deprecation-4.1.2.tar.gz create mode 100644 zope.deprecation-4.2.0.tar.gz diff --git a/python-zope.deprecation.changes b/python-zope.deprecation.changes index 1573cf7..fc2f677 100644 --- a/python-zope.deprecation.changes +++ b/python-zope.deprecation.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Jul 8 07:39:24 UTC 2017 - aloisio@gmx.com + +- Update to version 4.2.0 + * Drop support for Python 2.6 and 3.2. + * Add support for Python 3.5. + +- Converted to single-spec + ------------------------------------------------------------------- Fri May 15 11:39:49 UTC 2015 - benoit.monin@gmx.fr diff --git a/python-zope.deprecation.spec b/python-zope.deprecation.spec index 1d50d09..c06c422 100644 --- a/python-zope.deprecation.spec +++ b/python-zope.deprecation.spec @@ -1,7 +1,7 @@ # # spec file for package python-zope.deprecation # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,23 +17,23 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-zope.deprecation -Version: 4.1.2 +Version: 4.2.0 Release: 0 -Url: http://pypi.python.org/pypi/zope.deprecation Summary: Zope Deprecation Infrastructure License: ZPL-2.1 Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-setuptools -# Documentation requirements: -BuildRequires: python-Sphinx -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +Url: https://pypi.python.org/pypi/zope.deprecation +Source: https://files.pythonhosted.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +# SECTION documentation requirements +BuildRequires: %{python_module Sphinx} +# /SECTION +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch -%endif +%python_subpackages %description When we started working on Zope 3.1, we noticed that the hardest part of the @@ -42,33 +42,36 @@ deprecated modules, classes, functions, methods and properties. This package provides a simple function called 'deprecated(names, reason)' to deprecate the previously mentioned Python objects. -%package doc +%package -n %{name}-doc Summary: Zope 3 Deprecation Infrastructure Group: Development/Languages/Python Requires: %{name} = %{version} +Provides: %{python_module zope.deprecation-doc = %{version}} -%description doc +%description -n %{name}-doc This package contains documentation files for %{name}. %prep %setup -q -n zope.deprecation-%{version} +rm -rf zope.deprecation.egg-info %build -python setup.py build -python setup.py build_sphinx && rm build/sphinx/html/.buildinfo +%python_build +%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check -python setup.py -q test +%python_exec setup.py -q test -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst %python_sitelib/* -%files doc +%files -n %{name}-doc %defattr(-,root,root,-) %doc build/sphinx/html/ diff --git a/zope.deprecation-4.1.2.tar.gz b/zope.deprecation-4.1.2.tar.gz deleted file mode 100644 index 9d2b1b2..0000000 --- a/zope.deprecation-4.1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fed622b51ffc600c13cc5a5b6916b8514c115f34f7ea2730409f30c061eb0b78 -size 146327 diff --git a/zope.deprecation-4.2.0.tar.gz b/zope.deprecation-4.2.0.tar.gz new file mode 100644 index 0000000..5fda4e6 --- /dev/null +++ b/zope.deprecation-4.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff32c5bb5388b77b22c83ed1f1aa01cdbb076d9f2cfa2b825450ce9e2ecfd738 +size 223338