2014-12-03 21:51:15 +00:00
|
|
|
#
|
2017-10-10 09:42:24 +00:00
|
|
|
# spec file for package python-Flask-WTF
|
2014-12-03 21:51:15 +00:00
|
|
|
#
|
2022-02-21 00:24:57 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-12-03 21:51:15 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-02-10 20:54:07 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-12-03 21:51:15 +00:00
|
|
|
#
|
|
|
|
|
2017-10-10 09:42:24 +00:00
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2021-01-28 17:27:04 +00:00
|
|
|
%define skip_python2 1
|
2020-06-11 06:24:31 +00:00
|
|
|
%bcond_without test
|
2014-12-03 21:51:15 +00:00
|
|
|
Name: python-Flask-WTF
|
2022-04-09 03:33:45 +00:00
|
|
|
Version: 1.0.1
|
2014-12-03 21:51:15 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: WTForms support for Flask
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/Python
|
2020-02-10 20:54:07 +00:00
|
|
|
URL: https://github.com/lepture/flask-wtf
|
2017-10-10 09:42:24 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/F/Flask-WTF/Flask-WTF-%{version}.tar.gz
|
2022-02-21 00:24:57 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2017-10-10 09:42:24 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2014-12-03 21:51:15 +00:00
|
|
|
BuildRequires: fdupes
|
2017-10-10 09:42:24 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-01-26 12:39:18 +00:00
|
|
|
Requires: python-Flask
|
|
|
|
Requires: python-WTForms
|
|
|
|
Requires: python-Werkzeug
|
|
|
|
Requires: python-itsdangerous
|
2021-08-16 09:26:47 +00:00
|
|
|
Recommends: python-email_validator
|
2018-01-26 12:39:18 +00:00
|
|
|
BuildArch: noarch
|
2017-10-10 09:42:24 +00:00
|
|
|
%if %{with test}
|
2021-06-01 06:59:59 +00:00
|
|
|
BuildRequires: %{python_module Flask-BabelEx}
|
2017-10-10 09:42:24 +00:00
|
|
|
BuildRequires: %{python_module Flask-Babel}
|
2018-01-26 12:39:18 +00:00
|
|
|
BuildRequires: %{python_module Flask}
|
2017-10-10 09:42:24 +00:00
|
|
|
BuildRequires: %{python_module WTForms}
|
|
|
|
BuildRequires: %{python_module Werkzeug}
|
2018-01-26 12:39:18 +00:00
|
|
|
BuildRequires: %{python_module itsdangerous}
|
2020-06-11 06:24:31 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-10-10 09:42:24 +00:00
|
|
|
%endif
|
|
|
|
%python_subpackages
|
2014-12-03 21:51:15 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Adds WTForms support to your Flask application
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Flask-WTF-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-10-10 09:42:24 +00:00
|
|
|
%python_build
|
|
|
|
|
2014-12-03 21:51:15 +00:00
|
|
|
%install
|
2017-10-10 09:42:24 +00:00
|
|
|
%python_install
|
2014-12-03 21:51:15 +00:00
|
|
|
%fdupes %{buildroot}%{_prefix}
|
|
|
|
|
2017-10-10 09:42:24 +00:00
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
2021-08-16 09:26:47 +00:00
|
|
|
# Excluded tests because of gh#wtforms/wtforms#697
|
|
|
|
%pytest -k 'not (test_set_default_message_language or test_i18n)' tests
|
2017-10-10 09:42:24 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files %{python_files}
|
2022-02-21 00:24:57 +00:00
|
|
|
%license LICENSE.rst
|
|
|
|
%doc README.rst
|
2020-02-10 20:54:07 +00:00
|
|
|
%{python_sitelib}/flask_wtf
|
|
|
|
%{python_sitelib}/Flask_WTF-%{version}-py*.egg-info
|
2014-12-03 21:51:15 +00:00
|
|
|
|
|
|
|
%changelog
|