File python3-WTForms.spec of Package python3-WTForms

#
# spec file for package python3-WTForms
#
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, 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:           python3-WTForms
Version:        2.1
Release:        0
Url:            http://wtforms.simplecodes.com/
Summary:        A flexible forms validation and rendering library for Python web development
License:        BSD-3-Clause
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/W/WTForms/WTForms-%{version}.zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  unzip
BuildRequires:  python3
Requires:       python3
Recommends:     python3-django
# Don't support python3 for instance
# Recommends:     python-google-appengine
Recommends:     python3-SQLAlchemy
BuildArch:      noarch

%description
WTForms is a forms validation and rendering library for Python web development.

%prep
%setup -q -n WTForms-%{version}
sed -i "s/\r//" CHANGES.rst docs/html/_sources/index.txt # Fix wrong EOL-encoding
rm -rf docs/html/.buildinfo # Remove junk

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%defattr(-,root,root,-)
%doc AUTHORS.txt CHANGES.rst LICENSE.txt README.md docs/html
%{python3_sitelib}/*

%changelog
openSUSE Build Service is sponsored by