From 7d226f4859e67074c6f98b8adf548e1a9a048d74 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 17 Jul 2024 09:48:33 +0000 Subject: [PATCH] Fix py_byte_compile invocation --- install.spec.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.spec.inc b/install.spec.inc index b3aebc5..ff5e487 100644 --- a/install.spec.inc +++ b/install.spec.inc @@ -137,7 +137,9 @@ install -p -m644 clang/bindings/python/clang/* %{buildroot}%{python3_sitelib}/cl # install scanbuild-py to python sitelib. mv %{buildroot}%{_prefix}/%{_lib}/{libear,libscanbuild} %{buildroot}%{python3_sitelib} -%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/{libear,libscanbuild} +# Cannot use {libear,libscanbuild} style expansion in py_byte_compile. +%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/libear +%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/libscanbuild # Fix permissions of scan-view scripts chmod a+x %{buildroot}%{_datadir}/scan-view/{Reporter.py,startfile.py}