2 %global pypi_name django_openstack_auth
4 Name: python-django-openstack-auth
6 Release: 1%{?dist}~mos0
7 Summary: Django authentication backend for OpenStack Keystone
9 Group: Development/Languages/Python
10 URL: http://docs.openstack.org/developer/django_openstack_auth/
11 Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
12 BuildRequires: openstack-macros
17 Django OpenStack Auth is a pluggable Django authentication backend that
18 works with Django's ``contrib.auth`` framework to authenticate a user against
19 OpenStack's Keystone Identity API.
21 The current version is designed to work with the
24 %package -n python2-django-openstack-auth
25 Summary: Django authentication backend for OpenStack Keystone
27 Provides: python-%{pypi_name} = %{version}
28 Obsoletes: python-%{pypi_name} < %{version}
30 BuildRequires: gettext
31 BuildRequires: python-django >= 1.8
32 BuildRequires: python-devel
33 BuildRequires: python-keystoneauth1 >= 2.17.0
34 BuildRequires: python-keystoneclient >= 3.8.0
35 BuildRequires: python-mock >= 2.0
36 BuildRequires: python-mox3 >= 0.7.0
37 BuildRequires: python-oslo-policy >= 1.17.0
38 BuildRequires: python-oslotest >= 1.10.0
39 BuildRequires: python-pbr >= 1.8
40 BuildRequires: python-sphinx
41 BuildRequires: python-oslo-sphinx >= 2.3.0
42 BuildRequires: python-setuptools >= 16.0
43 BuildRequires: python-testscenarios >= 0.4
44 Requires: python-django >= 1.8
45 Requires: python-keystoneauth1 >= 2.17.0
46 Requires: python-keystoneclient >= 3.8.0
47 Requires: python-oslo-config >= 3.14.0
48 Requires: python-oslo-policy >= 1.17.0
49 Requires: python-pbr >= 1.8
50 Requires: python-six >= 1.9.0
52 %description -n python2-django-openstack-auth
53 Django OpenStack Auth is a pluggable Django authentication backend that
54 works with Django's ``contrib.auth`` framework to authenticate a user against
55 OpenStack's Keystone Identity API.
57 The current version is designed to work with the
63 %package -n python3-django-openstack-auth
64 Summary: Django authentication backend for OpenStack Keystone
66 BuildRequires: gettext
67 BuildRequires: python3-devel
68 BuildRequires: python3-setuptools
69 BuildRequires: python3-sphinx >= 1.2.1
70 BuildRequires: python3-keystoneclient >= 3.8.0
71 BuildRequires: python3-iso8601
72 BuildRequires: python3-pbr >= 1.8
73 BuildRequires: python3-netaddr
74 BuildRequires: python3-oslo-sphinx >= 4.7.0
75 BuildRequires: python3-oslo-config >= 3.14.0
76 BuildRequires: python3-oslo-policy >= 1.17.0
77 BuildRequires: python3-mock >= 2.0
78 BuildRequires: python3-mox3 >= 0.7.0
79 BuildRequires: python3-testscenarios >= 0.4
80 BuildRequires: python3-django >= 1.8
82 Requires: python3-django >= 1.8
83 Requires: python3-keystoneauth1 >= 2.17.0
84 Requires: python3-keystoneclient >= 1:3.8.0
85 Requires: python3-six >= 1.9.0
86 Requires: python3-oslo-config >= 3.14.0
87 Requires: python3-oslo-policy >= 1.17.0
88 Requires: python3-pbr >= 1.8
90 %description -n python3-django-openstack-auth
91 Django OpenStack Auth is a pluggable Django authentication backend that
92 works with Django's ``contrib.auth`` framework to authenticate a user against
93 OpenStack's Keystone Identity API.
95 The current version is designed to work with the
101 %autosetup -n %{pypi_name}-%{version}
102 rm -f {test-,}requirements.txt
107 %if 0%{?with_python3}
108 %{__python3} setup.py build
112 %{__python2} setup.py build_sphinx
113 # remove the Sphinx-build leftovers
114 rm -r doc/build/html/.buildinfo
119 # don't include tests in the RPM
120 rm -rf %{buildroot}/%{python_sitelib}/openstack_auth/tests
122 # compile mo files from po files
123 (cd %{buildroot}%{python2_sitelib}/openstack_auth && %{_bindir}/django-admin compilemessages)
126 find %{buildroot}%{python2_sitelib} -name "*.po" -delete -print
128 %find_lang django --all-name
130 %if 0%{?with_python3}
131 %{__python3} setup.py install --skip-build --root %{buildroot}
136 PYTHONPATH=. %{__python2} openstack_auth/tests/run_tests.py
138 %files -n python2-django-openstack-auth -f django.lang
141 %dir %{python2_sitelib}/openstack_auth
142 %{python2_sitelib}/openstack_auth/locale
143 %{python2_sitelib}/openstack_auth/*.py*
144 %{python2_sitelib}/openstack_auth/plugin
145 %{python2_sitelib}/%{pypi_name}-*.egg-info
147 %if 0%{?with_python3}
148 %files -n python3-django-openstack-auth -f django.lang
151 %dir %{python2_sitelib}/openstack_auth
152 %{python3_sitelib}/openstack_auth/locale
153 %{python3_sitelib}/openstack_auth/*.py*
154 %{python3_sitelib}/openstack_auth/plugin
155 %{python3_sitelib}/%{pypi_name}-*.egg-info
159 * Thu Jan 19 2017 Andrii Kroshchenko <akroshchenko@mirantis.com> - 3.1.0-1.el7~mos0
160 - Sync changes with https://github.com/openstack/rpm-packaging/blob/master/openstack/django_openstack_auth/django_openstack_auth.spec.j2
161 - Fix (build-)depends
163 * Fri Jun 24 2016 Ivan Udovichenko <iudovichenko@mirantis.com> - 2.3.0-1.el7~mos0
164 - Fix (build-)dependencies.
166 * Thu Nov 19 2015 Ivan Udovichenko <iudovichenko@mirantis.com> 2.0.1-1%{?dist}~mos8.0.1
167 - SOURCE/*.patch: Remove all patches as changes are already in the source code.
168 - Raise version up according to a new tag - 2.0.1
170 * Thu Oct 08 2015 Valeriy Sakharov <vsakharov@mirantis.com> - 2.0.0-1%{?dist}~mos8.0.2
171 - Added Translate-update.patch
173 * Thu Sep 24 2015 Alexander Tsamutali <atsamutali@mirantis.com> - 2.0.0-1%{?dist}~mos8.0.1
174 - Rebuild for MOS 8.0.
176 * Tue Sep 22 2015 Matthias Runge <mrunge@redhat.com> - 2.0.0-1
178 - (theoretically) support python3
179 - really execute tests
181 * Fri Aug 21 2015 Matthias Runge <mrunge@redhat.com> - 1.2.0-5
182 - backport initialize hasher for unscoped token
183 - backport Extend User from AbstractBaseUser
184 - backport configurable token hasing
185 - use unscoped token for scoping the project
187 * Fri Jun 19 2015 Matthias Runge <mrunge@redhat.com> - 1.2.0-4
188 - "App 'openstack_auth' doesn't have a 'user' model." (rhbz#1232683)
190 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
191 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
193 * Fri May 08 2015 Alan Pevec <apevec@redhat.com> - 1.2.0-2
194 - update Use AbstractUser instead of AnonymousUser (mrunge)
195 Fixes rhbz#1218894 rhbz#1218899
196 - drop pbr.version removal
198 * Tue Apr 14 2015 Matthias Runge <mrunge@redhat.com> - 1.2.0-1
200 - Use AbstractUser instead of AnonymousUser
202 * Wed Feb 04 2015 Matthias Runge <mrunge@redhat.com> - 1.1.9-1
203 - rebase to 1.1.9 (rhbz#1145024)
205 * Thu Dec 11 2014 Matthias Runge <mrunge@redhat.com> - 1.1.7-3
206 - fix CVE-2014-8124 (rhbz#1170421)
208 * Thu Nov 13 2014 Matthias Runge <mrunge@redhat.com> - 1.1.7-2
209 - own locale dirs (rhbz#1163362)
211 * Fri Sep 26 2014 Matthias Runge <mrunge@redhat.com> - 1.1.7-1
212 - update to 1.1.7 (rhbz#1145024)
214 * Thu Sep 11 2014 Matthias Runge <mrunge@redhat.com> - 1.1.6-3
217 * Mon Aug 25 2014 Matthias Runge <mrunge@redhat.com> - 1.1.6-2
220 * Mon Jun 23 2014 Matthias Runge <mrunge@redhat.com> - 1.1.6-1
221 - update to 1.1.6 (rhbz#1111877)