From 5451e8b2c066775f6e1b6bd1dfc8a5625de256a460ff25c62623cdbed414b3c7 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Fri, 26 May 2023 15:53:01 +0000 Subject: [PATCH] Accepting request 1089211 from home:badshah400:lal_update Fix a couple of incorrect hashbangs on executable scripts (now also fixed for Leap 15.x). OBS-URL: https://build.opensuse.org/request/show/1089211 OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=31 --- lal.changes | 5 +++++ lal.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lal.changes b/lal.changes index d72a6fc..ab793ad 100644 --- a/lal.changes +++ b/lal.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 26 14:30:47 UTC 2023 - Atri Bhattacharya + +- Fix a couple of incorrect hashbangs on executable scripts. + ------------------------------------------------------------------- Tue Apr 18 10:35:22 UTC 2023 - pgajdos@suse.com diff --git a/lal.spec b/lal.spec index 735f643..83c25bd 100644 --- a/lal.spec +++ b/lal.spec @@ -1,5 +1,5 @@ # -# spec file +# spec file for package lal # # Copyright (c) 2023 SUSE LLC # @@ -195,6 +195,9 @@ find %{buildroot}%{$python_sitearch} -iname \*pyc -type f \( -exec grep 'home/ab } %python_expand %fdupes %{buildroot}%{$python_sitearch}/ + +# Fix broken hashbang +sed -Ei "1{s|(python3\.?[0-9]*)|%{_bindir}/\1|}" %{buildroot}%{_bindir}/lal_{path2cache,searchsum2cache} %endif %check @@ -216,7 +219,7 @@ fi %postun -n %{shliblalsupport} -p /sbin/ldconfig %files %{python_files} -%{python_sitearch}/lal +%{python_sitearch}/lal/ %files -n %{shliblal} %{_libdir}/liblal.so.*