From b3651f2b14ac72851af188ad26dd2d6e63d41f3c724c51a3a66372e68d587d4a Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 5 Dec 2024 09:53:40 +0000 Subject: [PATCH] - Fix incorrect removal of shebangs OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-netaddr?expand=0&rev=37 --- python-netaddr.changes | 5 +++++ python-netaddr.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-netaddr.changes b/python-netaddr.changes index f55589a..3be497f 100644 --- a/python-netaddr.changes +++ b/python-netaddr.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Dec 5 09:53:32 UTC 2024 - Matej Cepl + +- Fix incorrect removal of shebangs + ------------------------------------------------------------------- Thu Dec 5 06:41:14 UTC 2024 - Johannes Kastl diff --git a/python-netaddr.spec b/python-netaddr.spec index dc074a8..5c487c1 100644 --- a/python-netaddr.spec +++ b/python-netaddr.spec @@ -60,7 +60,7 @@ Included are routines for: %prep %autosetup -p1 -n netaddr-%{version} -sed -i "1d" netaddr/{cli,ip/iana,eui/ieee,tests/__init__}.py # Fix non-executable scripts +sed -i "1{\@/usr/bin/env python@d}" netaddr/{cli,ip/iana,eui/ieee}.py # Fix non-executable scripts %build %pyproject_wheel