2016-04-26 14:44:18 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-evtx
|
|
|
|
|
#
|
2017-12-04 16:50:39 +00:00
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
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
|
2017-05-10 13:41:58 +00:00
|
|
|
Version: 0.5.3b
|
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
|
2017-05-10 13:41:58 +00:00
|
|
|
Url: https://github.com/williballenthin/%{name}
|
|
|
|
|
Source: https://github.com/williballenthin/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2017-12-04 16:50:39 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: dos2unix
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2016-04-26 14:44:18 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
|
BuildArch: noarch
|
2017-12-04 16:50:39 +00:00
|
|
|
%py_requires
|
2016-04-26 14:44:18 +00:00
|
|
|
%endif
|
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
|
|
|
|
|
|
|
|
|
|
%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
|
2016-04-26 14:44:18 +00:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
|
for script in evtxdump.py evtxinfo.py; do
|
2017-12-04 16:50:39 +00:00
|
|
|
sed -i -e 's:^#!/usr/bin/env python:#!%{__python3}:' scripts/$script
|
|
|
|
|
dos2unix scripts/$script
|
2016-04-26 14:44:18 +00:00
|
|
|
install -m 0755 scripts/$script %{buildroot}%{_bindir}/$script
|
|
|
|
|
done
|
|
|
|
|
|
2017-12-04 16:50:39 +00:00
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
2016-04-26 14:44:18 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc LICENSE.TXT README.md
|
|
|
|
|
%{python_sitelib}/*
|
2017-12-04 16:50:39 +00:00
|
|
|
%python3_only %{_bindir}/evtxdump.py
|
|
|
|
|
%python3_only %{_bindir}/evtxinfo.py
|
2016-04-26 14:44:18 +00:00
|
|
|
|
2017-05-10 13:41:58 +00:00
|
|
|
%changelog
|