Accepting request 1116869 from devel:openSUSE:Factory:rpmlint

OBS-URL: https://build.opensuse.org/request/show/1116869
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpmlint-mini?expand=0&rev=120
This commit is contained in:
Ana Guerrero 2023-10-12 21:38:45 +00:00 committed by Git OBS Bridge
commit ccab808ad5
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 11 09:22:52 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Make rpmlint shebang replacement independent on the shebang in the
rpmlint script.
-------------------------------------------------------------------
Mon Jul 17 07:56:32 UTC 2023 - Ana Guerrero <ana.guerrero@suse.com>

View File

@ -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