Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-evtx for openSUSE:Factory checked in at 2021-11-05 22:58:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-evtx (Old) and /work/SRC/openSUSE:Factory/.python-evtx.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-evtx" Fri Nov 5 22:58:45 2021 rev:11 rq:929626 version:0.7.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-evtx/python-evtx.changes 2021-10-04 18:42:37.414316644 +0200 +++ /work/SRC/openSUSE:Factory/.python-evtx.new.1890/python-evtx.changes 2021-11-05 22:59:06.440299958 +0100 @@ -1,0 +2,5 @@ +Tue Oct 5 12:35:19 UTC 2021 - Stefan Schubert <[email protected]> + +- Use libalternatives instead of update-alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-evtx.spec ++++++ --- /var/tmp/diff_new_pack.ihBVNa/_old 2021-11-05 22:59:06.844300228 +0100 +++ /var/tmp/diff_new_pack.ihBVNa/_new 2021-11-05 22:59:06.848300231 +0100 @@ -16,6 +16,12 @@ # +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif + %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define commands dump dump_chunk_slack eid_record_numbers extract_record filter_records info record_structure structure templates %bcond_without python2 @@ -35,14 +41,19 @@ %endif BuildRequires: dos2unix BuildRequires: fdupes -BuildRequires: python-rpm-macros +BuildRequires: python-rpm-macros >= 20210929 Requires: python-hexdump Requires: python-lxml %ifpython2 Requires: python-xml %endif +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives +%endif BuildArch: noarch %python_subpackages @@ -74,6 +85,12 @@ %check %pytest +%pre +# If libalternatives is used: Removing old update-alternatives entries. +%{lua:for c in rpm.expand("%{commands}"):gmatch("%S+") do + print(rpm.expand("%python_libalternatives_reset_alternative evtx_" .. c .. ".py")) +end} + %post %{lua:for c in rpm.expand("%{commands}"):gmatch("%S+") do print(rpm.expand("%python_install_alternative evtx_" .. c .. ".py"))
