Fix some rpmlinter errors

This commit is contained in:
Tom Stellard 2021-11-01 20:31:25 +00:00 committed by tstellar
parent f5cc68e457
commit eaac7c9b00
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,6 @@
# clang needs libstdc++-devel installed in order to compile c++ programs. # clang needs libstdc++-devel installed in order to compile c++ programs.
addFilter("E: devel-dependency libstdc\+\+-devel") addFilter("E: devel-dependency libstdc\+\+-devel")
addFilter("E: explicit-lib-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")

View File

@ -72,7 +72,7 @@
Name: %pkg_name Name: %pkg_name
Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}} Version: %{clang_version}%{?rc_ver:~rc%{rc_ver}}
Release: 1%{?dist} Release: 2%{?dist}
Summary: A C language family front-end for LLVM Summary: A C language family front-end for LLVM
License: NCSA License: NCSA
@ -293,6 +293,8 @@ rm test/CodeGen/profile-filter.c
tools/clang-format/git-clang-format \ tools/clang-format/git-clang-format \
utils/hmaptool/hmaptool \ utils/hmaptool/hmaptool \
tools/scan-view/bin/scan-view \ 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/bin/* \
tools/scan-build-py/libexec/* tools/scan-build-py/libexec/*
%endif %endif
@ -413,6 +415,9 @@ install -p -m644 bindings/python/clang/* %{buildroot}%{python3_sitelib}/clang/
mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitelib} mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_sitelib}
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/{libear,libscanbuild} %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
%multilib_fix_c_header --file %{_includedir}/clang/Config/config.h %multilib_fix_c_header --file %{_includedir}/clang/Config/config.h
@ -575,6 +580,9 @@ false
%endif %endif
%changelog %changelog
* Wed Feb 16 2022 Tom Stellard <tstellar@redhat.com> - 13.0.1-2
- Fix some rpmlinter errors
* Thu Feb 03 2022 Nikita Popov <npopov@redhat.com> - 13.0.1-1 * Thu Feb 03 2022 Nikita Popov <npopov@redhat.com> - 13.0.1-1
- Update to LLVM 13.0.1 final - Update to LLVM 13.0.1 final