From 82f8026f2dbf139f9ca2e5240d1494b7a043369383f26da408f8aeb670a325b3 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 28 Aug 2017 13:31:14 +0000 Subject: [PATCH] Accepting request 514958 from Cloud:OpenStack:Factory 1 OBS-URL: https://build.opensuse.org/request/show/514958 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ncclient?expand=0&rev=6 --- ncclient-0.5.2.tar.gz | 3 -- ncclient-0.5.3.tar.gz | 3 ++ pr-109.patch | 4 +-- python-ncclient.changes | 11 ++++++++ python-ncclient.spec | 62 ++++++++++++++++++++++------------------- 5 files changed, 49 insertions(+), 34 deletions(-) delete mode 100644 ncclient-0.5.2.tar.gz create mode 100644 ncclient-0.5.3.tar.gz diff --git a/ncclient-0.5.2.tar.gz b/ncclient-0.5.2.tar.gz deleted file mode 100644 index db34830..0000000 --- a/ncclient-0.5.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b050423717e7d9751e8c8279452d5b262207a4d1ac2e89c8c6129e5cda17934d -size 61456 diff --git a/ncclient-0.5.3.tar.gz b/ncclient-0.5.3.tar.gz new file mode 100644 index 0000000..d52ee4c --- /dev/null +++ b/ncclient-0.5.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe6b9c16ed5f1b21f5591da74bfdd91a9bdf69eb4e918f1c06b3c8db307bd32b +size 63151 diff --git a/pr-109.patch b/pr-109.patch index b9fd248..e4a23c7 100644 --- a/pr-109.patch +++ b/pr-109.patch @@ -1,10 +1,10 @@ diff --git a/requirements.txt b/requirements.txt -index 6c1ff6c..b833698 100644 +index a586d5c..4109867 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ setuptools>0.6 - paramiko>=1.7.7.1 + paramiko>=1.15.0 -lxml>=3.3.0 +lxml>=3.1 six diff --git a/python-ncclient.changes b/python-ncclient.changes index 9da12d7..0a897de 100644 --- a/python-ncclient.changes +++ b/python-ncclient.changes @@ -1,3 +1,14 @@ + +------------------------------------------------------------------- +Mon Aug 7 08:36:21 UTC 2017 - mardnh@gmx.de + +- Update to 0.5.3 + * Add notifications support + * Add support for ecdsa keys + * Various bug fixes +- Convert to singlespec +- Rebase patch: pr-109.patch + ------------------------------------------------------------------- Sat Sep 3 20:52:24 UTC 2016 - mardnh@gmx.de diff --git a/python-ncclient.spec b/python-ncclient.spec index b2c3085..409f744 100644 --- a/python-ncclient.spec +++ b/python-ncclient.spec @@ -1,7 +1,7 @@ # # spec file for package python-ncclient # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -16,60 +16,64 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-ncclient -Version: 0.5.2 +Version: 0.5.3 Release: 0 -Url: https://github.com/ncclient/ncclient -Summary: Python NETCONF protocol library +Summary: Python library for NETCONF clients License: Apache-2.0 Group: Development/Languages/Python -Source: https://pypi.io/packages/source/n/ncclient/ncclient-%{version}.tar.gz -# PATCH-FIX-UPSTREAM pr-109.patch -- https://github.com/ncclient/ncclient/pull/109 +Url: http://ncclient.org +Source: https://files.pythonhosted.org/packages/source/n/ncclient/ncclient-%{version}.tar.gz Patch0: pr-109.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-base -BuildRequires: python-setuptools -Requires: python-lxml >= 3.1 -Requires: python-paramiko >= 1.7.7.1 -%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 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: %{python_module lxml >= 3.3.0} +Requires: %{python_module paramiko >= 1.15.0} +Requires: %{python_module setuptools > 0.6} +Requires: %{python_module 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 doc +%package -n python-ncclient-doc Summary: Python NETCONF protocol library - Documentation Group: Documentation/HTML -BuildRequires: python-Sphinx -Requires: %{name} = %{version} +BuildRequires: %{python_module Sphinx} +Provides: %{python_module python-ncclient-doc = %{version}} -%description doc +%description -n python-ncclient-doc This package contains documentation files for %{name}. - %prep %setup -q -n ncclient-%{version} %patch0 -p1 %build -python setup.py build -cd docs && make html && rm build/html/.buildinfo +%python_build +cd docs && make %{?_smp_mflags} html && rm build/html/.buildinfo %install -python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%fdupes %{buildroot} -%files -%defattr(-,root,root) +%files %{python_files} %doc LICENSE -%{python_sitelib}/ncclient -%{python_sitelib}/ncclient-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/* -%files doc -%defattr(-,root,root,-) -%doc LICENSE README examples docs/build/html +%files -n python-ncclient-doc +%doc LICENSE README README.rst examples docs/build/html %changelog