File python-pyramid_simpleform.spec of Package python-pyramid_simpleform
#
# spec file for package python-pyramid_simpleform
#
# Copyright (c) 2015 SUSE LINUX Products 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/
#
Name: python-pyramid_simpleform
Version: 0.6.1
Release: 0
Url: http://bitbucket.org/danjac/pyramid_simpleform
Summary: FormEncode and WebHelpers for pyramid
License: MIT
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/p/pyramid_simpleform/pyramid_simpleform-%{version}.tar.gz
Source1: pyramid_simpleform-docs.tar.gz
Patch0: pyramid_simpleform-git-7004f60f.patch
Patch1: pyramid_simpleform-git-e22834c5.patch
Patch2: pyramid_simpleform-fixtests.diff
Requires: python-FormEncode
Requires: python-WebHelpers
Requires: python-pyramid
Requires: python-pyramid_mako
BuildRequires: python-FormEncode
BuildRequires: python-WebHelpers
BuildRequires: python-pyramid
BuildRequires: python-pyramid_mako
# Documentation requirements:
BuildRequires: python-Sphinx
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires: python-ordereddict
BuildRequires: python-unittest2
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
Simple form utilities for using Pyramid with FormEncode and WebHelpers.
Documentation: -doc package or http://packages.python.org/pyramid_simpleform/
%package doc
Summary: FormEncode and WebHelpers for pyramid
Group: Development/Languages/Python
Requires: %{name} = %{version}
%description doc
This package contains documentation files for %{name}.
%prep
%setup -q -n pyramid_simpleform-%{version} -a1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
python setup.py build
python setup.py build_sphinx && rm build/sphinx/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc README.txt
%{python_sitelib}/*
%files doc
%defattr(-,root,root,-)
%doc build/sphinx/html
%changelog