From 19410226dfc0e20d89da5ce55347eeb29ff7dba932646d3b37b62c4441e4e7b9 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 23 Jun 2025 01:34:22 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evtx?expand=0&rev=27 --- python-evtx.changes | 5 +++++ python-evtx.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-evtx.changes b/python-evtx.changes index af7ffe4..383df90 100644 --- a/python-evtx.changes +++ b/python-evtx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 23 01:30:09 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Fri Aug 23 07:56:38 UTC 2024 - pgajdos@suse.com diff --git a/python-evtx.spec b/python-evtx.spec index 67c57ae..15a894a 100644 --- a/python-evtx.spec +++ b/python-evtx.spec @@ -1,7 +1,7 @@ # # spec file for package python-evtx # -# 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 @@ -32,8 +32,10 @@ URL: https://github.com/williballenthin/python-evtx Source: https://github.com/williballenthin/python-evtx/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: %{python_module hexdump} BuildRequires: %{python_module lxml} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 @@ -64,10 +66,10 @@ inspired by the work of Andreas Schuster and his Perl implementation find Evtx -name "*.py" | xargs sed -i '1 { /^#!/ d }' %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install for c in %{commands}; do %python_clone -a %{buildroot}%{_bindir}/evtx_$c.py done @@ -96,7 +98,7 @@ end} %license LICENSE.TXT %doc README.md %{python_sitelib}/Evtx -%{python_sitelib}/python_evtx-%{version}*-info +%{python_sitelib}/python_evtx-%{version}.dist-info %{lua:for c in rpm.expand("%{commands}"):gmatch("%S+") do print(rpm.expand("%python_alternative %{_bindir}/evtx_" .. c .. ".py")) end}