From eaac7c9b00b8bc99943916f5531fe50037f3fc3b Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 1 Nov 2021 20:31:25 +0000 Subject: [PATCH] Fix some rpmlinter errors --- clang.rpmlintrc | 3 +++ clang.spec | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/clang.rpmlintrc b/clang.rpmlintrc index 6618110..8781b63 100644 --- a/clang.rpmlintrc +++ b/clang.rpmlintrc @@ -1,3 +1,6 @@ # clang needs libstdc++-devel installed in order to compile c++ programs. addFilter("E: devel-dependency libstdc\+\+-devel") addFilter("E: explicit-lib-dependency libstdc\+\+-devel") +# clang installs libear to /usr/lib on all arches, so we have to use +# a hard-coded /usr/lib path in order to move it to the python3 sitelib. +addFilter("E: hardcoded-library-path in %{_prefix}/lib/{libear") diff --git a/clang.spec b/clang.spec index 1693ebd..40d6be9 100644 --- a/clang.spec +++ b/clang.spec @@ -72,7 +72,7 @@ Name: %pkg_name Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: A C language family front-end for LLVM License: NCSA @@ -293,6 +293,8 @@ rm test/CodeGen/profile-filter.c tools/clang-format/git-clang-format \ utils/hmaptool/hmaptool \ tools/scan-view/bin/scan-view \ + tools/scan-view/share/Reporter.py \ + tools/scan-view/share/startfile.py \ tools/scan-build-py/bin/* \ tools/scan-build-py/libexec/* %endif @@ -413,6 +415,9 @@ install -p -m644 bindings/python/clang/* %{buildroot}%{python3_sitelib}/clang/ mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitelib} %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/{libear,libscanbuild} +# Fix permissions of scan-view scripts +chmod a+x %{buildroot}%{_datadir}/scan-view/{Reporter.py,startfile.py} + # multilib fix %multilib_fix_c_header --file %{_includedir}/clang/Config/config.h @@ -575,6 +580,9 @@ false %endif %changelog +* Wed Feb 16 2022 Tom Stellard - 13.0.1-2 +- Fix some rpmlinter errors + * Thu Feb 03 2022 Nikita Popov - 13.0.1-1 - Update to LLVM 13.0.1 final