From 0d77a0c30a54b0a45cba3b8f42e9cc3411a82f49 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Mon, 23 Jan 2023 10:44:28 +0000 Subject: [PATCH] adjust /lib/ to /%{_lib}/ fixes this error: ``` mv: cannot stat '/builddir/build/BUILDROOT/clang-16.0.0~pre20230122.g6aaac4c144572d-1.fc36.x86_64/usr/lib/libear': No such file or directory mv: cannot stat '/builddir/build/BUILDROOT/clang-16.0.0~pre20230122.g6aaac4c144572d-1.fc36.x86_64/usr/lib/libscanbuild': No such file or directory ``` --- clang.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang.spec b/clang.spec index e8e3f38..75138a7 100644 --- a/clang.spec +++ b/clang.spec @@ -402,7 +402,7 @@ install -p -m644 bindings/python/clang/* %{buildroot}%{python3_sitelib}/clang/ %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/clang # install scanbuild-py to python sitelib. -mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitelib} +mv %{buildroot}%{_prefix}/%{_lib}/{libear,libscanbuild} %{buildroot}%{python3_sitelib} %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/{libear,libscanbuild} # Fix permissions of scan-view scripts