3 %bcond_without tests # do not perform "make test"
4 %bcond_without python2 # CPython 2.x module
5 %bcond_with python3 # CPython 3.x module
7 %define module social_django
8 %define pypi_name social-auth-app-django
9 %define egg_name social_auth_app_django
10 Summary: Python Social Auth - Application - Django
11 Name: python-%{pypi_name}
15 Group: Libraries/Python
16 Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
17 # Source0-md5: ec78f03b8053ecaa4d33b35a128c00bd
18 URL: https://github.com/python-social-auth/social-app-django
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.714
22 BuildRequires: python-modules
23 BuildRequires: python-setuptools
24 BuildRequires: python-social-auth-core >= 1.2.0
27 BuildRequires: python3-modules
28 BuildRequires: python3-setuptools
29 BuildRequires: python3-social-auth-core >= 1.2.0
31 Requires: python-modules
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 Python Social Auth is an easy to setup social
37 authentication/registration mechanism with support for several
38 frameworks and auth providers.
40 This is the Django component of the python-social-auth ecosystem, it
41 implements the needed functionality to integrate social-auth-core in a
44 %package -n python3-%{pypi_name}
45 Summary: Python Social Auth - Application - Django
46 Group: Libraries/Python
48 %description -n python3-%{pypi_name}
49 Python Social Auth is an easy to setup social
50 authentication/registration mechanism with support for several
51 frameworks and auth providers.
53 This is the Django component of the python-social-auth ecosystem, it
54 implements the needed functionality to integrate social-auth-core in a
58 %setup -q -n %{pypi_name}-%{version}
62 %py_build %{?with_tests:test}
66 %py3_build %{?with_tests:test}
70 rm -rf $RPM_BUILD_ROOT
81 rm -rf $RPM_BUILD_ROOT
85 %defattr(644,root,root,755)
86 %doc README.md LICENSE
87 %{py_sitescriptdir}/%{module}
88 %{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
92 %files -n python3-%{pypi_name}
93 %defattr(644,root,root,755)
94 %doc README.md LICENSE
95 %{py3_sitescriptdir}/%{module}
96 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info