|
|
a03be02 |
%global pypi_name keystoneauth1
|
|
|
a03be02 |
|
|
|
a03be02 |
%if 0%{?fedora}
|
|
|
a03be02 |
%global with_python3 1
|
|
|
a03be02 |
%endif
|
|
|
a03be02 |
|
|
Alan Pevec |
65d6d18 |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
Alan Pevec |
65d6d18 |
|
|
|
a03be02 |
Name: python-%{pypi_name}
|
|
|
f13df37 |
Version: 2.1.0
|
|
|
f13df37 |
Release: 1%{?dist}
|
|
|
a03be02 |
Summary: Authentication Library for OpenStack Clients
|
|
|
a03be02 |
License: ASL 2.0
|
|
|
a03be02 |
URL: http://pypi.python.org/pypi/%{pypi_name}
|
|
|
a03be02 |
Source0: http://pypi.python.org/packages/source/k/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
a03be02 |
|
|
|
a03be02 |
BuildArch: noarch
|
|
|
a03be02 |
|
|
|
a03be02 |
%description
|
|
|
a03be02 |
Keystoneauth provides a standard way to do authentication and service requests
|
|
|
a03be02 |
within the OpenStack ecosystem. It is designed for use in conjunction with
|
|
|
a03be02 |
the existing OpenStack clients and for simplifying the process of writing
|
|
|
a03be02 |
new clients.
|
|
|
a03be02 |
|
|
|
a03be02 |
%package -n python2-%{pypi_name}
|
|
|
a03be02 |
Summary: Authentication Libarary for OpenStack Identity
|
|
|
a03be02 |
Provides: python-%{pypi_name} = %{version}-%{release}
|
|
|
a03be02 |
Provides: python-keystoneauth = %{version}-%{release}
|
|
|
a03be02 |
|
|
|
f13df37 |
BuildRequires: git
|
|
|
a03be02 |
BuildRequires: python2-devel
|
|
|
a03be02 |
BuildRequires: python-setuptools
|
|
|
a03be02 |
BuildRequires: python-six
|
|
Alan Pevec |
da64f8f |
BuildRequires: python-pbr >= 1.8.0
|
|
|
a03be02 |
|
|
Alan Pevec |
da64f8f |
# test requires
|
|
|
f13df37 |
BuildRequires: python-betamax
|
|
Alan Pevec |
da64f8f |
BuildRequires: python-fixtures >= 1.3.1
|
|
|
f13df37 |
BuildRequires: python-lxml
|
|
|
f13df37 |
BuildRequires: python-requests-kerberos
|
|
Alan Pevec |
b5fc70a |
BuildRequires: python-testrepository
|
|
Alan Pevec |
b5fc70a |
BuildRequires: python-oslotest
|
|
|
f13df37 |
BuildRequires: python-oslo-utils
|
|
|
f13df37 |
|
|
|
f13df37 |
Requires: python-argparse
|
|
|
f13df37 |
Requires: python-iso8601 >= 0.1.9
|
|
Alan Pevec |
da64f8f |
Requires: python-pbr >= 1.8.0
|
|
|
f13df37 |
Requires: python-requests >= 2.9.1
|
|
|
f13df37 |
Requires: python-six => 1.9.0
|
|
|
f13df37 |
Requires: python-stevedore >= 1.5.0
|
|
Alan Pevec |
b5fc70a |
|
|
|
a03be02 |
%description -n python2-%{pypi_name}
|
|
|
a03be02 |
Keystoneauth provides a standard way to do authentication and service requests
|
|
|
a03be02 |
within the OpenStack ecosystem. It is designed for use in conjunction with
|
|
|
a03be02 |
the existing OpenStack clients and for simplifying the process of writing
|
|
|
a03be02 |
new clients.
|
|
|
a03be02 |
|
|
|
a03be02 |
%if 0%{?with_python3}
|
|
|
a03be02 |
%package -n python3-%{pypi_name}
|
|
|
a03be02 |
Summary: Authentication Libarary for OpenStack Identity
|
|
|
a03be02 |
Provides: python3-keystoneauth = %{version}-%{release}
|
|
|
a03be02 |
|
|
|
a03be02 |
BuildRequires: python3-devel
|
|
|
a03be02 |
BuildRequires: python3-setuptools
|
|
Alan Pevec |
da64f8f |
BuildRequires: python3-pbr >= 1.8.0
|
|
|
a03be02 |
BuildRequires: python3-sphinx
|
|
|
a03be02 |
|
|
Alan Pevec |
b5fc70a |
# test requres
|
|
|
f13df37 |
BuildRequires: python3-betamax
|
|
|
f13df37 |
BuildRequires: python3-fixtures >= 1.3.1
|
|
|
f13df37 |
BuildRequires: python3-lxml
|
|
Alan Pevec |
b5fc70a |
BuildRequires: python3-testrepository
|
|
Alan Pevec |
b5fc70a |
BuildRequires: python3-oslotest
|
|
|
f13df37 |
BuildRequires: python3-oslo-utils
|
|
|
f13df37 |
|
|
|
f13df37 |
Requires: python3-argparse
|
|
|
f13df37 |
Requires: python3-iso8601 >= 0.1.9
|
|
Alan Pevec |
da64f8f |
Requires: python3-pbr >= 1.8.0
|
|
|
f13df37 |
Requires: python3-requests >= 2.9.1
|
|
|
f13df37 |
Requires: python3-six => 1.9.0
|
|
|
f13df37 |
Requires: python3-stevedore >= 1.5.0
|
|
|
a03be02 |
|
|
|
a03be02 |
%description -n python3-%{pypi_name}
|
|
|
a03be02 |
Keystoneauth provides a standard way to do authentication and service requests
|
|
|
a03be02 |
within the OpenStack ecosystem. It is designed for use in conjunction with
|
|
|
a03be02 |
the existing OpenStack clients and for simplifying the process of writing
|
|
|
a03be02 |
new clients.
|
|
|
a03be02 |
%endif
|
|
|
a03be02 |
|
|
|
a03be02 |
%package doc
|
|
|
a03be02 |
Summary: Documentation for OpenStack Identity Authentication Library
|
|
|
a03be02 |
|
|
|
a03be02 |
BuildRequires: python-sphinx
|
|
|
a03be02 |
BuildRequires: python-oslo-sphinx
|
|
|
a03be02 |
BuildRequires: python-mock
|
|
|
a03be02 |
BuildRequires: python-pep8
|
|
|
a03be02 |
BuildRequires: python-requests
|
|
|
a03be02 |
BuildRequires: python-requests-mock
|
|
|
a03be02 |
BuildRequires: python-mox3
|
|
|
a03be02 |
BuildRequires: python-oslo-config
|
|
|
a03be02 |
BuildRequires: python-stevedore
|
|
|
a03be02 |
BuildRequires: python-iso8601
|
|
|
a03be02 |
BuildRequires: python-fixtures
|
|
|
a03be02 |
|
|
|
a03be02 |
%description doc
|
|
|
a03be02 |
Documentation for OpenStack Identity Authentication Library
|
|
|
a03be02 |
|
|
|
a03be02 |
%prep
|
|
Alan Pevec |
65d6d18 |
%autosetup -n %{pypi_name}-%{upstream_version} -S git
|
|
|
f13df37 |
|
|
|
f13df37 |
sed -i '/sphinx.ext.intersphinx.*$/d' doc/source/conf.py
|
|
|
a03be02 |
|
|
|
a03be02 |
# Let RPM handle the dependencies
|
|
|
f13df37 |
rm -rf {test-,}requirements.txt
|
|
|
a03be02 |
# Remove bundled egg-info
|
|
|
a03be02 |
rm -rf %{pypi_name}.egg-info
|
|
|
a03be02 |
|
|
|
a03be02 |
%build
|
|
|
a03be02 |
%py2_build
|
|
|
a03be02 |
%if 0%{?with_python3}
|
|
|
a03be02 |
%py3_build
|
|
|
a03be02 |
%endif
|
|
|
a03be02 |
|
|
|
a03be02 |
%install
|
|
|
f13df37 |
%py2_install
|
|
|
a03be02 |
%if 0%{?with_python3}
|
|
|
a03be02 |
%py3_install
|
|
|
a03be02 |
%endif
|
|
|
a03be02 |
|
|
|
f13df37 |
# generate html docs
|
|
|
f13df37 |
%{__python} setup.py build_sphinx
|
|
|
f13df37 |
rm -rf doc/build/html/.buildinfo
|
|
|
a03be02 |
|
|
|
a03be02 |
%check
|
|
|
f13df37 |
%{__python2} setup.py testr
|
|
|
a03be02 |
%if 0%{?with_python3}
|
|
Alan Pevec |
b5fc70a |
# cleanup testrepository
|
|
Alan Pevec |
b5fc70a |
rm -rf .testrepository
|
|
|
f13df37 |
%{__python3} setup.py testr
|
|
|
a03be02 |
%endif
|
|
|
a03be02 |
|
|
|
a03be02 |
%files -n python2-%{pypi_name}
|
|
|
a03be02 |
%doc README.rst
|
|
|
a03be02 |
%license LICENSE
|
|
|
a03be02 |
%{python2_sitelib}/%{pypi_name}
|
|
|
a03be02 |
%{python2_sitelib}/*.egg-info
|
|
|
a03be02 |
|
|
|
a03be02 |
%if 0%{?with_python3}
|
|
|
a03be02 |
%files -n python3-%{pypi_name}
|
|
|
a03be02 |
%doc README.rst
|
|
|
a03be02 |
%license LICENSE
|
|
|
a03be02 |
%{python3_sitelib}/%{pypi_name}
|
|
|
a03be02 |
%{python3_sitelib}/*.egg-info
|
|
|
a03be02 |
%endif
|
|
|
a03be02 |
|
|
|
a03be02 |
%files doc
|
|
|
a03be02 |
%license LICENSE
|
|
|
a03be02 |
%doc doc/build/html
|
|
|
a03be02 |
|
|
|
a03be02 |
%changelog
|
|
|
f13df37 |
* Fri Feb 05 2016 Paul Belanger <pabelanger@redhat.com> - 2.1.0-1
|
|
|
f13df37 |
- New upstream 2.1.0 release
|
|
|
f13df37 |
- Disable intersphinx to disable downloads from the internet at build time
|
|
|
f13df37 |
- Clean up build and requires dependencies
|
|
|
f13df37 |
- Switch to python setup.py build_sphinx since this is what upstream uses
|
|
|
f13df37 |
|
|
|
473f407 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
|
|
|
473f407 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
473f407 |
|
|
|
85015e3 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
|
|
|
85015e3 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
85015e3 |
|
|
Alan Pevec |
b5fc70a |
* Wed Oct 07 2015 Alan Pevec <alan.pevec@redhat.com> 1.1.0-2
|
|
Alan Pevec |
b5fc70a |
- fix tests (Lukas Bezdicka)
|
|
Alan Pevec |
b5fc70a |
|
|
Alan Pevec |
b63c6e0 |
* Tue Oct 06 2015 Alan Pevec <alan.pevec@redhat.com> 1.1.0-1
|
|
Alan Pevec |
b63c6e0 |
- Update to upstream 1.1.0
|
|
Alan Pevec |
b63c6e0 |
|
|
|
a03be02 |
* Thu Sep 17 2015 Thomas Oulevey <thomas.oulevey@cern.ch> - 1.0.0-1
|
|
|
a03be02 |
- Initial specfile
|