From d38c0b045f9112ccfe9f115c8dcca672211d1657253b98deb95d18e14a156172 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 26 Apr 2016 14:44:18 +0000 Subject: [PATCH] Accepting request 391700 from home:cbosdonnat:branches:Virtualization:libguestfs-devel Diff to previous SR: * Fix shebang of /usr/bin/evtx* * Fix BuildArch for older versions OBS-URL: https://build.opensuse.org/request/show/391700 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evtx?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + python-evtx-0.3.1.tar.gz | 3 ++ python-evtx.changes | 5 ++++ python-evtx.spec | 65 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 97 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-evtx-0.3.1.tar.gz create mode 100644 python-evtx.changes create mode 100644 python-evtx.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-evtx-0.3.1.tar.gz b/python-evtx-0.3.1.tar.gz new file mode 100644 index 0000000..c7eb84c --- /dev/null +++ b/python-evtx-0.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5cb8129455952a4f7925cf6fdb82a5516078d5e7b8fee1e82e3c688794addd25 +size 1710864 diff --git a/python-evtx.changes b/python-evtx.changes new file mode 100644 index 0000000..d74ddaa --- /dev/null +++ b/python-evtx.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Apr 26 11:23:29 UTC 2016 - cbosdonnat@suse.com + +- Version 0.3.1 + diff --git a/python-evtx.spec b/python-evtx.spec new file mode 100644 index 0000000..1ad57ea --- /dev/null +++ b/python-evtx.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-evtx +# +# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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/ +# + +Name: python-evtx +Version: 0.3.1 +Release: 0 +License: Apache-2.0 +Summary: Windows Event Log files parser +Url: https://github.com/williballenthin/python-evtx +Group: Development/Libraries/Python +Source: python-evtx-%{version}.tar.gz +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} +%py_requires +%if 0%{?suse_version} > 1110 +BuildArch: noarch +%endif +%endif + +%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 +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +mkdir -p %{buildroot}%{_bindir} +for script in evtxdump.py evtxinfo.py; do + sed -i -e 's:^#!/bin/python:#!/usr/bin/python:' scripts/$script + install -m 0755 scripts/$script %{buildroot}%{_bindir}/$script +done + +%files +%defattr(-,root,root) +%doc LICENSE.TXT README.md +%{python_sitelib}/* +%{_bindir}/evtxdump.py +%{_bindir}/evtxinfo.py +