From 30ffc93b05ec74407cc7f75121b5c23df265f6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 31 Aug 2022 13:16:07 +0200 Subject: [PATCH] Move shebang removal to %prep --- python-appdirs.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python-appdirs.spec b/python-appdirs.spec index e46cec3..ecd50df 100644 --- a/python-appdirs.spec +++ b/python-appdirs.spec @@ -31,6 +31,7 @@ directories, e.g. a "user data dir". %prep %autosetup -n appdirs-%{version} +sed -i -e '1{\@^#!/usr/bin/env python@d}' appdirs.py rm -vrf appdirs.egg-info %build @@ -47,8 +48,6 @@ rm -vrf appdirs.egg-info %py3_install %endif -sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/appdirs.py - %check %{__python3} setup.py test