Add package clang-tools-extra-devel

Add package clang-tools-extra-devel in order to distribute clang-tidy headers.
Fix rhbz#2174920.
This commit is contained in:
Tulio Magno Quites Machado Filho 2023-03-03 13:06:37 -03:00
parent 44be8b6afe
commit e99cc9fefa
1 changed files with 15 additions and 4 deletions

View File

@ -41,7 +41,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
@ -222,6 +222,13 @@ Requires: emacs-filesystem
%description tools-extra
A set of extra tools built using Clang's tooling API.
%package tools-extra-devel
Summary: Development header files for clang tools
Requires: %{name}-tools-extra = %{version}-%{release}
%description tools-extra-devel
Development header files for clang tools.
# Put git-clang-format in its own package, because it Requires git
# and we don't want to force users to install all those dependenices if they
# just want clang.
@ -450,9 +457,6 @@ popd
mkdir -p %{buildroot}%{pkg_libdir}/clang/%{version}/{include,lib,share}/
# Remove clang-tidy headers. We don't ship the libraries for these.
rm -Rvf %{buildroot}%{_includedir}/clang-tidy/
%if %{without compat_build}
# Add a symlink in /usr/bin to clang-format-diff
ln -s %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/clang-format-diff
@ -589,6 +593,9 @@ false
%{_datadir}/clang/run-find-all-symbols.py*
%{_datadir}/clang/clang-rename.py*
%files tools-extra-devel
%{_includedir}/clang-tidy/
%files -n git-clang-format
%{_bindir}/git-clang-format
@ -598,6 +605,10 @@ false
%endif
%changelog
* Fri Mar 03 2023 Tulio Magno Quites Machado Filho <tuliom@redhat.com> - 15.0.7-2
- Add package clang-tools-extra-devel in order to distribute clang-tidy headers.
Fix rhbz#2174920
* Thu Jan 12 2023 Nikita Popov <npopov@redhat.com> - 15.0.7-1
- Update to LLVM 15.0.7