Compare commits

4 Commits

Author SHA256 Message Date
4bb653ba25 Accepting request 1287774 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1287774
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-evtx?expand=0&rev=14
2025-06-23 13:05:04 +00:00
19410226df - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evtx?expand=0&rev=27
2025-06-23 01:34:22 +00:00
aae123a857 Accepting request 1197444 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1197444
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-evtx?expand=0&rev=13
2024-08-30 11:31:58 +00:00
e0503cc6fa Accepting request 1195674 from home:pgajdos:python
- version update to 0.8.0
   * Remove support for Python 2.7 and specify minimum supported version is 3.8.
     Use black/isort/ruff to ensure the consistency of the code.
   * Fixed issue w/ Python 3 by @forensenellanebbia in #75
   * Fix file names in README.md by @maehw in #79
   * Add JSON dump functionality by @ajread4 in #82
   * add missing comma to array by @snipcodeit in #83
   * weaken the dependency rules for use with python3+Fedora by @xambroz in #84

OBS-URL: https://build.opensuse.org/request/show/1195674
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evtx?expand=0&rev=25
2024-08-29 12:42:33 +00:00
4 changed files with 30 additions and 22 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ecf3c1736ec9e080ddd1c64b6dad23c756e20d54bd30acc21245b9706258fdd9
size 446141

3
python-evtx-0.8.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f69fae1597d3a0b2cf738fd2fbe42d69ebd8ca1c2d0aa4569cce7884f524231d
size 447348

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Mon Jun 23 01:30:09 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Fri Aug 23 07:56:38 UTC 2024 - pgajdos@suse.com
- version update to 0.8.0
* Remove support for Python 2.7 and specify minimum supported version is 3.8.
Use black/isort/ruff to ensure the consistency of the code.
* Fixed issue w/ Python 3 by @forensenellanebbia in #75
* Fix file names in README.md by @maehw in #79
* Add JSON dump functionality by @ajread4 in #82
* add missing comma to array by @snipcodeit in #83
* weaken the dependency rules for use with python3+Fedora by @xambroz in #84
-------------------------------------------------------------------
Mon Nov 8 11:04:39 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-evtx
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -22,11 +22,9 @@
%bcond_with libalternatives
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define commands dump dump_chunk_slack eid_record_numbers extract_record filter_records info record_structure structure templates
%bcond_without python2
%define commands dump dump_json dump_chunk_slack eid_record_numbers extract_record filter_records info record_structure structure templates
Name: python-evtx
Version: 0.7.4
Version: 0.8.0
Release: 0
Summary: Windows Event Log files parser
License: Apache-2.0
@@ -34,27 +32,21 @@ 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 pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
%if %{with python2}
BuildRequires: python2-xml
%endif
BuildRequires: %{python_module wheel}
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929
Requires: python-hexdump
Requires: python-lxml
Requires: python-six
%ifpython2
Requires: python-xml
%endif
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
%endif
BuildArch: noarch
%python_subpackages
@@ -69,16 +61,15 @@ inspired by the work of Andreas Schuster and his Perl implementation
"Parse-Evtx".
%prep
%setup -q
%autopatch -p1
%autosetup -p1
find Evtx -name "*.py" | xargs sed -i '1 { /^#!/ d }'
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
for c in %{commands}; do
%python_clone -a %{buildroot}%{_bindir}/evtx_$c.py
done
@@ -107,7 +98,7 @@ end}
%license LICENSE.TXT
%doc README.md
%{python_sitelib}/Evtx
%{python_sitelib}/python_evtx-%{version}*-info
%{python_sitelib}/python_evtx-%{version}.dist-info
%{lua:for c in rpm.expand("%{commands}"):gmatch("%S+") do
print(rpm.expand("%python_alternative %{_bindir}/evtx_" .. c .. ".py"))
end}