2018-10-30 10:49:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Flask-HTTPAuth
|
|
|
|
#
|
2021-07-23 09:21:12 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-10-30 10:49:38 +00:00
|
|
|
# Copyright (c) 2017 Dr. Axel Braun
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-30 10:53:50 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2018-10-30 10:49:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2021-07-23 09:21:12 +00:00
|
|
|
%define skip_python2 1
|
2020-05-03 20:41:10 +00:00
|
|
|
Name: python-Flask-HTTPAuth
|
2021-07-23 09:21:12 +00:00
|
|
|
Version: 4.4.0
|
2018-10-30 10:49:38 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Basic and Digest HTTP authentication for Flask routes
|
2018-10-30 10:53:50 +00:00
|
|
|
License: MIT
|
2018-10-30 10:49:38 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-05-03 20:41:10 +00:00
|
|
|
URL: https://github.com/miguelgrinberg/flask-httpauth/
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/F/Flask-HTTPAuth/Flask-HTTPAuth-%{version}.tar.gz
|
2018-10-30 10:49:38 +00:00
|
|
|
BuildRequires: %{python_module Flask}
|
2021-07-23 09:21:12 +00:00
|
|
|
BuildRequires: %{python_module importlib-metadata}
|
2018-10-30 10:53:50 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-10-30 10:49:38 +00:00
|
|
|
Requires: python-Flask
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Simple extension that provides Basic and Digest HTTP authentication for Flask routes.
|
|
|
|
|
|
|
|
%prep
|
2020-05-03 20:41:10 +00:00
|
|
|
%setup -q -n Flask-HTTPAuth-%{version}
|
2018-10-30 10:49:38 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2018-10-30 10:53:50 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2021-09-21 23:19:40 +00:00
|
|
|
%pyunittest discover -v
|
2018-10-30 10:49:38 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2018-10-30 10:53:50 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2020-05-03 20:41:10 +00:00
|
|
|
%{python_sitelib}/flask_httpauth.py*
|
|
|
|
%{python_sitelib}/Flask_HTTPAuth-%{version}-py*.egg-info
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__
|
2018-10-30 10:49:38 +00:00
|
|
|
|
|
|
|
%changelog
|