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