Hello community,

here is the log from the commit of package python-evtx for openSUSE:Factory 
checked in at 2020-05-28 09:15:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-evtx (Old)
 and      /work/SRC/openSUSE:Factory/.python-evtx.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-evtx"

Thu May 28 09:15:29 2020 rev:9 rq:809275 version:0.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-evtx/python-evtx.changes  2019-11-06 
13:57:29.756245277 +0100
+++ /work/SRC/openSUSE:Factory/.python-evtx.new.3606/python-evtx.changes        
2020-05-28 09:16:03.188784467 +0200
@@ -1,0 +2,5 @@
+Tue May 26 06:34:09 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-evtx.spec ++++++
--- /var/tmp/diff_new_pack.XqbpEG/_old  2020-05-28 09:16:04.072786553 +0200
+++ /var/tmp/diff_new_pack.XqbpEG/_new  2020-05-28 09:16:04.076786562 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-evtx
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +17,7 @@
 
 
 %{?!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
 Name:           python-evtx
 Version:        0.6.1
 Release:        0
@@ -36,6 +37,8 @@
 BuildRequires:  python-rpm-macros
 Requires:       python-hexdump
 Requires:       python-lxml
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
 %python_subpackages
 
@@ -59,19 +62,36 @@
 
 %install
 %python_install
-for script in scripts/evtx_*.py; do
-  sed -i -e 's:^#!%{_bindir}/env python:#!%{_bindir}/python3:' $script
-  dos2unix $script
+for c in %{commands}; do
+  %python_clone -a %{buildroot}%{_bindir}/evtx_$c.py
 done
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %pytest
 
+%post
+for c in %{commands}; do
+  %python_install_alternative evtx_$c.py
+done
+
+%postun
+for c in %{commands}; do
+  %python_uninstall_alternative evtx_$c.py
+done
+
 %files %{python_files}
 %license LICENSE.TXT
 %doc README.md
 %{python_sitelib}/*
-%python3_only %{_bindir}/evtx_*.py
+%python_alternative %{_bindir}/evtx_dump.py
+%python_alternative %{_bindir}/evtx_dump_chunk_slack.py
+%python_alternative %{_bindir}/evtx_eid_record_numbers.py
+%python_alternative %{_bindir}/evtx_extract_record.py
+%python_alternative %{_bindir}/evtx_filter_records.py
+%python_alternative %{_bindir}/evtx_info.py
+%python_alternative %{_bindir}/evtx_record_structure.py
+%python_alternative %{_bindir}/evtx_structure.py
+%python_alternative %{_bindir}/evtx_templates.py
 
 %changelog


Reply via email to