From 411001eb320e3bbbf86c7eab6657f10aa5c02a4707d76d478729bbb7f0399fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 16:11:58 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko-expect?expand=0&rev=14 --- python-paramiko-expect.changes | 5 +++++ python-paramiko-expect.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-paramiko-expect.changes b/python-paramiko-expect.changes index c85ac6b..785838f 100644 --- a/python-paramiko-expect.changes +++ b/python-paramiko-expect.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 16:11:21 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed May 10 06:17:44 UTC 2023 - Dirk Müller diff --git a/python-paramiko-expect.spec b/python-paramiko-expect.spec index 6d6ad57..fa3e390 100644 --- a/python-paramiko-expect.spec +++ b/python-paramiko-expect.spec @@ -1,7 +1,7 @@ # # spec file for package python-paramiko-expect # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-paramiko-expect Version: 0.3.5 @@ -25,7 +24,9 @@ Summary: An expect-like extension for the Paramiko SSH library License: MIT URL: https://github.com/fgimian/paramiko-expect Source: https://files.pythonhosted.org/packages/source/p/paramiko-expect/paramiko-expect-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-paramiko >= 1.10.1 @@ -48,10 +49,10 @@ extended to support a transport in future for more flexibility). %setup -q -n paramiko-expect-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -62,6 +63,7 @@ export LANG=en_US.UTF-8 %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/paramiko[-_]expect +%{python_sitelib}/paramiko[-_]expect-%{version}*-info %changelog From b1015e608c98a817260349d191987d636a6414e83cabf7237b179eaf25af0d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 16:16:13 +0000 Subject: [PATCH 2/2] fix files OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-paramiko-expect?expand=0&rev=15 --- python-paramiko-expect.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python-paramiko-expect.spec b/python-paramiko-expect.spec index fa3e390..9d31810 100644 --- a/python-paramiko-expect.spec +++ b/python-paramiko-expect.spec @@ -63,7 +63,8 @@ export LANG=en_US.UTF-8 %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/paramiko[-_]expect -%{python_sitelib}/paramiko[-_]expect-%{version}*-info +%{python_sitelib}/paramiko_expect.py +%{python_sitelib}/paramiko_expect-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/paramiko_expect* %changelog