[packages/firewalld] - fix python shebang, rel 2
baggins
baggins at pld-linux.org
Mon Jul 11 00:36:56 CEST 2022
commit 85b4dbe80096dae01931bf5c7180a29c002cd1ad
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Jul 11 00:36:33 2022 +0200
- fix python shebang, rel 2
firewalld.spec | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/firewalld.spec b/firewalld.spec
index 1442b30..ef5f7bc 100644
--- a/firewalld.spec
+++ b/firewalld.spec
@@ -1,7 +1,7 @@
Summary: A firewall daemon with D-Bus interface providing a dynamic firewall
Name: firewalld
Version: 1.2.0
-Release: 1
+Release: 2
License: GPL v2+
Source0: https://github.com/firewalld/firewalld/releases/download/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: cbb120864ecb83544f7329c09367250f
@@ -137,7 +137,8 @@ install -d $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/zones/
%{__rm} $RPM_BUILD_ROOT%{_prefix}/lib/firewalld/ipsets/README.md
-%{__sed} -i -e '1s,^#!.*python,#!%{__python3},' $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}/*
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python3}\1,' \
+ -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python3}\1,' $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}/*
%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/firewall
%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/firewall
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/firewalld.git/commitdiff/85b4dbe80096dae01931bf5c7180a29c002cd1ad
More information about the pld-cvs-commit
mailing list