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.*