File python-pyramid_zcml.spec of Package python-pyramid_zcml

# spec file for package python-pyramid_zcml
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pyramid_zcml
Version:        1.1.0
Release:        0
Summary:        Zope Config Markup Language support for Pyramid
License:        BSD-4-Clause and ZPL-2.1 and MIT
Group:          Development/Languages/Python
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-pyramid >= 1.4
Requires:       python-venusian >= 1.0
Requires:       python-zope.configuration >= 3.8.0
BuildRequires:  %{python_module pyramid} >= 1.4
BuildRequires:  %{python_module venusian} >= 1.0
BuildRequires:  %{python_module zope.configuration} >= 3.8.0
# Testing requirements:
BuildRequires:  %{python_module WebTest}
BuildRequires:  %{python_module coverage}
BuildRequires:  %{python_module hupper}
BuildRequires:  %{python_module nose}
BuildRequires:  %{python_module plaster-pastedeploy}
BuildRequires:  %{python_module plaster}
BuildRequires:  %{python_module pyramid_mako}

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires:  python2-ordereddict
BuildRequires:  python2-unittest2
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
BuildArch:      noarch


pyramid_zcml is a package which provides ZCML (Zope Configuration Markup
Language) directives for all "configurator" methods available in the Pyramid
web framework.

See for detailed

%setup -q -n pyramid_zcml-%{version}


%python_expand %fdupes -s %{buildroot}%{$python_sitelib}

%python_exec nosetests --with-coverage

%files %python_files
%doc CHANGES.txt README.rst