17
0
Files
python-designateclient/python-designateclient.spec
Thomas Bechtold 0eef12d3f7 - update to 1.4.0:
* Convert byte to str for py3 compatibilty
  * Updated from global requirements
  * Updated from global requirements
  * Add some missing Unit Tests to test_utils.py
  * Solve some py3 compatibilty issues
  * Fix py3 compatibilty issues
  * Updated from global requirements
  * Replacing print with print() to provide py 2/3 compatibility
  * Updated from global requirements
  * Updated from global requirements
  * Fix for ttl values
  * Log error message from EndpointNotFound exceptions
  * Removed peronal email address from example
  * Updated from global requirements
  * Fix backwards compat for edit_managed/all_tenants
  * Add .eggs to gitignore
  * Add backwards compat for edit_managed/all_tenants
  * Updated from global requirements
  * Updated from global requirements
  * Updated from global requirements
  * Update github link
  * Sync tox.ini and add py34
  * Use oslosphinx from PyPi
  * Drop incubating theme from docs
  * Move all_tenants and edit_managed attributes to designate Client
  * Log a more informative error upon EndpointNotFound
  * Updated from global requirements
  * V2 Bindings
  * Add --edit-managed flag to cli

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-designateclient?expand=0&rev=9
2015-09-14 09:39:48 +00:00

103 lines
3.3 KiB
RPMSpec

#
# spec file for package python-designateclient
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define component designateclient
Name: python-%{component}
Version: 1.4.0
Release: 0
Summary: Openstack DNS (Designate) API Client
License: Apache-2.0
Group: Development/Languages/Python
Url: http://launchpad.net/python-designateclient
Source: https://pypi.python.org/packages/source/p/python-designateclient/python-designateclient-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: openstack-suse-macros
BuildRequires: python-devel
BuildRequires: python-pbr >= 0.5.21
# Documentation requirements:
BuildRequires: python-Sphinx >= 1.1.2
# Test requirements:
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
BuildRequires: python-discover
%endif
BuildRequires: python-keystoneclient
BuildRequires: python-mock
BuildRequires: python-mox >= 0.5.3
BuildRequires: python-oslotest
BuildRequires: python-python-subunit
BuildRequires: python-requests-mock
BuildRequires: python-testrepository >= 0.0.17
Requires: python >= 2.6.8
Requires: python-cliff >= 1.13.0
Requires: python-debtcollector >= 0.3.0
Requires: python-jsonschema >= 2.0.0
Requires: python-keystoneclient >= 1.6.0
Requires: python-oslo.utils >= 1.9.0
Requires: python-pbr >= 1.3
Requires: python-requests >= 2.5.2
Requires: python-six >= 1.9.0
Requires: python-stevedore >= 1.5.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
Provides: %{name}-test = %{version}
Obsoletes: %{name}-test < %{version}
%description
This is a client for the OpenStack Designate API. There's a Python API
(the designateclient module), and a command-line tool (designate).
%package doc
Summary: Openstack DNS (Designate) API Client - Documentation
Group: Documentation/HTML
Requires: %{name} = %{version}
%description doc
This package contains documentation files for %{name}.
%prep
%setup -q
%openstack_cleanup_prep
%build
python setup.py build
python setup.py build_sphinx && rm doc/build/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-data=%{python_sitelib}
%fdupes doc
%check
testr init && testr run --parallel
%files
%defattr(-,root,root,-)
%doc README.rst
%{_bindir}/designate
%{python_sitelib}/%{component}/
%{python_sitelib}/python_%{component}-*.egg-info
%files doc
%defattr(-,root,root,-)
%doc doc/build/html
%changelog