File python-zope.configuration.spec of Package python-zope.configuration

# spec file for package python-zope.configuration
# Copyright (c) 2015 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

Name:           python-zope.configuration
Version:        4.0.3
Release:        0
Summary:        Zope Configuration Markup Language (ZCML)
License:        ZPL-2.1
Group:          Development/Languages/Python
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  fdupes
BuildRequires:  python-setuptools
BuildRequires:  python-zope.i18nmessageid
BuildRequires:  python-zope.interface
BuildRequires:  python-zope.schema
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()")}
BuildArch:      noarch

The zope configuration system provides an extensible system for supporting
various kinds of configurations.

It is based on the idea of configuration directives. Users of the configuration
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}.

%setup -q -n zope.configuration-%{version}

python build
PYTHONPATH=$(pwd)/build/lib python build_sphinx && rm build/sphinx/html/.buildinfo

python install --prefix=%{_prefix} --root=%{buildroot}
%fdupes %{buildroot}/%{_prefix}

python -q test


%files doc
%doc build/sphinx/html/