forked from pool/python-evtx
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
This commit is contained in:
committed by
Git OBS Bridge
parent
58f2de5cc6
commit
82e2ed292d
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 15 07:02:51 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
|
||||
|
||||
- fix shebang interpreter handling
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:47:47 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user