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:
parent
44be8b6afe
commit
e99cc9fefa
19
clang.spec
19
clang.spec
|
@ -41,7 +41,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
|
||||||
|
@ -222,6 +222,13 @@ Requires: emacs-filesystem
|
||||||
%description tools-extra
|
%description tools-extra
|
||||||
A set of extra tools built using Clang's tooling API.
|
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
|
# 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
|
# and we don't want to force users to install all those dependenices if they
|
||||||
# just want clang.
|
# just want clang.
|
||||||
|
@ -450,9 +457,6 @@ popd
|
||||||
mkdir -p %{buildroot}%{pkg_libdir}/clang/%{version}/{include,lib,share}/
|
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}
|
%if %{without compat_build}
|
||||||
# Add a symlink in /usr/bin to clang-format-diff
|
# Add a symlink in /usr/bin to clang-format-diff
|
||||||
ln -s %{_datadir}/clang/clang-format-diff.py %{buildroot}%{_bindir}/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/run-find-all-symbols.py*
|
||||||
%{_datadir}/clang/clang-rename.py*
|
%{_datadir}/clang/clang-rename.py*
|
||||||
|
|
||||||
|
%files tools-extra-devel
|
||||||
|
%{_includedir}/clang-tidy/
|
||||||
|
|
||||||
%files -n git-clang-format
|
%files -n git-clang-format
|
||||||
%{_bindir}/git-clang-format
|
%{_bindir}/git-clang-format
|
||||||
|
|
||||||
|
@ -598,6 +605,10 @@ false
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
%changelog
|
%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
|
* Thu Jan 12 2023 Nikita Popov <npopov@redhat.com> - 15.0.7-1
|
||||||
- Update to LLVM 15.0.7
|
- Update to LLVM 15.0.7
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue