File python-flask_2.2.2-1.spec of Package python-Flask

%global debug_package %{nil}

Name: python-flask
Epoch: 100
Version: 2.2.2
Release: 2.2
BuildArch: noarch
Summary: A simple framework for building complex web applications
License: BSD-3-Clause
URL: https://github.com/pallets/flask/tags
Source0: %{name}_%{version}.orig.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-devel
BuildRequires: python3-setuptools

%description
Flask is a lightweight WSGI web application framework. It is designed to
make getting started quick and easy, with the ability to scale up to
complex applications. It began as a simple wrapper around Werkzeug and
Jinja and has become one of the most popular Python web application
frameworks.

%prep
%autosetup -T -c -n %{name}_%{version}-%{release}
tar -zx -f %{S:0} --strip-components=1 -C .

%build
%py3_build

%install
%py3_install
find %{buildroot}%{python3_sitelib} -type f -name '*.pyc' -exec rm -rf {} \;
fdupes -qnrps %{buildroot}%{python3_sitelib}

%check

%if 0%{?suse_version} > 1500
%package -n python%{python3_version_nodots}-flask
Summary: A simple framework for building complex web applications
Requires: python3
Requires: python3-click >= 8.0
Requires: python3-importlib-metadata >= 3.6.0
Requires: python3-itsdangerous >= 2.0
Requires: python3-Jinja2 >= 3.0
Requires: python3-werkzeug >= 2.2.2
Provides: python3-flask = %{epoch}:%{version}-%{release}
Provides: python3dist(flask) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-flask = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(flask) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-flask = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(flask) = %{epoch}:%{version}-%{release}

%description -n python%{python3_version_nodots}-flask
Flask is a lightweight WSGI web application framework. It is designed to
make getting started quick and easy, with the ability to scale up to
complex applications. It began as a simple wrapper around Werkzeug and
Jinja and has become one of the most popular Python web application
frameworks.

%files -n python%{python3_version_nodots}-flask
%license LICENSE.rst
%{_bindir}/*
%{python3_sitelib}/*
%endif

%if 0%{?sle_version} > 150000
%package -n python3-flask
Summary: A simple framework for building complex web applications
Requires: python3
Requires: python3-click >= 8.0
Requires: python3-importlib-metadata >= 3.6.0
Requires: python3-itsdangerous >= 2.0
Requires: python3-Jinja2 >= 3.0
Requires: python3-werkzeug >= 2.2.2
Provides: python3-flask = %{epoch}:%{version}-%{release}
Provides: python3dist(flask) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-flask = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(flask) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-flask = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(flask) = %{epoch}:%{version}-%{release}

%description -n python3-flask
Flask is a lightweight WSGI web application framework. It is designed to
make getting started quick and easy, with the ability to scale up to
complex applications. It began as a simple wrapper around Werkzeug and
Jinja and has become one of the most popular Python web application
frameworks.

%files -n python3-flask
%license LICENSE.rst
%{_bindir}/*
%{python3_sitelib}/*
%endif

%if !(0%{?suse_version} > 1500) && !(0%{?sle_version} > 150000)
%package -n python3-flask
Summary: A simple framework for building complex web applications
Requires: python3
Requires: python3-click >= 8.0
Requires: python3-importlib-metadata >= 3.6.0
Requires: python3-itsdangerous >= 2.0
Requires: python3-jinja2 >= 3.0
Requires: python3-werkzeug >= 2.2.2
Provides: python3-flask = %{epoch}:%{version}-%{release}
Provides: python3dist(flask) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}-flask = %{epoch}:%{version}-%{release}
Provides: python%{python3_version}dist(flask) = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}-flask = %{epoch}:%{version}-%{release}
Provides: python%{python3_version_nodots}dist(flask) = %{epoch}:%{version}-%{release}

%description -n python3-flask
Flask is a lightweight WSGI web application framework. It is designed to
make getting started quick and easy, with the ability to scale up to
complex applications. It began as a simple wrapper around Werkzeug and
Jinja and has become one of the most popular Python web application
frameworks.

%files -n python3-flask
%license LICENSE.rst
%{_bindir}/*
%{python3_sitelib}/*
%endif

%changelog
openSUSE Build Service is sponsored by