a03be02
%global pypi_name keystoneauth1
a03be02
a03be02
%if 0%{?fedora}
a03be02
%global with_python3 1
a03be02
%endif
a03be02
a03be02
Name:       python-%{pypi_name}
Alan Pevec b63c6e0
Version:    1.1.0
85015e3
Release:    3%{?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
a03be02
BuildRequires: python2-devel
a03be02
BuildRequires: python-setuptools
a03be02
BuildRequires: python-six
a03be02
BuildRequires: python-pbr
a03be02
a03be02
Requires:      python-stevedore
a03be02
Requires:      python-iso8601 >= 0.1.9
a03be02
Requires:      python-oslo-config
a03be02
Requires:      python-requests >= 2.5.2
a03be02
Requires:      python-six => 1.9.0
a03be02
Alan Pevec b5fc70a
# test requres
Alan Pevec b5fc70a
BuildRequires: python-testrepository
Alan Pevec b5fc70a
BuildRequires: python-oslotest
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
a03be02
BuildRequires: python3-pbr >= 1.3
a03be02
BuildRequires: python3-sphinx
a03be02
a03be02
Requires:      python3-stevedore
a03be02
Requires:      python3-iso8601 >= 0.1.9
a03be02
Requires:      python3-oslo-config
a03be02
Requires:      python3-requests >= 2.5.2
a03be02
Requires:      python3-six => 1.9.0
a03be02
Alan Pevec b5fc70a
# test requres
Alan Pevec b5fc70a
BuildRequires: python3-testrepository
Alan Pevec b5fc70a
BuildRequires: python3-oslotest
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
a03be02
%setup -q -n %{pypi_name}-%{version}
a03be02
a03be02
# Let RPM handle the dependencies
a03be02
rm -f test-requirements.txt 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
a03be02
%if 0%{?with_python3}
a03be02
%py3_install
a03be02
%endif
a03be02
%py2_install
a03be02
a03be02
export PYTHONPATH="$( pwd ):$PYTHONPATH"
a03be02
pushd doc
a03be02
make html
a03be02
popd
a03be02
a03be02
# Fix hidden-file-or-dir warnings
a03be02
rm -fr doc/build/html/.doctrees doc/build/html/.buildinfo
a03be02
a03be02
%check
a03be02
%{__python2} setup.py test
a03be02
%if 0%{?with_python3}
Alan Pevec b5fc70a
# cleanup testrepository
Alan Pevec b5fc70a
rm -rf .testrepository
a03be02
%{__python3} setup.py test
a03be02
%endif
a03be02
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
a03be02
%files doc
a03be02
%license LICENSE
a03be02
%doc doc/build/html
a03be02
a03be02
%changelog
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