From 9acacab8a2dd55aec7ff24c0746a217523a9bcaab78c529def010b90474e7dc1 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 5 Jun 2025 06:08:13 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dpkt?expand=0&rev=33 --- python-dpkt.changes | 6 ++++++ python-dpkt.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-dpkt.changes b/python-dpkt.changes index 2ee6a5c..ba25072 100644 --- a/python-dpkt.changes +++ b/python-dpkt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 5 06:03:56 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Nov 12 08:50:28 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-dpkt.spec b/python-dpkt.spec index 8cbc73b..02f4a19 100644 --- a/python-dpkt.spec +++ b/python-dpkt.spec @@ -1,7 +1,7 @@ # # spec file for package python-dpkt # -# Copyright (c) 2024 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-%{**}} %{?sle15allpythons} Name: python-dpkt Version: 1.9.8 @@ -26,8 +25,10 @@ License: BSD-3-Clause Group: Development/Libraries/Python URL: https://github.com/kbandla/dpkt Source: https://github.com/kbandla/dpkt/archive/v%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -45,10 +46,10 @@ the basic TCP/IP protocols. sed -i -e '/addopts=/d' setup.cfg %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -57,6 +58,7 @@ sed -i -e '/addopts=/d' setup.cfg %files %{python_files} %license LICENSE %doc examples AUTHORS README.md docs -%{python_sitelib}/* +%{python_sitelib}/dpkt +%{python_sitelib}/dpkt-%{version}.dist-info %changelog