2011-07-21 14:04:36 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-Flask
|
|
|
|
#
|
2024-01-20 15:07:52 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-07-21 14:04:36 +02: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.
|
2011-07-21 14:04:50 +02:00
|
|
|
|
2019-06-18 14:43:29 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-21 14:04:36 +02:00
|
|
|
#
|
|
|
|
|
2011-07-21 14:04:50 +02:00
|
|
|
|
2021-10-02 06:19:11 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
%bcond_without libalternatives
|
|
|
|
%else
|
|
|
|
%bcond_with libalternatives
|
|
|
|
%endif
|
|
|
|
|
2023-04-26 22:09:25 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2011-07-21 14:04:36 +02:00
|
|
|
Name: python-Flask
|
2024-01-20 15:07:52 +01:00
|
|
|
Version: 3.0.1
|
2011-09-26 10:11:45 +02:00
|
|
|
Release: 0
|
2011-07-21 14:04:36 +02:00
|
|
|
Summary: A microframework based on Werkzeug, Jinja2 and good intentions
|
2011-09-26 10:11:45 +02:00
|
|
|
License: BSD-3-Clause
|
2021-06-21 11:58:31 +02:00
|
|
|
URL: https://flask.palletsprojects.com
|
2023-09-25 04:32:52 +02:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/f/flask/flask-%{version}.tar.gz
|
2022-07-14 10:21:11 +02:00
|
|
|
Source1: python-Flask-rpmlintrc
|
2023-08-02 08:48:59 +02:00
|
|
|
BuildRequires: %{python_module Jinja2 >= 3.1.2}
|
2024-01-20 15:07:52 +01:00
|
|
|
BuildRequires: %{python_module Werkzeug >= 3.0.0}
|
2023-08-02 08:48:59 +02:00
|
|
|
BuildRequires: %{python_module blinker >= 1.6.2}
|
|
|
|
BuildRequires: %{python_module click >= 8.1.3}
|
2021-06-21 11:58:31 +02:00
|
|
|
BuildRequires: %{python_module contextvars}
|
2023-09-25 04:32:52 +02:00
|
|
|
BuildRequires: %{python_module flit-core}
|
2022-04-18 11:28:43 +02:00
|
|
|
BuildRequires: %{python_module importlib-metadata >= 3.6.0 if %python-base < 3.10}
|
2023-08-02 08:48:59 +02:00
|
|
|
BuildRequires: %{python_module itsdangerous >= 2.1.2}
|
|
|
|
BuildRequires: %{python_module pip}
|
2021-06-21 11:58:31 +02:00
|
|
|
BuildRequires: %{python_module pytest >= 6.2.4}
|
2023-08-02 08:48:59 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-04-28 10:38:31 +02:00
|
|
|
BuildRequires: fdupes
|
2021-10-02 06:19:11 +02:00
|
|
|
BuildRequires: python-rpm-macros >= 20210929
|
2023-08-02 08:48:59 +02:00
|
|
|
Requires: python-Jinja2 >= 3.1.2
|
2024-01-20 15:07:52 +01:00
|
|
|
Requires: python-Werkzeug >= 3.0.0
|
2023-08-02 08:48:59 +02:00
|
|
|
Requires: python-blinker >= 1.6.2
|
|
|
|
Requires: python-click >= 8.1.3
|
|
|
|
Requires: python-itsdangerous >= 2.1.2
|
2022-04-18 11:28:43 +02:00
|
|
|
%if 0%{?python_version_nodots} < 310
|
|
|
|
Requires: python-importlib-metadata >= 3.6.0
|
|
|
|
%endif
|
|
|
|
|
2021-10-02 06:19:11 +02:00
|
|
|
%if %{with libalternatives}
|
|
|
|
Requires: alts
|
2021-10-05 16:25:50 +02:00
|
|
|
BuildRequires: alts
|
2021-10-02 06:19:11 +02:00
|
|
|
%else
|
2020-05-27 19:41:16 +02:00
|
|
|
Requires(post): update-alternatives
|
2021-06-21 11:58:31 +02:00
|
|
|
Requires(postun):update-alternatives
|
2021-10-02 06:19:11 +02:00
|
|
|
%endif
|
2012-11-17 07:27:32 +01:00
|
|
|
BuildArch: noarch
|
2020-05-27 19:41:16 +02:00
|
|
|
%if %{?suse_version} < 1500
|
|
|
|
BuildRequires: python
|
|
|
|
%endif
|
2017-04-28 10:38:31 +02:00
|
|
|
%python_subpackages
|
2011-07-21 14:04:36 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good
|
|
|
|
intentions. And before you ask: It's BSD licensed!
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for python-Flask
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains HTML documentation, including tutorials and API
|
|
|
|
reference for python-Flask.
|
|
|
|
|
|
|
|
%prep
|
2023-09-25 04:32:52 +02:00
|
|
|
%autosetup -p1 -n flask-%{version}
|
2023-08-02 08:48:59 +02:00
|
|
|
find . -name '.gitignore' -delete
|
2011-07-21 14:04:36 +02:00
|
|
|
|
|
|
|
%build
|
2023-08-02 08:48:59 +02:00
|
|
|
%pyproject_wheel
|
2016-09-27 13:44:34 +02:00
|
|
|
# cd docs && make html
|
2011-07-21 14:04:36 +02:00
|
|
|
|
|
|
|
%install
|
2023-08-02 08:48:59 +02:00
|
|
|
%pyproject_install
|
2020-05-27 19:41:16 +02:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/flask
|
2022-03-29 21:39:08 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-11-17 07:27:32 +01:00
|
|
|
|
|
|
|
%check
|
2017-04-28 10:38:31 +02:00
|
|
|
export LANG=en_US.UTF-8
|
2019-06-18 14:43:29 +02:00
|
|
|
%pytest
|
2011-07-21 14:04:36 +02:00
|
|
|
|
2021-10-02 06:19:11 +02:00
|
|
|
%pre
|
|
|
|
# If libalternatives is used: Removing old update-alternatives entries.
|
|
|
|
%python_libalternatives_reset_alternative flask
|
|
|
|
|
2020-05-27 19:41:16 +02:00
|
|
|
%post
|
|
|
|
%python_install_alternative flask
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative flask
|
|
|
|
|
2017-04-28 10:38:31 +02:00
|
|
|
%files %{python_files}
|
2019-07-08 09:18:16 +02:00
|
|
|
%license LICENSE.rst
|
|
|
|
%doc CHANGES.rst README.rst
|
2020-05-27 19:41:16 +02:00
|
|
|
%python_alternative %{_bindir}/flask
|
2017-04-28 10:38:31 +02:00
|
|
|
%{_bindir}/flask-%{python_bin_suffix}
|
2023-08-02 08:48:59 +02:00
|
|
|
%{python_sitelib}/flask
|
2023-09-25 04:32:52 +02:00
|
|
|
%{python_sitelib}/flask-%{version}.dist-info
|
2011-07-21 14:04:36 +02:00
|
|
|
|
2017-04-28 10:38:31 +02:00
|
|
|
%files %{python_files doc}
|
2016-09-27 13:44:34 +02:00
|
|
|
%doc docs/
|
|
|
|
%doc examples/
|
2011-07-21 14:04:36 +02:00
|
|
|
|
|
|
|
%changelog
|