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 http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyramid_zcml
Version: 1.1.0
Release: 0
Url: http://docs.pylonsproject.org
Summary: Zope Config Markup Language support for Pyramid
License: BSD-4-Clause and ZPL-2.1 and MIT
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/p/pyramid_zcml/pyramid_zcml-%{version}.tar.gz
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()")}
%else
BuildArch: noarch
%endif
%python_subpackages
%description
pyramid_zcml is a package which provides ZCML (Zope Configuration Markup
Language) directives for all "configurator" methods available in the Pyramid
web framework.
See http://docs.pylonsproject.org/projects/pyramid_zcml/dev/ for detailed
documentation.
%prep
%setup -q -n pyramid_zcml-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py nosetests --with-coverage
%files %python_files
%defattr(-,root,root,-)
%doc CHANGES.txt README.rst
%{python_sitelib}/*
%changelog