From a2c8d4586c9798cde14e4ea25d80bcd1bd00fddd45691466f84fa3339a9fb729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Date: Wed, 5 Jun 2019 13:46:12 +0000 Subject: [PATCH] Accepting request 707847 from home:pgajdos - version update to 0.6.1 * unit tests! also, travis integration with github project. * remove hacky python string templating solution to dealing with substitutions. * add .xml() and .lxml() to records. * lots of fixes to bring code in-line with pep8 and style guide. * fix a bunch of bugs due to bad data/encodings. * add support for CharacterReferenceNode * demonstrate unicode handling issue submitted by @stephensheridan in #37 * fix hex32/64 node types, identified by @nbareil in #38 * fix systemtime timestamp parsing, identified by @patatetom in #39 OBS-URL: https://build.opensuse.org/request/show/707847 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evtx?expand=0&rev=12 --- python-evtx-0.5.3b.tar.gz | 3 --- python-evtx-0.6.1.tar.gz | 3 +++ python-evtx.changes | 14 ++++++++++++++ python-evtx.spec | 28 +++++++++++++++------------- 4 files changed, 32 insertions(+), 16 deletions(-) delete mode 100644 python-evtx-0.5.3b.tar.gz create mode 100644 python-evtx-0.6.1.tar.gz diff --git a/python-evtx-0.5.3b.tar.gz b/python-evtx-0.5.3b.tar.gz deleted file mode 100644 index 5a41074..0000000 --- a/python-evtx-0.5.3b.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85adfa8cc43602015da10a445bc680b8bcf468f011e17440103e4cd8e8b77c7 -size 438874 diff --git a/python-evtx-0.6.1.tar.gz b/python-evtx-0.6.1.tar.gz new file mode 100644 index 0000000..d3596cc --- /dev/null +++ b/python-evtx-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fc8604242dfe68929a77d45de4ff2f6f3b14593c0de984128478edf2a532302 +size 295127 diff --git a/python-evtx.changes b/python-evtx.changes index 456b4c1..a126b72 100644 --- a/python-evtx.changes +++ b/python-evtx.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Wed Jun 5 12:55:10 UTC 2019 - pgajdos@suse.com + +- version update to 0.6.1 + * unit tests! also, travis integration with github project. + * remove hacky python string templating solution to dealing with substitutions. + * add .xml() and .lxml() to records. + * lots of fixes to bring code in-line with pep8 and style guide. + * fix a bunch of bugs due to bad data/encodings. + * add support for CharacterReferenceNode + * demonstrate unicode handling issue submitted by @stephensheridan in #37 + * fix hex32/64 node types, identified by @nbareil in #38 + * fix systemtime timestamp parsing, identified by @patatetom in #39 + ------------------------------------------------------------------- Fri Mar 15 07:02:51 UTC 2019 - Hans-Peter Jansen diff --git a/python-evtx.spec b/python-evtx.spec index 31e705b..fc5df80 100644 --- a/python-evtx.spec +++ b/python-evtx.spec @@ -18,20 +18,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-evtx -Version: 0.5.3b +Version: 0.6.1 Release: 0 Summary: Windows Event Log files parser License: Apache-2.0 Group: Development/Libraries/Python -URL: https://github.com/williballenthin/%{name} -Source: https://github.com/williballenthin/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +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 pytest} BuildRequires: %{python_module setuptools} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros -%if 0%{?suse_version} +Requires: python-hexdump +Requires: python-lxml BuildArch: noarch -%endif %python_subpackages %description @@ -52,20 +55,19 @@ find Evtx -name "*.py" | xargs sed -i '1 { /^#!/ d }' %install %python_install -mkdir -p %{buildroot}%{_bindir} -for script in evtxdump.py evtxinfo.py; do - sed -i -e 's:^#!/usr/bin/env python:#!/usr/bin/python3:' scripts/$script - dos2unix scripts/$script - install -m 0755 scripts/$script %{buildroot}%{_bindir}/$script +for script in scripts/evtx_*.py; do + sed -i -e 's:^#!%{_bindir}/env python:#!%{_bindir}/python3:' $script + dos2unix $script done +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%fdupes %{buildroot} +%check +%pytest %files %{python_files} %license LICENSE.TXT %doc README.md %{python_sitelib}/* -%python3_only %{_bindir}/evtxdump.py -%python3_only %{_bindir}/evtxinfo.py +%python3_only %{_bindir}/evtx_*.py %changelog