From b8d55eb4feef4bd4d2b7f32ad650cd5c45a89d1df1f8f18b547356eaf9ce6cce Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 12 Jun 2023 23:00:22 +0000 Subject: [PATCH 1/2] - modify shebang to the actual python interpreter on install OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=534 --- cmake.changes | 5 +++++ cmake.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/cmake.changes b/cmake.changes index a608921..9b994fa 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 12 22:59:30 UTC 2023 - Dirk Müller + +- modify shebang to the actual python interpreter on install + ------------------------------------------------------------------- Fri May 19 07:20:35 UTC 2023 - Paolo Stivanin diff --git a/cmake.spec b/cmake.spec index 92cad8f..74deabb 100644 --- a/cmake.spec +++ b/cmake.spec @@ -204,6 +204,7 @@ install -m644 %{SOURCE1} -D %{buildroot}%{_rpmconfigdir}/macros.d/macros.cmake # RPM auto provides install -p -m0644 -D %{SOURCE3} %{buildroot}%{_fileattrsdir}/cmake.attr install -p -m0755 -D %{SOURCE4} %{buildroot}%{_rpmconfigdir}/cmake.prov +sed -i "1s@#!.*python.*@#!$(realpath %__python3)@" %{buildroot}%{_rpmconfigdir}/cmake.prov # fix: W: files-duplicate (%%license covers already) rm %{buildroot}%{_docdir}/cmake/Copyright.txt From 0f32c4f3f0edc0caeffe203b2f733f273a974fe04b1f7b0c8c354c4c8e946220 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 13 Jun 2023 06:27:49 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=535 --- cmake.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake.spec b/cmake.spec index 74deabb..315da1d 100644 --- a/cmake.spec +++ b/cmake.spec @@ -204,7 +204,7 @@ install -m644 %{SOURCE1} -D %{buildroot}%{_rpmconfigdir}/macros.d/macros.cmake # RPM auto provides install -p -m0644 -D %{SOURCE3} %{buildroot}%{_fileattrsdir}/cmake.attr install -p -m0755 -D %{SOURCE4} %{buildroot}%{_rpmconfigdir}/cmake.prov -sed -i "1s@#!.*python.*@#!$(realpath %__python3)@" %{buildroot}%{_rpmconfigdir}/cmake.prov +sed -i -e "1s@#!.*python.*@#!$(realpath /usr/bin/python3)@" %{buildroot}%{_rpmconfigdir}/cmake.prov # fix: W: files-duplicate (%%license covers already) rm %{buildroot}%{_docdir}/cmake/Copyright.txt