| |
@@ -128,10 +128,12 @@
|
| |
# We need python3-devel for %%py3_shebang_fix
|
| |
BuildRequires: python3-devel
|
| |
|
| |
+ %if %{without compat_build}
|
| |
# For reproducible pyc file generation
|
| |
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#_byte_compilation_reproducibility
|
| |
BuildRequires: /usr/bin/marshalparser
|
| |
%global py_reproducible_pyc_path %{buildroot}%{python3_sitelib}
|
| |
+ %endif
|
| |
|
| |
# Needed for %%multilib_fix_c_header
|
| |
BuildRequires: multilib-rpm-config
|
| |
@@ -332,7 +334,7 @@
|
| |
%endif
|
| |
%if %{with compat_build}
|
| |
-DCLANG_BUILD_TOOLS:BOOL=OFF \
|
| |
- -DLLVM_CONFIG:FILEPATH=%{_bindir}/llvm-config-%{maj_ver} \
|
| |
+ -DLLVM_CONFIG:FILEPATH=%{pkg_bindir}/llvm-config-%{maj_ver}-%{__isa_bits} \
|
| |
-DCMAKE_INSTALL_PREFIX=%{install_prefix} \
|
| |
-DCLANG_INCLUDE_TESTS:BOOL=OFF \
|
| |
%else
|
| |
@@ -386,6 +388,8 @@
|
| |
rm -Rf %{buildroot}%{install_bindir}
|
| |
rm -Rf %{buildroot}%{install_prefix}/share
|
| |
rm -Rf %{buildroot}%{install_prefix}/libexec
|
| |
+ # Remove scanview-py helper libs
|
| |
+ rm -Rf %{buildroot}%{install_prefix}/lib/{libear,libscanbuild}
|
| |
|
| |
%else
|
| |
|
| |
@sergesanspaille Is this part needed?