From 1cbd9f00f7fbcfb7dc49f9c8020acc4a2b3192e2 Mon Sep 17 00:00:00 2001 From: José Matos Date: Mar 19 2020 11:41:02 +0000 Subject: Remove /usr/bin/env python from script's headers --- diff --git a/python-nltk.spec b/python-nltk.spec index 614d674..58e006e 100644 --- a/python-nltk.spec +++ b/python-nltk.spec @@ -2,7 +2,7 @@ Name: python-nltk Epoch: 1 Version: 3.4.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Natural Language Toolkit # The entire source code is ASL 2.0 except nltk/stem/porter.py is @@ -44,6 +44,9 @@ This package provides the Python 3 build of NLTK. sed -i -e '/^#! *\//, 1d' %{mod_name}/corpus/reader/knbc.py \ %{mod_name}/test/runtests.py +for f in $(grep -Frl '/usr/bin/env' %{mod_name}); do + sed -i -e "s|^#!/usr/bin/env python$|#!%{__python3}|g" $f +done %build %py3_build @@ -67,6 +70,9 @@ sed -i -e '/^#! *\//, 1d' %{mod_name}/corpus/reader/knbc.py \ %changelog +* Thu Mar 19 2020 José Matos - 1:3.4.5-2 +- Remove /usr/bin/env python from script's headers + * Sun Mar 8 2020 Robin Lee - 1:3.4.5-1 - Updated to 3.4.5 (RHBZ#1771376, CVE-2019-14751)