15
0
forked from pool/python-evtx

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
This commit is contained in:
Cédric Bosdonnat
2019-06-05 13:46:12 +00:00
committed by Git OBS Bridge
parent 82e2ed292d
commit a2c8d4586c
4 changed files with 32 additions and 16 deletions

View File

@@ -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