- Add plug-in summary for osc doc - Update reno for stable/newton - Ensure X-Designate-Edit-Managed-Records header value is a string - Changed the author and author-email value - Updated from global requirements - Use tempest instead of Tempest-lib - Fix pep8 E501 line too long - record-create/update: Account for priority being 0 - Show team and repo badges on README - Add oslo.config to test-requirements - Ensure X-Auth-All-Projects header value is a string - Enable release notes translation - Replace 'assertTrue(a in b)' with 'assertIn(a, b)' - Fix for bug 1627945 OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-designateclient?expand=0&rev=18
96 lines
2.9 KiB
RPMSpec
96 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-designateclient
|
|
#
|
|
# Copyright (c) 2017 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/
|
|
#
|
|
|
|
|
|
%global sname python-designateclient
|
|
Name: python-designateclient
|
|
Version: 2.4.0
|
|
Release: 0
|
|
Summary: OpenStack DNS as a Service - Client
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
Url: https://launchpad.net/%{sname}
|
|
Source0: https://pypi.io/packages/source/p/%{sname}/%{sname}-%{version}.tar.gz
|
|
BuildRequires: openstack-macros
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-jsonschema >= 2.0.0
|
|
BuildRequires: python-keystoneclient >= 3.8.0
|
|
BuildRequires: python-mock >= 2.0
|
|
BuildRequires: python-oslotest >= 1.10.0
|
|
BuildRequires: python-pbr >= 1.8
|
|
BuildRequires: python-python-subunit >= 0.0.18
|
|
BuildRequires: python-requests-mock >= 1.1
|
|
BuildRequires: python-setuptools >= 16.0
|
|
BuildRequires: python-testrepository >= 0.0.18
|
|
Requires: python-cliff >= 2.3.0
|
|
Requires: python-debtcollector >= 1.2.0
|
|
Requires: python-jsonschema >= 2.0.0
|
|
Requires: python-keystoneauth1 >= 2.17.0
|
|
Requires: python-keystoneclient >= 3.8.0
|
|
Requires: python-osc-lib >= 1.2.0
|
|
Requires: python-oslo.utils >= 3.18.0
|
|
Requires: python-requests >= 2.10.0
|
|
Requires: python-six >= 1.9.0
|
|
Requires: python-stevedore >= 1.17.1
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
OpenStack DNS as a Service - Client
|
|
|
|
%package doc
|
|
Summary: Documentation for the OpenStack DNS as a Service - Client
|
|
Group: Documentation
|
|
BuildRequires: python-Sphinx
|
|
BuildRequires: python-oslosphinx >= 4.7.0
|
|
|
|
%description doc
|
|
Documentation for the OpenStack DNS as a Service - Client.
|
|
|
|
%prep
|
|
%autosetup -n %{sname}-%{version}
|
|
%py_req_cleanup
|
|
|
|
%build
|
|
%py2_build
|
|
|
|
# generate html docs
|
|
%{__python2} setup.py build_sphinx
|
|
# remove the sphinx-build leftovers
|
|
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
|
%install
|
|
%py2_install
|
|
#man pages
|
|
install -p -D -m 644 doc/build/man/python-designateclient.1 %{buildroot}%{_mandir}/man1/python-designateclient.1
|
|
|
|
%check
|
|
%{__python2} setup.py testr
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.rst ChangeLog
|
|
%{python2_sitelib}/designateclient
|
|
%{python2_sitelib}/python_designateclient-%{version}-py2.?.egg-info
|
|
%{_bindir}/designate
|
|
%{_mandir}/man1/python-designateclient.1.*
|
|
|
|
%files doc
|
|
%license LICENSE
|
|
%doc doc/build/html
|
|
|
|
%changelog
|