Add clang-tools-extra-devel package
It contains the clang tidy headers. Resolves: rhbz#2118567
This commit is contained in:
parent
f9c63406c0
commit
6a1c760e8d
13
clang.spec
13
clang.spec
@ -248,6 +248,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.
|
||||||
@ -518,9 +525,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
|
||||||
@ -672,6 +676,9 @@ mv ./libclang-cpp.so.%{compat_maj_ver} "$compat_lib"
|
|||||||
%{_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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user