File python-flask-oidc.spec of Package python-flask-oidc
#
# spec file for package python-flask-oidc
#
# Copyright (c) 2020 Neal Gompa <ngompa13@gmail.com>.
#
# 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 https://bugs.opensuse.org/
#
%global pypi_name flask-oidc
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{pypi_name}
Version: 1.4.0
Release: 0
Summary: OpenID Connect support for Flask
Group: Development/Libraries/Python
License: BSD-2-Clause
URL: https://github.com/puiterwijk/%{pypi_name}
Source0: https://pypi.io/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module itsdangerous}
BuildRequires: %{python_module oauth2client}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
# Test dependencies
BuildRequires: %{python_module nose}
BuildRequires: %{python_module mock}
Requires: python-Flask
Requires: python-itsdangerous
Requires: python-oauth2client
Requires: python-setuptools
Requires: python-six
%python_subpackages
%description
This library should work with any standards compliant OpenID Connect provider.
It is designed around Google’s oauth2client library and OpenID Connect implementation.
It has been tested with:
* Google+ Login
* Ipsilon
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%files %{python_files}
%doc README.rst
%license LICENSE.txt
%{python_sitelib}/flask_oidc/
%{python_sitelib}/*.egg-info/
%python3_only %{_bindir}/oidc-register
%changelog