# Created by pyp2rpm-3.2.2 %global pypi_name django-oauth-toolkit Name: python-%{pypi_name} Version: 0.9.0 Release: 2%{?dist} Summary: OAuth2 goodies for Django License: BSD URL: https://github.com/evonove/django-oauth-toolkit Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python2-oauthlib < 1.1 BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-oauthlib < 1.1 # == Patches == # Patch0001: 0001-Fix-dependencies-for-Fedora.patch %description Django OAuth Toolkit *OAuth2 goodies for the Djangonauts!* If you are facing one or more of the following: * Your Django app exposes a web API you want to protect with OAuth2 authentication, * You need to implement an OAuth2 authorization server to provide tokens management for your infrastructure,Django OAuth Toolkit can help you providing out of the box all the endpoints, data and logic... %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python2-django >= 1.4 Requires: python2-django-braces >= 1.2.2 Requires: python2-oauthlib < 1.1 Requires: python2-six %description -n python2-%{pypi_name} Django OAuth Toolkit *OAuth2 goodies for the Djangonauts!* If you are facing one or more of the following: * Your Django app exposes a web API you want to protect with OAuth2 authentication, * You need to implement an OAuth2 authorization server to provide tokens management for your infrastructure,Django OAuth Toolkit can help you providing out of the box all the endpoints, data and logic... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3-django >= 1.4 Requires: python3-django-braces >= 1.2.2 Requires: python3-oauthlib < 1.1 Requires: python3-six %description -n python3-%{pypi_name} Django OAuth Toolkit *OAuth2 goodies for the Djangonauts!* If you are facing one or more of the following: * Your Django app exposes a web API you want to protect with OAuth2 authentication, * You need to implement an OAuth2 authorization server to provide tokens management for your infrastructure,Django OAuth Toolkit can help you providing out of the box all the endpoints, data and logic... %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build %install # Must do the subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install. %py3_install %py2_install %check %files -n python2-%{pypi_name} %license LICENSE %doc README.rst %{python2_sitelib}/oauth2_provider %{python2_sitelib}/django_oauth_toolkit-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/oauth2_provider %{python3_sitelib}/django_oauth_toolkit-%{version}-py?.?.egg-info %changelog * Thu Feb 01 2018 Stephen Gallagher - 0.9.0-1 - Initial package.