Accepting request 510158 from home:alois:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/510158
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.configuration?expand=0&rev=5
This commit is contained in:
Hans-Peter Jansen 2017-07-13 21:57:19 +00:00 committed by Git OBS Bridge
parent a927cea673
commit 8f7d364f5b
8 changed files with 142 additions and 41 deletions

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>python-zope.configuration-doc</package>
</multibuild>

3
pre_checkin.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
cp python-zope.configuration.changes python-zope.configuration-doc.changes

View File

@ -0,0 +1,33 @@
-------------------------------------------------------------------
Thu Jul 13 20:54:36 UTC 2017 - aloisio@gmx.com
- Update to version 4.1.0
* Drop support for Python 2.6 and 3.2.
* Add support for Python 3.5 and 3.6.
* Fix the domain of MessageID fields to be a native string.
Previously on Python 3 they were bytes, which meant that they
couldnt be used to find translation utilities registered by
zope.i18n. See issue 17.
- Split docs and tests into separate -doc package since running
tests and sometimes building docs had become very messy.
Also see (gh#/zopefoundation/zope.proxy#18)
- Converted to single-spec
-------------------------------------------------------------------
Fri May 15 11:28:36 UTC 2015 - benoit.monin@gmx.fr
- update to version 4.0.3:
* Added explicit support for Python 3.4.
- point the source URL to pypi
- add fdupes as BuildRequires and call it after install
- pass -q to the test to avoid spamming the build log
- rename CHANGES.txt to CHANGES.rst: changed upstream
- rename README.txt to README.rst: changed upstream
-------------------------------------------------------------------
Mon Jul 29 14:32:46 UTC 2013 - hpj@urpla.net
- version 4.0.2: initial build

View File

@ -0,0 +1,65 @@
#
# spec file for package python-zope.configuration-doc
#
# 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
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-zope.configuration-doc
Version: 4.1.0
Release: 0
Summary: Documentation for python-zope.configuration
License: ZPL-2.1
Group: Development/Languages/Python
Url: http://www.python.org/pypi/zope.configuration
Source: https://files.pythonhosted.org/packages/source/z/zope.configuration/zope.configuration-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module zope.configuration = %{version}}
# SECTION documentation requirements
BuildRequires: python3-Sphinx
BuildRequires: python3-repoze.sphinx.autointerface
# /SECTION
# SECTION test requirements
BuildRequires: %{python_module zope.testrunner}
# /SECTION
BuildRequires: python-rpm-macros
Requires: python-zope.i18nmessageid
Requires: python-zope.interface
Requires: python-zope.schema
Provides: %{python_module zope.configuration-doc = %{version}}
BuildArch: noarch
%description
Contains documentation for python-zope.configuration
%prep
%setup -q -n zope.configuration-%{version}
%build
%{_python_use_flavor python3}
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
# nothing to do
%check
%python_exec %{_bindir}/zope-testrunner --test-path=src -v
%files
%defattr(-,root,root)
%doc build/sphinx/html/
%changelog

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Thu Jul 13 20:54:36 UTC 2017 - aloisio@gmx.com
- Update to version 4.1.0
* Drop support for Python 2.6 and 3.2.
* Add support for Python 3.5 and 3.6.
* Fix the domain of MessageID fields to be a native string.
Previously on Python 3 they were bytes, which meant that they
couldnt be used to find translation utilities registered by
zope.i18n. See issue 17.
- Split docs and tests into separate -doc package since running
tests and sometimes building docs had become very messy.
Also see (gh#/zopefoundation/zope.proxy#18)
- Converted to single-spec
-------------------------------------------------------------------
Fri May 15 11:28:36 UTC 2015 - benoit.monin@gmx.fr

View File

@ -1,7 +1,7 @@
#
# spec file for package python-zope.configuration
#
# 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,31 +17,26 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-zope.configuration
Version: 4.0.3
Version: 4.1.0
Release: 0
Url: http://www.python.org/pypi/zope.configuration
Summary: Zope Configuration Markup Language (ZCML)
License: ZPL-2.1
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/z/zope.configuration/zope.configuration-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://www.python.org/pypi/zope.configuration
Source: https://files.pythonhosted.org/packages/source/z/zope.configuration/zope.configuration-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module zope.i18nmessageid}
BuildRequires: %{python_module zope.interface}
BuildRequires: %{python_module zope.schema}
BuildRequires: fdupes
BuildRequires: python-setuptools
BuildRequires: python-zope.i18nmessageid
BuildRequires: python-zope.interface
BuildRequires: python-zope.schema
BuildRequires: python-rpm-macros
Requires: python-zope.i18nmessageid
Requires: python-zope.interface
Requires: python-zope.schema
# Documentation requirements:
BuildRequires: python-Sphinx
BuildRequires: python-repoze.sphinx.autointerface
%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
BuildArch: noarch
%endif
%python_subpackages
%description
The zope configuration system provides an extensible system for supporting
@ -52,35 +47,20 @@ system provide configuration directives in some language that express
configuration choices. The intent is that the language be pluggable. An XML
language is provided by default.
%package doc
Summary: Zope Configuration Markup Language (ZCML)
Group: Development/Languages/Python
Requires: %{name} = %{version}
%description doc
This package contains documentation files for %{name}.
%prep
%setup -q -n zope.configuration-%{version}
rm -rf zope.configuration.egg-info
%build
python setup.py build
PYTHONPATH=$(pwd)/build/lib python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%fdupes %{buildroot}/%{_prefix}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
python setup.py -q test
%files
%defattr(-,root,root,-)
%files %{python_files}
%defattr(-,root,root)
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
%python_sitelib/*
%files doc
%defattr(-,root,root,-)
%doc build/sphinx/html/
%{python_sitelib}/*
%changelog

View File

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

View File

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