From 993e8358ae5908e235c63af782b6284ddffa24eb Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Tue, 14 Dec 2021 10:10:54 -0800 Subject: [PATCH] compat_build: remove pyc BuildRequires This error is seen on the compat_build find: '.../rpmbuild/BUILDROOT/clang13-13.0.0-5.fc36.x86_64/ usr/lib/python3.10/site-packages': No such file or directory python3-clang is not part of the compat_build so ifdef out the problem area. Signed-off-by: Tom Rix --- clang.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang.spec b/clang.spec index 016f7e3..7805446 100644 --- a/clang.spec +++ b/clang.spec @@ -128,10 +128,12 @@ BuildRequires: libatomic # 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