From 2563b39a0f35a50e7c206ec2e4c06c90e64a4eba1c7175da23a641f2d8e1fb7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 28 May 2025 12:11:49 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ifconfig-parser?expand=0&rev=3 --- python-ifconfig-parser.changes | 5 +++++ python-ifconfig-parser.spec | 18 ++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/python-ifconfig-parser.changes b/python-ifconfig-parser.changes index 5b0b4eb..12f2f1b 100644 --- a/python-ifconfig-parser.changes +++ b/python-ifconfig-parser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 28 12:11:31 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun Feb 16 20:07:57 UTC 2020 - Martin Hauke diff --git a/python-ifconfig-parser.spec b/python-ifconfig-parser.spec index 72c48cc..5ad3a1a 100644 --- a/python-ifconfig-parser.spec +++ b/python-ifconfig-parser.spec @@ -1,7 +1,7 @@ # # spec file for package python-ifconfig-parser # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -12,22 +12,24 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-ifconfig-parser Version: 0.0.5 Release: 0 -License: MIT Summary: Python package for parsing raw output of ifconfig -Url: https://github.com/KnightWhoSayNi/ifconfig-parser +License: MIT Group: Development/Languages/Python +URL: https://github.com/KnightWhoSayNi/ifconfig-parser Source: https://files.pythonhosted.org/packages/source/i/ifconfig-parser/ifconfig-parser-%{version}.tar.gz Source1: https://raw.githubusercontent.com/KnightWhoSayNi/ifconfig-parser/master/LICENSE -BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages @@ -41,10 +43,10 @@ sed -i -e '/^#!\//, 1d' ifconfigparser/*.py rm -f ifconfig_parser.egg-info/.gitignore %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} #%%check