python-ncclient/python-ncclient.spec

85 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-ncclient
#
Accepting request 686886 from Cloud:OpenStack:Factory - update to version v0.6.3 * Housekeeping & Cleaning * Log sent and received messages at level INFO. Fixes #167 * - move known_hosts_lookup (the host entry in known_hosts, with optional port number appended) * First draft of versioning with versioneer (#269) * revert to raising SSHError * fix: add missing placeholder in exception string * Updates to re-enable Python 3.7 (#249) * Updates for 0.5.4 and 0.6.0 * SSH Host key checking (#280) * check for transform_reply type (#270) * Change superclass call style to keep tests happy * SSH Host key checking * Fix homepage link registered with PyPi (#274) * more tests * invoke self.parse() to ensure errors, if any, have been detetcted before check in ok() (#286) * Avoid spurious SessionCloseError when intentionally closing session. (#268) * Minor edits * Revert "Fixes to unit tests to account for use of selectors" * Close the channel when closing SSH session * Revert "fixes to tests for python2.7" * add Huawei device support through YANG (#1) (#242) * Revert "use selectors instead of select; improve performance of base 1.0 or 1.1 selection" * instructions for running unit tests locally * updated README.md in preparation for 0.6.1 release * netconf:base:1.1 parsing improvements (#267) * Add session as extra context to session-related logs * Include host in log message as well, as session-id is not globally unique * fix: comments & whitespace tidy * removed Manager class metaclass and modified operation lookup to __getattr__ (#200) OBS-URL: https://build.opensuse.org/request/show/686886 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ncclient?expand=0&rev=8
2019-03-20 12:22:21 +00:00
# Copyright (c) 2019 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.
Accepting request 686886 from Cloud:OpenStack:Factory - update to version v0.6.3 * Housekeeping & Cleaning * Log sent and received messages at level INFO. Fixes #167 * - move known_hosts_lookup (the host entry in known_hosts, with optional port number appended) * First draft of versioning with versioneer (#269) * revert to raising SSHError * fix: add missing placeholder in exception string * Updates to re-enable Python 3.7 (#249) * Updates for 0.5.4 and 0.6.0 * SSH Host key checking (#280) * check for transform_reply type (#270) * Change superclass call style to keep tests happy * SSH Host key checking * Fix homepage link registered with PyPi (#274) * more tests * invoke self.parse() to ensure errors, if any, have been detetcted before check in ok() (#286) * Avoid spurious SessionCloseError when intentionally closing session. (#268) * Minor edits * Revert "Fixes to unit tests to account for use of selectors" * Close the channel when closing SSH session * Revert "fixes to tests for python2.7" * add Huawei device support through YANG (#1) (#242) * Revert "use selectors instead of select; improve performance of base 1.0 or 1.1 selection" * instructions for running unit tests locally * updated README.md in preparation for 0.6.1 release * netconf:base:1.1 parsing improvements (#267) * Add session as extra context to session-related logs * Include host in log message as well, as session-id is not globally unique * fix: comments & whitespace tidy * removed Manager class metaclass and modified operation lookup to __getattr__ (#200) OBS-URL: https://build.opensuse.org/request/show/686886 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ncclient?expand=0&rev=8
2019-03-20 12:22:21 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-ncclient
Version: 0.6.4
Release: 0
Summary: Python library for NETCONF clients
License: Apache-2.0
Group: Development/Languages/Python
Url: http://ncclient.org
Source: https://files.pythonhosted.org/packages/source/n/ncclient/ncclient-%{version}.tar.gz
Patch0: sphinx-use-imgmath-extension.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-lxml >= 3.3.0
Requires: python-paramiko >= 1.15.0
%ifpython2
Accepting request 686886 from Cloud:OpenStack:Factory - update to version v0.6.3 * Housekeeping & Cleaning * Log sent and received messages at level INFO. Fixes #167 * - move known_hosts_lookup (the host entry in known_hosts, with optional port number appended) * First draft of versioning with versioneer (#269) * revert to raising SSHError * fix: add missing placeholder in exception string * Updates to re-enable Python 3.7 (#249) * Updates for 0.5.4 and 0.6.0 * SSH Host key checking (#280) * check for transform_reply type (#270) * Change superclass call style to keep tests happy * SSH Host key checking * Fix homepage link registered with PyPi (#274) * more tests * invoke self.parse() to ensure errors, if any, have been detetcted before check in ok() (#286) * Avoid spurious SessionCloseError when intentionally closing session. (#268) * Minor edits * Revert "Fixes to unit tests to account for use of selectors" * Close the channel when closing SSH session * Revert "fixes to tests for python2.7" * add Huawei device support through YANG (#1) (#242) * Revert "use selectors instead of select; improve performance of base 1.0 or 1.1 selection" * instructions for running unit tests locally * updated README.md in preparation for 0.6.1 release * netconf:base:1.1 parsing improvements (#267) * Add session as extra context to session-related logs * Include host in log message as well, as session-id is not globally unique * fix: comments & whitespace tidy * removed Manager class metaclass and modified operation lookup to __getattr__ (#200) OBS-URL: https://build.opensuse.org/request/show/686886 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ncclient?expand=0&rev=8
2019-03-20 12:22:21 +00:00
Requires: python-selectors2 >= 2.0.1
%endif
Requires: python-setuptools > 0.6
Requires: python-six
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module lxml >= 3.3.0}
BuildRequires: %{python_module paramiko >= 1.15.0}
BuildRequires: %{python_module setuptools > 0.6}
BuildRequires: %{python_module six}
%endif
%python_subpackages
%description
ncclient is a Python library that facilitates client-side scripting
and application development around the NETCONF protocol.
%package -n python-ncclient-doc
Summary: Python NETCONF protocol library - Documentation
Group: Documentation/HTML
BuildRequires: %{python_module Sphinx-latex}
BuildRequires: %{python_module Sphinx}
BuildRequires: texlive-dvipng
Provides: %{python_module python-ncclient-doc = %{version}}
%description -n python-ncclient-doc
This package contains documentation files for %{name}.
%prep
%setup -q -n ncclient-%{version}
%patch0
%build
%python_build
cd docs && make %{?_smp_mflags} html && rm build/html/.buildinfo
%install
%python_install
%fdupes %{buildroot}
%files %{python_files}
%license LICENSE
%{python_sitelib}/*
%files -n python-ncclient-doc
%doc README README.rst examples docs/build/html
%changelog