14
0

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
This commit is contained in:
2017-07-08 09:16:30 +00:00
committed by Git OBS Bridge
parent c90ee71d51
commit 9917b5eb68
4 changed files with 35 additions and 23 deletions

View File

@@ -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 Fri May 15 11:39:49 UTC 2015 - benoit.monin@gmx.fr

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-zope.deprecation # 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. # Copyright (c) 2013 LISA GmbH, Bingen, Germany.
# #
# All modifications and additions to the file contributed by third parties # 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 Name: python-zope.deprecation
Version: 4.1.2 Version: 4.2.0
Release: 0 Release: 0
Url: http://pypi.python.org/pypi/zope.deprecation
Summary: Zope Deprecation Infrastructure Summary: Zope Deprecation Infrastructure
License: ZPL-2.1 License: ZPL-2.1
Group: Development/Languages/Python Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz Url: https://pypi.python.org/pypi/zope.deprecation
BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: https://files.pythonhosted.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz
BuildRequires: python-setuptools BuildRequires: %{python_module setuptools}
# Documentation requirements: # SECTION documentation requirements
BuildRequires: python-Sphinx BuildRequires: %{python_module Sphinx}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 # /SECTION
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} BuildRequires: fdupes
%else BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
%endif %python_subpackages
%description %description
When we started working on Zope 3.1, we noticed that the hardest part of the 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 provides a simple function called 'deprecated(names, reason)' to deprecate the
previously mentioned Python objects. previously mentioned Python objects.
%package doc %package -n %{name}-doc
Summary: Zope 3 Deprecation Infrastructure Summary: Zope 3 Deprecation Infrastructure
Group: Development/Languages/Python Group: Development/Languages/Python
Requires: %{name} = %{version} Requires: %{name} = %{version}
Provides: %{python_module zope.deprecation-doc = %{version}}
%description doc %description -n %{name}-doc
This package contains documentation files for %{name}. This package contains documentation files for %{name}.
%prep %prep
%setup -q -n zope.deprecation-%{version} %setup -q -n zope.deprecation-%{version}
rm -rf zope.deprecation.egg-info
%build %build
python setup.py build %python_build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo %__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check %check
python setup.py -q test %python_exec setup.py -q test
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst %doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
%python_sitelib/* %python_sitelib/*
%files doc %files -n %{name}-doc
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc build/sphinx/html/ %doc build/sphinx/html/

View File

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

View File

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