From 5e48b7c9be955227d39a64be12b42537a42c6c9a Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Wed, 11 Mar 2020 13:35:18 +0100 Subject: [PATCH] Move clang-format.el along with tools-extra (bz#1812487) With the current setup, if you only install clang-tools-extra, the package clang-format is not found by Emacs. A similar change was made for the Python scripts, although I did not run in the same situation myself. v2: Moved additional files at the suggestion of @sergesanspaille %{_mandir}/man1/diagtool.1.gz %{_bindir}/c-index-test Also restored trailing whitespaces in the .spec file --- clang.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clang.spec b/clang.spec index 834b107..10e2242 100644 --- a/clang.spec +++ b/clang.spec @@ -391,15 +391,10 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \ %if !0%{?compat_build} %files %{clang_binaries} -%{_bindir}/c-index-test %{_mandir}/man1/clang.1.gz %{_mandir}/man1/clang++.1.gz %{_mandir}/man1/clang-%{maj_ver}.1.gz %{_mandir}/man1/clang++-%{maj_ver}.1.gz -%{_mandir}/man1/diagtool.1.gz -%{_emacs_sitestartdir}/clang-format.el -%{_datadir}/clang/clang-format.py* -%{_datadir}/clang/clang-format-diff.py* %endif %files libs @@ -437,10 +432,15 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} ninja check-all -C _build || \ %files tools-extra %{clang_tools_binaries} +%{_bindir}/c-index-test %{_bindir}/find-all-symbols %{_bindir}/modularize +%{_mandir}/man1/diagtool.1.gz +%{_emacs_sitestartdir}/clang-format.el %{_emacs_sitestartdir}/clang-rename.el %{_emacs_sitestartdir}/clang-include-fixer.el +%{_datadir}/clang/clang-format.py* +%{_datadir}/clang/clang-format-diff.py* %{_datadir}/clang/clang-include-fixer.py* %{_datadir}/clang/clang-tidy-diff.py* %{_datadir}/clang/run-clang-tidy.py*