From 79fbaafcc981c929e29eb230a372a8ec7e78e33fa704f6d008a50ee037ef1a60 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 23 Feb 2023 08:40:07 +0000 Subject: [PATCH] Accepting request 1067327 from home:mcepl:branches:devel:languages:python - Clean up SPEC file OBS-URL: https://build.opensuse.org/request/show/1067327 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pexpect?expand=0&rev=60 --- python-pexpect.changes | 5 +++++ python-pexpect.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-pexpect.changes b/python-pexpect.changes index 15fc8fe..1a0d69e 100644 --- a/python-pexpect.changes +++ b/python-pexpect.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 23 08:37:45 UTC 2023 - Matej Cepl + +- Clean up SPEC file + ------------------------------------------------------------------- Fri Jan 6 20:51:12 UTC 2023 - Dirk Müller diff --git a/python-pexpect.spec b/python-pexpect.spec index 9c17386..56597c2 100644 --- a/python-pexpect.spec +++ b/python-pexpect.spec @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pexpect Version: 4.8.0 Release: 0 @@ -56,6 +55,9 @@ find examples -type f -name "*.cgi" -exec sed -i "s|##!%{_bindir}/env python|##! # Mark example *.py as non-executable (we already patch the shebang out, so they can't be started anyway) find examples -type f -name "*.py" -exec chmod 644 {} \; +# Remove shebang +sed -i '1 {/^#!/d}' pexpect/FSM.py + %build %python_build