From 3488f90440d2d5a89c44792c733ada1dd1e2eaa60360eb2879db4263f0cdfb4d Mon Sep 17 00:00:00 2001 From: Wolfgang Frisch Date: Wed, 11 Oct 2023 09:33:18 +0000 Subject: [PATCH] Accepting request 1116863 from home:dgarcia:branches:devel:openSUSE:Factory:rpmlint - Make rpmlint shebang replacement independent on the shebang in the rpmlint script. OBS-URL: https://build.opensuse.org/request/show/1116863 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:rpmlint/rpmlint-mini?expand=0&rev=179 --- rpmlint-mini.changes | 6 ++++++ rpmlint-mini.spec | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rpmlint-mini.changes b/rpmlint-mini.changes index 799c457..bf6b63c 100644 --- a/rpmlint-mini.changes +++ b/rpmlint-mini.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Oct 11 09:22:52 UTC 2023 - Daniel Garcia + +- Make rpmlint shebang replacement independent on the shebang in the + rpmlint script. + ------------------------------------------------------------------- Mon Jul 17 07:56:32 UTC 2023 - Ana Guerrero diff --git a/rpmlint-mini.spec b/rpmlint-mini.spec index c34a95c..3d0568f 100644 --- a/rpmlint-mini.spec +++ b/rpmlint-mini.spec @@ -130,7 +130,8 @@ done popd find %{buildroot}/opt/testing/ -name __pycache__ -exec rm -rf {} + # We need to force the shebang to be under /opt/testing -sed -e 's,/usr,/opt/testing,' %{_bindir}/rpmlint > %{buildroot}/opt/testing/bin/rpmlint.real +sed -e '1s,#!.*python.*,#!/opt/testing/bin/python3,' %{_bindir}/rpmlint > %{buildroot}/opt/testing/bin/rpmlint.real + chmod a+x %{buildroot}/opt/testing/bin/rpmlint.real rm -rf %{buildroot}/{usr,etc} install -m 755 -D %{SOURCE2} %{buildroot}/opt/testing/bin/rpmlint