From 35043e6148948f7bc566297a95f37f7cfe6a6dfc Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: May 07 2021 23:39:02 +0000 Subject: Add build fixes for CentOS Stream --- diff --git a/SPECS/clang.spec b/SPECS/clang.spec index e8128c3..fdb1f55 100644 --- a/SPECS/clang.spec +++ b/SPECS/clang.spec @@ -1,3 +1,7 @@ +%if 0%{?rhel} +%undefine __cmake_in_source_build +%endif + %bcond_with compat_build %global maj_ver 12 @@ -65,7 +69,7 @@ Name: %pkg_name Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 1.1%{?dist} Summary: A C language family front-end for LLVM License: NCSA @@ -123,10 +127,12 @@ BuildRequires: libatomic # We need python3-devel for pathfix.py. BuildRequires: python3-devel +%if !0%{?rhel} # 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 @@ -532,6 +538,9 @@ false %endif %changelog +* Fri May 07 2021 Davide Cavalca - 12.0.0-1.1 +- Add build fixes for CentOS Stream + * Fri Apr 16 2021 Tom Stellard - 12.0.0-1 - 12.0.0 Release