From 82e2ed292def0936aa43b4932b8d9620f3388a2b3e5b4429b2d5c9b3947e215f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 15 Mar 2019 10:39:45 +0000 Subject: [PATCH] Accepting request 685258 from home:frispete:python - fix shebang interpreter handling OBS-URL: https://build.opensuse.org/request/show/685258 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evtx?expand=0&rev=10 --- python-evtx.changes | 5 +++++ python-evtx.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-evtx.changes b/python-evtx.changes index e278646..456b4c1 100644 --- a/python-evtx.changes +++ b/python-evtx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 15 07:02:51 UTC 2019 - Hans-Peter Jansen + +- fix shebang interpreter handling + ------------------------------------------------------------------- Tue Dec 4 12:47:47 UTC 2018 - Matej Cepl diff --git a/python-evtx.spec b/python-evtx.spec index bb9c4b4..31e705b 100644 --- a/python-evtx.spec +++ b/python-evtx.spec @@ -1,7 +1,7 @@ # # spec file for package python-evtx # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -45,6 +45,7 @@ inspired by the work of Andreas Schuster and his Perl implementation %prep %setup -q +find Evtx -name "*.py" | xargs sed -i '1 { /^#!/ d }' %build %python_build @@ -53,7 +54,7 @@ inspired by the work of Andreas Schuster and his Perl implementation %python_install mkdir -p %{buildroot}%{_bindir} for script in evtxdump.py evtxinfo.py; do - sed -i -e 's:^#!%{_bindir}/env python:#!python3:' scripts/$script + sed -i -e 's:^#!/usr/bin/env python:#!/usr/bin/python3:' scripts/$script dos2unix scripts/$script install -m 0755 scripts/$script %{buildroot}%{_bindir}/$script done