From 761cc0b0c7ef47d8d01afb2c617fb5ce148d2c10c2f93f3adae9c5afcde3fd3a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 28 Feb 2024 04:55:20 +0000 Subject: [PATCH] - Switch to %patch macro. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ncclient?expand=0&rev=12 --- python-ncclient.changes | 5 +++++ python-ncclient.spec | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/python-ncclient.changes b/python-ncclient.changes index ba676a6..f2ecfbc 100644 --- a/python-ncclient.changes +++ b/python-ncclient.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 28 04:55:02 UTC 2024 - Steve Kowalik + +- Switch to %patch macro. + ------------------------------------------------------------------- Thu Dec 7 22:36:06 UTC 2023 - Dirk Müller diff --git a/python-ncclient.spec b/python-ncclient.spec index 777b43d..2e03cd3 100644 --- a/python-ncclient.spec +++ b/python-ncclient.spec @@ -1,7 +1,7 @@ # # spec file for package python-ncclient # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,14 +16,11 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 Name: python-ncclient Version: 0.6.15 Release: 0 Summary: Python library for NETCONF clients License: Apache-2.0 -Group: Development/Languages/Python URL: https://ncclient.readthedocs.io/en/latest/ Source: https://github.com/ncclient/ncclient/archive/v%{version}.tar.gz#/ncclient-%{version}.tar.gz # PATCH-FIX-OPENSUSE allow_old_sphinx.patch mcepl@suse.com @@ -61,7 +58,7 @@ This package contains documentation files for %{name}. %prep %setup -q -n ncclient-%{version} %if 0%{?suse_version} < 1550 -%patch0 -p1 +%patch -P 0 %endif find examples/ -name "*.py" -exec sed -i 's|#!/usr/bin/env python$|#!/usr/bin/python|g' {} \;