[python-django-federated-login] add lines for python3 tks echevemaster

Luis Enrique Bazán De León lbazan at fedoraproject.org
Tue Apr 1 21:31:10 UTC 2014


commit 3022ad96061f24bf5b3633353f5a6cf1d42709cf
Author: lbazan <lbazan at fedoraproject.org>
Date:   Tue Apr 1 16:30:48 2014 -0500

    add lines for python3
    tks echevemaster

 python-django-federated-login.spec |   66 ++++++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/python-django-federated-login.spec b/python-django-federated-login.spec
index 9c8ff6e..2c6710f 100644
--- a/python-django-federated-login.spec
+++ b/python-django-federated-login.spec
@@ -1,3 +1,5 @@
+%bcond_without  python3
+
 %global pkgname django-federated-login
 
 Name:           python-django-federated-login
@@ -24,6 +26,11 @@ Requires:       python-coverage
 Requires:       python-django
 BuildRequires:  python-django
 
+%if 0%{?with_python3}
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+%endif
+
 %description
 
 Django Federated Login provides an authentication bridge between 
@@ -37,19 +44,69 @@ The provided backend matches users based on the e-mail address returned
 from the identity provider. If no matching user could be found, a user 
 account can optionally be created.
 
+%if 0%{?with_python3}
+%package -n python3-django-federated-login
+Summary:        Provides federated logins to django projects
+Group:          Development/Languages
+
+BuildRequires:  python3-openid
+Requires:       python3-openid
+BuildRequires:  python3-flake8
+Requires:       python3-flake8
+BuildRequires:  python3-django
+Requires:       python3-django
+BuildRequires:  python3-coverage
+Requires:       python3-coverage
+
+%description -n python3-django-federated-login
+Django Federated Login provides an authentication bridge between
+Django projects and OpenID-enabled identity providers. The bridge is
+pre-wired to be used with a single Google Apps domain, but could be
+extended to be linked with other OpenID providers also. It is different
+from other OpenID consumers as this consumer only allows connecting to
+a pre-defined identity provider.
+
+The provided backend matches users based on the e-mail address returned
+from the identity provider. If no matching user could be found, a user
+account can optionally be created.
+
+%endif
+
 %prep
 %setup -q -n  %{pkgname}-%{version}
 rm -rf %{pkgname}.egg-info
 
+%if 0%{?with_python3}
+cp -a . %{py3dir}
+%endif
+
 %build
 python setup.py build
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
+
 %install
 python setup.py install --skip-build --root %{buildroot}
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endi
+
 %check
 flake8 federated_login example tests
 
+%if 0%{?with_python3}
+pushd %{py3dir}
+flake8 federated_login example tests
+popd
+%endif
+
 %files
 %doc README.rst LICENSE.txt
 %{python_sitelib}/federated_login
@@ -57,6 +114,15 @@ flake8 federated_login example tests
 %{python_sitelib}/tests
 %{python_sitelib}/django_federated_login-*.egg-info
 
+%if 0%{?with_python3}
+%files -n python3-django-federated-login
+%doc README.rst LICENSE.txt
+%{python3_sitelib}/federated_login
+%{python3_sitelib}/example
+%{python3_sitelib}/tests
+%{python3_sitelib}/django_federated_login-*.egg-info
+%endif
+
 %changelog
 * Tue Apr 01 2014 Luis Bazan <lbazan at fedoraproject.org> - 1.0.0-4
 - eliminating support for python3 


More information about the scm-commits mailing list