|
|
f7411d7 |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
f7411d7 |
%global service designate
|
|
|
f7411d7 |
%global common_desc Client library and command line utility for interacting with Openstack Designate API
|
|
|
f7411d7 |
|
|
|
f7411d7 |
Name: python-%{service}client
|
|
|
f7411d7 |
Version: 2.0.0
|
|
|
5ac4cde |
Release: 2%{?dist}
|
|
|
f7411d7 |
Summary: Python API and CLI for OpenStack Designate
|
|
|
f7411d7 |
|
|
|
f7411d7 |
License: ASL 2.0
|
|
|
f7411d7 |
URL: http://launchpad.net/python-%{service}client/
|
|
|
f7411d7 |
Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}%{?milestone}.tar.gz
|
|
|
f7411d7 |
|
|
|
f7411d7 |
BuildArch: noarch
|
|
|
f7411d7 |
|
|
|
f7411d7 |
BuildRequires: python2-devel
|
|
|
f7411d7 |
BuildRequires: python-setuptools
|
|
|
f7411d7 |
BuildRequires: python-pbr
|
|
|
f7411d7 |
BuildRequires: python-d2to1
|
|
|
f7411d7 |
|
|
|
f7411d7 |
# TODO: Delorean does not provide proper version yet
|
|
|
f7411d7 |
Requires: python-cliff
|
|
|
f7411d7 |
#Requires: python-cliff >= 1.10.0
|
|
|
f7411d7 |
Requires: python-jsonschema >= 2.0.0
|
|
|
f7411d7 |
Requires: python-pbr
|
|
|
f7411d7 |
Requires: python-keystoneclient >= 1.1.0
|
|
|
f7411d7 |
Requires: python-requests >= 2.2.0
|
|
|
f7411d7 |
Requires: python-six >= 1.9.0
|
|
|
f7411d7 |
# TODO: Delorean does not provide proper version yet
|
|
|
f7411d7 |
Requires: python-stevedore
|
|
|
f7411d7 |
#Requires: python-stevedore >= 1.3.0
|
|
Alan Pevec |
8134226 |
|
|
Victoria Martínez de la Cruz |
6969687 |
|
|
Victoria Martínez de la Cruz |
6969687 |
%description
|
|
|
f7411d7 |
%{common_desc}
|
|
|
f7411d7 |
|
|
|
f7411d7 |
|
|
|
f7411d7 |
%package tests
|
|
|
f7411d7 |
Summary: Designate client tests
|
|
|
f7411d7 |
Requires: %{name} = %{version}-%{release}
|
|
|
f7411d7 |
|
|
|
f7411d7 |
|
|
|
f7411d7 |
%description tests
|
|
|
f7411d7 |
%{common_desc}
|
|
|
f7411d7 |
|
|
|
f7411d7 |
This package contains Designate client test files.
|
|
|
f7411d7 |
|
|
Victoria Martínez de la Cruz |
6969687 |
|
|
Victoria Martínez de la Cruz |
6969687 |
%prep
|
|
|
f7411d7 |
%setup -q -n %{name}-%{upstream_version}
|
|
|
f7411d7 |
|
|
Victoria Martínez de la Cruz |
6969687 |
|
|
Victoria Martínez de la Cruz |
6969687 |
%build
|
|
|
f7411d7 |
export PBR_VERSION=%{version}
|
|
|
f7411d7 |
export SKIP_PIP_INSTALL=1
|
|
Victoria Martínez de la Cruz |
6969687 |
%{__python2} setup.py build
|
|
Victoria Martínez de la Cruz |
6969687 |
|
|
|
f7411d7 |
|
|
|
f7411d7 |
%check
|
|
|
f7411d7 |
# TODO: add unit test run as a build step
|
|
|
f7411d7 |
|
|
|
f7411d7 |
|
|
Victoria Martínez de la Cruz |
6969687 |
%install
|
|
|
f7411d7 |
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
f7411d7 |
|
|
Victoria Martínez de la Cruz |
6969687 |
|
|
Alan Pevec |
2d0dbc4 |
%files
|
|
Victoria Martínez de la Cruz |
6969687 |
%license LICENSE
|
|
|
f7411d7 |
%doc README.rst
|
|
|
f7411d7 |
%{_bindir}/%{service}
|
|
|
f7411d7 |
%{python2_sitelib}/%{service}client
|
|
|
f7411d7 |
%{python2_sitelib}/python_%{service}client-*.egg-info
|
|
|
f7411d7 |
%exclude %{python2_sitelib}/%{service}client/tests
|
|
Victoria Martínez de la Cruz |
6969687 |
|
|
|
d9cf6b3 |
|
|
|
f7411d7 |
%files tests
|
|
|
f7411d7 |
%license LICENSE
|
|
|
f7411d7 |
%{python2_sitelib}/%{service}client/tests
|
|
Alan Pevec |
8134226 |
|
|
|
b281c6d |
|
|
|
f7411d7 |
%changelog
|
|
|
5ac4cde |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
|
|
|
5ac4cde |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
5ac4cde |
|
|
|
f7411d7 |
* Wed Mar 23 2016 RDO <rdo-list@redhat.com> 2.0.0-0.1
|
|
|
f7411d7 |
- Rebuild for Mitaka
|