|
Chenxiong Qi |
d41fa0c |
%global pypi_name social-auth-core
|
|
Chenxiong Qi |
d41fa0c |
%global egginfo_name social_auth_core
|
|
Chenxiong Qi |
d41fa0c |
# The Python module name is different from the package name published to PyPI.
|
|
Chenxiong Qi |
d41fa0c |
%global module_name social_core
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
292b808 |
%global desc %{expand:
|
|
Chenxiong Qi |
292b808 |
Python Social Auth aims to be an easy-to-setup social authentication and
|
|
Chenxiong Qi |
292b808 |
authorization mechanism for Python projects supporting protocols like OAuth (1
|
|
Chenxiong Qi |
292b808 |
and 2), OpenID and others.
|
|
Chenxiong Qi |
292b808 |
|
|
Chenxiong Qi |
292b808 |
The initial codebase is derived from django-social-auth with the idea of
|
|
Chenxiong Qi |
292b808 |
generalizing the process to suit the different frameworks around, providing
|
|
Chenxiong Qi |
292b808 |
the needed tools to bring support to new frameworks.
|
|
Chenxiong Qi |
292b808 |
|
|
Chenxiong Qi |
292b808 |
django-social-auth itself was a product of modified code from
|
|
Chenxiong Qi |
292b808 |
django-twitter-oauth and django-openid-auth projects.
|
|
Chenxiong Qi |
292b808 |
|
|
Chenxiong Qi |
292b808 |
The project is now split into smaller modules to isolate and reduce
|
|
Chenxiong Qi |
292b808 |
responsibilities and improve reusability.
|
|
Chenxiong Qi |
292b808 |
|
|
Chenxiong Qi |
292b808 |
Documentation: https://python-social-auth.readthedocs.io/en/latest/
|
|
Chenxiong Qi |
da17aa5 |
Release notes: https://github.com/python-social-auth/%{module_name}/releases/tag/4.1.0
|
|
Chenxiong Qi |
292b808 |
}
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
d41fa0c |
%global summary Python Social Auth is an easy to setup social authentication\/registration mechanism with support for several frameworks and auth providers.
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
d41fa0c |
Name: python-%{pypi_name}
|
|
Chenxiong Qi |
da17aa5 |
Version: 4.1.0
|
|
|
8f62a8d |
Release: 4%{?dist}
|
|
Chenxiong Qi |
d41fa0c |
Summary: %{summary}
|
|
|
0f612a9 |
License: BSD
|
|
Chenxiong Qi |
d41fa0c |
URL: https://github.com/python-social-auth/social-core/
|
|
Chenxiong Qi |
d41fa0c |
Source0: %{pypi_source}
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
43ef6b5 |
# Remove this patch when fixed in upstream
|
|
Chenxiong Qi |
b5bbd34 |
Patch1: 0001-Fix-issue-Too-many-open-files-for-tests.patch
|
|
Chenxiong Qi |
b5bbd34 |
Patch2: 0002-Do-not-allow-tests-to-connect-network.patch
|
|
Chenxiong Qi |
b5bbd34 |
Patch3: 0003-Use-utcnow-for-JANRAIN_NONCE.patch
|
|
Chenxiong Qi |
b5bbd34 |
Patch4: 0004-Fix-wrong-HTTP-method-for-Xrds-request-in-test.patch
|
|
|
0f612a9 |
|
|
|
0f612a9 |
BuildArch: noarch
|
|
|
ffd1b6d |
BuildRequires: python3-devel
|
|
|
31ed484 |
BuildRequires: python3dist(setuptools)
|
|
|
0f612a9 |
|
|
Chenxiong Qi |
d41fa0c |
# Requirements for running social-core
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(requests)
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(oauthlib)
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(requests-oauthlib)
|
|
Chenxiong Qi |
da17aa5 |
BuildRequires: python3dist(pyjwt) >= 2.0.0
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(cryptography)
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(python-jose)
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(defusedxml)
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(python3-openid)
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(python3-saml)
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
d41fa0c |
# Requirements for running tests
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(coverage)
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(httpretty)
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(pytest)
|
|
Chenxiong Qi |
d41fa0c |
BuildRequires: python3dist(pytest-cov)
|
|
|
0f612a9 |
|
|
|
0f612a9 |
%description
|
|
|
0f612a9 |
%{desc}
|
|
|
0f612a9 |
|
|
Chenxiong Qi |
d41fa0c |
%package -n python3-%{pypi_name}
|
|
|
0f612a9 |
Summary: %{summary}
|
|
Chenxiong Qi |
da17aa5 |
%py_provides python3-%{pypi_name}
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
d41fa0c |
Requires: python3dist(cryptography)
|
|
Chenxiong Qi |
d41fa0c |
Requires: python3dist(defusedxml)
|
|
Chenxiong Qi |
d3f513b |
Requires: python3dist(oauthlib)
|
|
Chenxiong Qi |
da17aa5 |
Requires: python3dist(pyjwt) >= 2.0.0
|
|
Chenxiong Qi |
d41fa0c |
Requires: python3dist(python3-openid)
|
|
Chenxiong Qi |
d3f513b |
Requires: python3dist(requests)
|
|
Chenxiong Qi |
d3f513b |
Requires: python3dist(requests-oauthlib)
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
d41fa0c |
%description -n python3-%{pypi_name}
|
|
|
0f612a9 |
%{desc}
|
|
Chenxiong Qi |
d41fa0c |
If you want social-core to work with azuread (the Azure Active Directory), this
|
|
Chenxiong Qi |
d41fa0c |
is the package you need.
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
43ef6b5 |
%package -n python3-%{pypi_name}+saml
|
|
Chenxiong Qi |
43ef6b5 |
Summary: %{pypi_name} with SAML support.
|
|
Chenxiong Qi |
da17aa5 |
%py_provides python3-%{pypi_name}+saml
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
da17aa5 |
Requires: python3-%{pypi_name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
Chenxiong Qi |
d41fa0c |
Requires: python3dist(python3-saml)
|
|
Chenxiong Qi |
d3f513b |
|
|
Chenxiong Qi |
43ef6b5 |
Obsoletes: python3-%{pypi_name}-saml <= %{version}
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
43ef6b5 |
%description -n python3-%{pypi_name}+saml
|
|
Chenxiong Qi |
b5456ec |
%{pypi_name} with SAML support. Install the dependencies only. No code is included.
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
d41fa0c |
For detailed description, please refer to package python3-%{pypi_name}
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
43ef6b5 |
%package -n python3-%{pypi_name}+openidconnect
|
|
Chenxiong Qi |
43ef6b5 |
Summary: %{pypi_name} with OpenIDConnect support.
|
|
Chenxiong Qi |
da17aa5 |
%py_provides python3-%{pypi_name}+openidconnect
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
da17aa5 |
Requires: python3-%{pypi_name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
Chenxiong Qi |
d41fa0c |
Requires: python3dist(python-jose)
|
|
Chenxiong Qi |
d3f513b |
|
|
Chenxiong Qi |
43ef6b5 |
Obsoletes: python3-%{pypi_name}-openidconnect <= %{version}
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
43ef6b5 |
%description -n python3-%{pypi_name}+openidconnect
|
|
Chenxiong Qi |
43ef6b5 |
%{pypi_name} with OpenIDConnect support. Install the dependencies only. No code is included.
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
d41fa0c |
For detailed description, please refer to package python3-%{pypi_name}
|
|
|
0f612a9 |
|
|
|
0f612a9 |
%prep
|
|
Chenxiong Qi |
b5bbd34 |
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
0f612a9 |
|
|
Chenxiong Qi |
d41fa0c |
rm -rf %{egginfo_name}.egg-info
|
|
|
0f612a9 |
|
|
|
0f612a9 |
%build
|
|
|
0f612a9 |
%py3_build
|
|
|
0f612a9 |
|
|
|
0f612a9 |
%install
|
|
|
0f612a9 |
%py3_install
|
|
|
0f612a9 |
|
|
Chenxiong Qi |
d41fa0c |
rm -r %{buildroot}%{python3_sitelib}/%{module_name}/tests/
|
|
|
0f612a9 |
|
|
|
0f612a9 |
%check
|
|
Chenxiong Qi |
292b808 |
%{pytest} %{module_name}/tests/
|
|
|
0f612a9 |
|
|
Chenxiong Qi |
d41fa0c |
%files -n python3-%{pypi_name}
|
|
|
0f612a9 |
%license LICENSE
|
|
|
0f612a9 |
%doc README.md CHANGELOG.md
|
|
Chenxiong Qi |
d41fa0c |
%{python3_sitelib}/%{module_name}/
|
|
Chenxiong Qi |
d41fa0c |
%{python3_sitelib}/%{egginfo_name}-%{version}-py*.egg-info
|
|
|
0f612a9 |
|
|
Chenxiong Qi |
43ef6b5 |
%files -n python3-%{pypi_name}+saml
|
|
Chenxiong Qi |
1de4389 |
%ghost %{python3_sitelib}/*.egg-info
|
|
Chenxiong Qi |
d41fa0c |
|
|
Chenxiong Qi |
43ef6b5 |
%files -n python3-%{pypi_name}+openidconnect
|
|
Chenxiong Qi |
1de4389 |
%ghost %{python3_sitelib}/*.egg-info
|
|
|
0f612a9 |
|
|
|
0f612a9 |
%changelog
|
|
|
8f62a8d |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-4
|
|
|
8f62a8d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
8f62a8d |
|
|
Chenxiong Qi |
b5bbd34 |
* Mon Jun 14 2021 Chenxiong Qi <qcxhome@gmail.com> - 4.1.0-3
|
|
Chenxiong Qi |
b5bbd34 |
- Backport patches in order to run tests
|
|
Chenxiong Qi |
b5bbd34 |
|
|
|
ae12292 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.1.0-2
|
|
|
ae12292 |
- Rebuilt for Python 3.10
|
|
|
ae12292 |
|
|
Chenxiong Qi |
da17aa5 |
* Thu May 06 2021 Chenxiong Qi <qcxhome@gmail.com> - 4.1.0-1
|
|
Chenxiong Qi |
da17aa5 |
- Rebuilt for upstream version 4.1.0
|
|
Chenxiong Qi |
da17aa5 |
|
|
Chenxiong Qi |
c2327aa |
* Sat Mar 06 2021 Chenxiong Qi <qcxhome@gmail.com> - 4.0.2-2
|
|
Chenxiong Qi |
c2327aa |
- Bump release 4.0.2-2
|
|
Chenxiong Qi |
c2327aa |
|
|
Chenxiong Qi |
43ef6b5 |
* Sat Mar 06 2021 Chenxiong Qi <qcxhome@gmail.com> - 4.0.2-1
|
|
Chenxiong Qi |
43ef6b5 |
- Rebuilt for upstream version 4.0.2
|
|
Chenxiong Qi |
43ef6b5 |
|
|
|
475e8b6 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-4
|
|
|
475e8b6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
475e8b6 |
|
|
Chenxiong Qi |
a26969d |
* Mon Jan 11 2021 Chenxiong Qi <qcxhome@gmail.com> - 3.3.3-3
|
|
Chenxiong Qi |
a26969d |
- Fix subpackage requires
|
|
Chenxiong Qi |
a26969d |
|
|
|
4aae473 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.3-2
|
|
|
4aae473 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
4aae473 |
|
|
Chenxiong Qi |
d41fa0c |
* Sat Jul 18 2020 Chenxiong Qi <qcxhome@gmail.com> - 3.3.3-1
|
|
Chenxiong Qi |
d41fa0c |
- Rebuilt version 3.3.3
|
|
Chenxiong Qi |
d41fa0c |
|
|
|
b5b0a06 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-11
|
|
|
b5b0a06 |
- Rebuilt for Python 3.9
|
|
|
b5b0a06 |
|
|
|
d4cff3e |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-10
|
|
|
d4cff3e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
d4cff3e |
|
|
|
e8f3f03 |
* Thu Jan 09 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.7.0-9
|
|
|
e8f3f03 |
- Remove dependency on unittest2 (#1789200)
|
|
|
e8f3f03 |
|
|
|
2adaec1 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-8
|
|
|
2adaec1 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
2adaec1 |
|
|
|
92afb5a |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-7
|
|
|
92afb5a |
- Rebuilt for Python 3.8
|
|
|
92afb5a |
|
|
|
6f6d7ca |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-6
|
|
|
6f6d7ca |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
6f6d7ca |
|
|
|
761b328 |
* Thu Jun 27 2019 Kevin Fenzi <kevin@scrye.com> - 1.7.0-5
|
|
|
761b328 |
- Change the defusedxml requirement to not have rc1, which confused the python auto dep script.
|
|
|
761b328 |
|
|
|
20e68eb |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-4
|
|
|
20e68eb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
20e68eb |
|
|
|
e108e2e |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-3
|
|
|
e108e2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
e108e2e |
|
|
|
49032bf |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-2
|
|
|
49032bf |
- Rebuilt for Python 3.7
|
|
|
49032bf |
|
|
|
de4092b |
* Thu Jan 25 2018 Jeremy Cline <jeremy@jcline.org> - 1.7.0-1
|
|
|
0f612a9 |
- Initial package.
|