2016-04-26 14:44:18 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-evtx
|
|
|
|
|
#
|
2019-03-15 10:39:45 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-04-26 14:44:18 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2018-12-04 13:26:08 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-04-26 14:44:18 +00:00
|
|
|
#
|
|
|
|
|
|
2017-05-10 13:41:58 +00:00
|
|
|
|
2017-12-04 16:50:39 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-04-26 14:44:18 +00:00
|
|
|
Name: python-evtx
|
2019-06-05 13:46:12 +00:00
|
|
|
Version: 0.6.1
|
2016-04-26 14:44:18 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Windows Event Log files parser
|
2017-05-10 13:41:58 +00:00
|
|
|
License: Apache-2.0
|
2017-12-04 16:50:39 +00:00
|
|
|
Group: Development/Libraries/Python
|
2019-06-05 13:46:12 +00:00
|
|
|
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}
|
2019-08-22 14:11:50 +00:00
|
|
|
BuildRequires: %{python_module pytest < 4}
|
2017-12-04 16:50:39 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-06-05 13:46:12 +00:00
|
|
|
Requires: python-hexdump
|
|
|
|
|
Requires: python-lxml
|
2016-04-26 14:44:18 +00:00
|
|
|
BuildArch: noarch
|
2017-12-04 16:50:39 +00:00
|
|
|
%python_subpackages
|
2016-04-26 14:44:18 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
python-evtx is a pure Python parser for recent Windows Event Log files (those
|
|
|
|
|
with the file extension ".evtx"). The module provides programmatic access to the
|
|
|
|
|
File and Chunk headers, record templates, and event entries. For example, you
|
|
|
|
|
can use python-evtx to review the event logs of Windows 7 systems from a Mac or
|
|
|
|
|
Linux workstation. The structure definitions and parsing strategies were heavily
|
|
|
|
|
inspired by the work of Andreas Schuster and his Perl implementation
|
|
|
|
|
"Parse-Evtx".
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2019-03-15 10:39:45 +00:00
|
|
|
find Evtx -name "*.py" | xargs sed -i '1 { /^#!/ d }'
|
2016-04-26 14:44:18 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-12-04 16:50:39 +00:00
|
|
|
%python_build
|
2016-04-26 14:44:18 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-12-04 16:50:39 +00:00
|
|
|
%python_install
|
2019-06-05 13:46:12 +00:00
|
|
|
for script in scripts/evtx_*.py; do
|
|
|
|
|
sed -i -e 's:^#!%{_bindir}/env python:#!%{_bindir}/python3:' $script
|
|
|
|
|
dos2unix $script
|
2016-04-26 14:44:18 +00:00
|
|
|
done
|
2019-06-05 13:46:12 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-04-26 14:44:18 +00:00
|
|
|
|
2019-06-05 13:46:12 +00:00
|
|
|
%check
|
|
|
|
|
%pytest
|
2017-12-04 16:50:39 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-12-04 17:13:03 +00:00
|
|
|
%license LICENSE.TXT
|
|
|
|
|
%doc README.md
|
2016-04-26 14:44:18 +00:00
|
|
|
%{python_sitelib}/*
|
2019-06-05 13:46:12 +00:00
|
|
|
%python3_only %{_bindir}/evtx_*.py
|
2016-04-26 14:44:18 +00:00
|
|
|
|
2017-05-10 13:41:58 +00:00
|
|
|
%changelog
|