14
0

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:
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

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