%global with_python3 0 %global pypi_name django_openstack_auth Name: python-django-openstack-auth Version: 3.1.0 Release: 1%{?dist}~mos0 Summary: Django authentication backend for OpenStack Keystone License: ASL 2.0 Group: Development/Languages/Python URL: http://docs.openstack.org/developer/django_openstack_auth/ Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildRequires: openstack-macros BuildArch: noarch %description Django OpenStack Auth is a pluggable Django authentication backend that works with Django's ``contrib.auth`` framework to authenticate a user against OpenStack's Keystone Identity API. The current version is designed to work with the Keystone V2 API. %package -n python2-django-openstack-auth Summary: Django authentication backend for OpenStack Keystone Provides: python-%{pypi_name} = %{version} Obsoletes: python-%{pypi_name} < %{version} BuildRequires: gettext BuildRequires: python-django >= 1.8 BuildRequires: python-devel BuildRequires: python-keystoneauth1 >= 2.17.0 BuildRequires: python-keystoneclient >= 3.8.0 BuildRequires: python-mock >= 2.0 BuildRequires: python-mox3 >= 0.7.0 BuildRequires: python-oslo-policy >= 1.17.0 BuildRequires: python-oslotest >= 1.10.0 BuildRequires: python-pbr >= 1.8 BuildRequires: python-sphinx BuildRequires: python-oslo-sphinx >= 2.3.0 BuildRequires: python-setuptools >= 16.0 BuildRequires: python-testscenarios >= 0.4 Requires: python-django >= 1.8 Requires: python-keystoneauth1 >= 2.17.0 Requires: python-keystoneclient >= 3.8.0 Requires: python-oslo-config >= 3.14.0 Requires: python-oslo-policy >= 1.17.0 Requires: python-pbr >= 1.8 Requires: python-six >= 1.9.0 %description -n python2-django-openstack-auth Django OpenStack Auth is a pluggable Django authentication backend that works with Django's ``contrib.auth`` framework to authenticate a user against OpenStack's Keystone Identity API. The current version is designed to work with the Keystone V2 API. %if 0%{?with_python3} %package -n python3-django-openstack-auth Summary: Django authentication backend for OpenStack Keystone BuildRequires: gettext BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-sphinx >= 1.2.1 BuildRequires: python3-keystoneclient >= 3.8.0 BuildRequires: python3-iso8601 BuildRequires: python3-pbr >= 1.8 BuildRequires: python3-netaddr BuildRequires: python3-oslo-sphinx >= 4.7.0 BuildRequires: python3-oslo-config >= 3.14.0 BuildRequires: python3-oslo-policy >= 1.17.0 BuildRequires: python3-mock >= 2.0 BuildRequires: python3-mox3 >= 0.7.0 BuildRequires: python3-testscenarios >= 0.4 BuildRequires: python3-django >= 1.8 Requires: python3-django >= 1.8 Requires: python3-keystoneauth1 >= 2.17.0 Requires: python3-keystoneclient >= 1:3.8.0 Requires: python3-six >= 1.9.0 Requires: python3-oslo-config >= 3.14.0 Requires: python3-oslo-policy >= 1.17.0 Requires: python3-pbr >= 1.8 %description -n python3-django-openstack-auth Django OpenStack Auth is a pluggable Django authentication backend that works with Django's ``contrib.auth`` framework to authenticate a user against OpenStack's Keystone Identity API. The current version is designed to work with the Keystone V2 API. %endif %prep %autosetup -n %{pypi_name}-%{version} rm -f {test-,}requirements.txt %build %py2_build %if 0%{?with_python3} %{__python3} setup.py build %endif # generate html docs %{__python2} setup.py build_sphinx # remove the Sphinx-build leftovers rm -r doc/build/html/.buildinfo %install %py2_install # don't include tests in the RPM rm -rf %{buildroot}/%{python_sitelib}/openstack_auth/tests # compile mo files from po files (cd %{buildroot}%{python2_sitelib}/openstack_auth && %{_bindir}/django-admin compilemessages) # Remove po files find %{buildroot}%{python2_sitelib} -name "*.po" -delete -print %find_lang django --all-name %if 0%{?with_python3} %{__python3} setup.py install --skip-build --root %{buildroot} %endif %check PYTHONPATH=. %{__python2} openstack_auth/tests/run_tests.py %files -n python2-django-openstack-auth -f django.lang %license LICENSE %doc README.rst %dir %{python2_sitelib}/openstack_auth %{python2_sitelib}/openstack_auth/locale %{python2_sitelib}/openstack_auth/*.py* %{python2_sitelib}/openstack_auth/plugin %{python2_sitelib}/%{pypi_name}-*.egg-info %if 0%{?with_python3} %files -n python3-django-openstack-auth -f django.lang %license LICENSE %doc README.rst %dir %{python2_sitelib}/openstack_auth %{python3_sitelib}/openstack_auth/locale %{python3_sitelib}/openstack_auth/*.py* %{python3_sitelib}/openstack_auth/plugin %{python3_sitelib}/%{pypi_name}-*.egg-info %endif %changelog * Thu Jan 19 2017 Andrii Kroshchenko - 3.1.0-1.el7~mos0 - Sync changes with https://github.com/openstack/rpm-packaging/blob/master/openstack/django_openstack_auth/django_openstack_auth.spec.j2 - Fix (build-)depends * Fri Jun 24 2016 Ivan Udovichenko - 2.3.0-1.el7~mos0 - Fix (build-)dependencies. * Thu Nov 19 2015 Ivan Udovichenko 2.0.1-1%{?dist}~mos8.0.1 - SOURCE/*.patch: Remove all patches as changes are already in the source code. - Raise version up according to a new tag - 2.0.1 * Thu Oct 08 2015 Valeriy Sakharov - 2.0.0-1%{?dist}~mos8.0.2 - Added Translate-update.patch * Thu Sep 24 2015 Alexander Tsamutali - 2.0.0-1%{?dist}~mos8.0.1 - Rebuild for MOS 8.0. * Tue Sep 22 2015 Matthias Runge - 2.0.0-1 - update to 2.0.0 - (theoretically) support python3 - really execute tests * Fri Aug 21 2015 Matthias Runge - 1.2.0-5 - backport initialize hasher for unscoped token - backport Extend User from AbstractBaseUser - backport configurable token hasing - use unscoped token for scoping the project * Fri Jun 19 2015 Matthias Runge - 1.2.0-4 - "App 'openstack_auth' doesn't have a 'user' model." (rhbz#1232683) * Thu Jun 18 2015 Fedora Release Engineering - 1.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri May 08 2015 Alan Pevec - 1.2.0-2 - update Use AbstractUser instead of AnonymousUser (mrunge) Fixes rhbz#1218894 rhbz#1218899 - drop pbr.version removal * Tue Apr 14 2015 Matthias Runge - 1.2.0-1 - rebase to 1.2.0 - Use AbstractUser instead of AnonymousUser * Wed Feb 04 2015 Matthias Runge - 1.1.9-1 - rebase to 1.1.9 (rhbz#1145024) * Thu Dec 11 2014 Matthias Runge - 1.1.7-3 - fix CVE-2014-8124 (rhbz#1170421) * Thu Nov 13 2014 Matthias Runge - 1.1.7-2 - own locale dirs (rhbz#1163362) * Fri Sep 26 2014 Matthias Runge - 1.1.7-1 - update to 1.1.7 (rhbz#1145024) * Thu Sep 11 2014 Matthias Runge - 1.1.6-3 - spec cleanup * Mon Aug 25 2014 Matthias Runge - 1.1.6-2 - bump version * Mon Jun 23 2014 Matthias Runge - 1.1.6-1 - update to 1.1.6 (rhbz#1111877)