0f612a9
%global srcname social-auth-core
0f612a9
%global desc Python Social Auth is an easy to setup social \
0f612a9
authentication/registration mechanism with support for several frameworks and \
0f612a9
auth providers. This is the core component of the python-social-auth ecosystem, \
0f612a9
it implements the common interface to define new authentication backends to \
0f612a9
third parties services, implement integrations with web frameworks and storage \
0f612a9
solutions. \
0f612a9
0f612a9
Name:           python-%{srcname}
0f612a9
Version:        1.7.0
0f612a9
Release:        1%{?dist}
0f612a9
Summary:        The core component of the python-social-auth ecosystem
0f612a9
0f612a9
License:        BSD
0f612a9
URL:            https://pypi.python.org/pypi/%{srcname}
0f612a9
Source0:        https://github.com/python-social-auth/social-core/archive/%{version}/%{srcname}-%{version}.tar.gz
0f612a9
Patch0:         Unpin-the-test-requirements-and-use-unittest2-for-Py.patch
0f612a9
0f612a9
BuildArch:      noarch
0f612a9
BuildRequires:  python2-devel python3-devel
0f612a9
0f612a9
0f612a9
%description
0f612a9
%{desc}
0f612a9
0f612a9
0f612a9
%package -n python3-%{srcname}
0f612a9
Summary: %{summary}
0f612a9
%{?python_provide:%python_provide python3-%{srcname}}
0f612a9
BuildRequires: %{py3_dist cryptography}
0f612a9
BuildRequires: %{py3_dist unittest2}
0f612a9
BuildRequires: %{py3_dist nose}
0f612a9
BuildRequires: %{py3_dist httpretty}
0f612a9
BuildRequires: %{py3_dist defusedxml}
0f612a9
BuildRequires: %{py3_dist python3-openid}
0f612a9
BuildRequires: %{py3_dist python3-saml}
0f612a9
BuildRequires: %{py3_dist requests}
0f612a9
BuildRequires: %{py3_dist oauthlib}
0f612a9
BuildRequires: %{py3_dist requests-oauthlib}
0f612a9
BuildRequires: %{py3_dist six}
0f612a9
BuildRequires: %{py3_dist PyJWT}
0f612a9
Requires: %{py3_dist cryptography}
0f612a9
Requires: %{py3_dist defusedxml}
0f612a9
Requires: %{py3_dist python3-openid}
0f612a9
Requires: %{py3_dist python3-saml}
0f612a9
Requires: %{py3_dist requests}
0f612a9
Requires: %{py3_dist oauthlib}
0f612a9
Requires: %{py3_dist requests-oauthlib}
0f612a9
Requires: %{py3_dist six}
0f612a9
Requires: %{py3_dist PyJWT}
0f612a9
0f612a9
0f612a9
%description -n python3-%{srcname}
0f612a9
%{desc}
0f612a9
0f612a9
0f612a9
%prep
0f612a9
%autosetup -p1 -n social-core-%{version}
0f612a9
rm -f requirements-openidconnect.txt
0f612a9
touch requirements-openidconnect.txt
0f612a9
rm -f social_core/tests/requirements-base.txt
0f612a9
touch social_core/tests/requirements-base.txt
0f612a9
0f612a9
0f612a9
%build
0f612a9
%py3_build
0f612a9
0f612a9
0f612a9
%install
0f612a9
%py3_install
0f612a9
0f612a9
0f612a9
%check
0f612a9
%__python3 setup.py test
0f612a9
0f612a9
0f612a9
%files -n python3-%{srcname}
0f612a9
%license LICENSE
0f612a9
%doc README.md CHANGELOG.md
0f612a9
%{python3_sitelib}/*
0f612a9
0f612a9
0f612a9
%changelog
ac48bbe
* Thu Jan 25 2018 Jeremy Cline <jeremy@jcline.org> - 1.7.0-1
0f612a9
- Initial package.