From f6378debbae96ee626a957bfde3e1a272215af98 Mon Sep 17 00:00:00 2001 From: znzjugod Date: Tue, 5 Nov 2024 16:02:25 +0800 Subject: [PATCH] remove duplicate files and add Requires --- clang.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/clang.spec b/clang.spec index f1c3d09..0cb011d 100644 --- a/clang.spec +++ b/clang.spec @@ -37,7 +37,7 @@ Name: %{pkg_name} Version: %{clang_version} -Release: 18 +Release: 19 Summary: A C language family front-end for LLVM License: NCSA @@ -112,6 +112,7 @@ BuildRequires: perl(Text::ParseWords) BuildRequires: perl(Sys::Hostname) Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: %{name}-tools-extra%{?_isa} = %{version}-%{release} Requires: libstdc++-devel # Require gcc libs installed during rumtime @@ -161,6 +162,12 @@ Provides: %{name}-resource-filesystem(major) = %{maj_ver} %description resource-filesystem This package owns the clang resouce directory: $libdir/clang/$version/ +%package help +Summary: Help manual for %{name} + +%description help +The %{name}-help package contains mannual etc + %package analyzer Summary: A source code analysis framework @@ -306,7 +313,6 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build %{install_bindir}/clang-%{maj_ver} %{install_bindir}/clang-cl %{install_bindir}/clang-cpp -%{install_prefix}/share/man/man1/* %if %{with classic_flang} %{install_bindir}/flang %endif @@ -330,6 +336,10 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build %dir %{install_libdir}/clang/%{maj_ver}/share/ %dir %{install_libdir}/clang/ +%files help +%{_mandir}/man1/clang.1.gz +%{_mandir}/man1/diagtool.1.gz + %files analyzer %{install_libexecdir}/ccc-analyzer %{install_libexecdir}/c++-analyzer @@ -342,7 +352,7 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build %{install_bindir}/analyze-build %{install_bindir}/intercept-build %{install_bindir}/scan-build-py -%{install_prefix}/share/man/man1/* +%{_mandir}/man1/scan-build.1.* %{install_libdir}/libear %{install_libdir}/libscanbuild %{install_sharedir}/scan-view @@ -397,6 +407,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{install_libdir} %{__ninja} check-all -C ./_build %{install_bindir}/git-clang-format %changelog +* Tue Nov 05 2024 zhangnan - 17.0.6-19 +- remove duplicate files and add Requires and add help package + * Thu Sep 05 2024 Zhao Mengmeng - 17.0.6-18 - Fix the too-early instantiation of conditional "explict" by applying the patch of https://github.com/llvm/llvm-project/commit/128b3b61fe6768c724975fd1df2be0abec848cf6 -- Gitee