%if 0%{?rhel} && 0%{?rhel} <= 6 %{!?__python2: %global __python2 /usr/bin/python2} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif %{!?_licensedir:%global license %%doc} Name: python-keystoneclient-kerberos Version: 0.1.3 Release: 2%{?dist} Summary: Kerberos authentication for the OpenStack clients License: ASL 2.0 URL: https://pypi.python.org/pypi/python-keystoneclient-kerberos Source0: https://pypi.python.org/packages/source/p/python-keystoneclient-kerberos/python-keystoneclient-kerberos-%{version}.tar.gz # remove the dependency on oslotest which is not currently packaged Patch0: 0001-Remove-oslotest-dependency.patch BuildArch: noarch Requires: python-keystoneclient Requires: python-requests-kerberos Requires: python-pbr BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python-keystoneclient BuildRequires: python-requests-kerberos BuildRequires: python-pbr BuildRequires: python-mock BuildRequires: python-requests-mock BuildRequires: python-testrepository BuildRequires: python-testtools BuildRequires: python-testscenarios %description Kerberos authentication for the OpenStack clients. %prep %setup -q -n python-keystoneclient-kerberos-%{version} %patch0 -p1 %build %{__python2} setup.py build %check PBR_VERSION=%{version} %{__python2} -m testtools.run discover %install rm -rf $RPM_BUILD_ROOT %{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %files %doc AUTHORS CONTRIBUTING.rst ChangeLog README.rst %license LICENSE %{python2_sitelib}/keystoneclient_kerberos %{python2_sitelib}/python_keystoneclient_kerberos-%{version}-py2.?.egg-info %changelog * Thu Mar 12 2015 Jamie Lennox 0.1.3-2 - Spec changes in response to code reviews * Mon Mar 9 2015 Jamie Lennox 0.1.3-1 - Initial Package