Remove clang-rename

Removed in https://github.com/llvm/llvm-project/pull/108988.
This commit is contained in:
Nikita Popov 2024-09-19 07:47:59 +00:00
parent 6a1cad7583
commit 3cc5391899
2 changed files with 12 additions and 1 deletions

View file

@ -457,7 +457,9 @@
%{install_bindir}/clang-pseudo %{install_bindir}/clang-pseudo
%{install_bindir}/clang-query %{install_bindir}/clang-query
%{install_bindir}/clang-refactor %{install_bindir}/clang-refactor
%if %{maj_ver} < 20
%{install_bindir}/clang-rename %{install_bindir}/clang-rename
%endif
%{install_bindir}/clang-reorder-fields %{install_bindir}/clang-reorder-fields
%{install_bindir}/clang-repl %{install_bindir}/clang-repl
%{install_bindir}/clang-scan-deps %{install_bindir}/clang-scan-deps
@ -491,7 +493,9 @@
%{_bindir}/clang-pseudo-%{maj_ver} %{_bindir}/clang-pseudo-%{maj_ver}
%{_bindir}/clang-query-%{maj_ver} %{_bindir}/clang-query-%{maj_ver}
%{_bindir}/clang-refactor-%{maj_ver} %{_bindir}/clang-refactor-%{maj_ver}
%if %{maj_ver} < 20
%{_bindir}/clang-rename-%{maj_ver} %{_bindir}/clang-rename-%{maj_ver}
%endif
%{_bindir}/clang-reorder-fields-%{maj_ver} %{_bindir}/clang-reorder-fields-%{maj_ver}
%{_bindir}/clang-repl-%{maj_ver} %{_bindir}/clang-repl-%{maj_ver}
%{_bindir}/clang-scan-deps-%{maj_ver} %{_bindir}/clang-scan-deps-%{maj_ver}
@ -508,7 +512,9 @@
%{_bindir}/run-clang-tidy-%{maj_ver} %{_bindir}/run-clang-tidy-%{maj_ver}
%else %else
%{_emacs_sitestartdir}/clang-format.el %{_emacs_sitestartdir}/clang-format.el
%if %{maj_ver} < 20
%{_emacs_sitestartdir}/clang-rename.el %{_emacs_sitestartdir}/clang-rename.el
%endif
%{_emacs_sitestartdir}/clang-include-fixer.el %{_emacs_sitestartdir}/clang-include-fixer.el
%endif %endif
%{_mandir}/man1/diagtool%{exec_suffix}.1.gz %{_mandir}/man1/diagtool%{exec_suffix}.1.gz
@ -518,7 +524,9 @@
%{install_datadir}/clang/clang-include-fixer.py* %{install_datadir}/clang/clang-include-fixer.py*
%{install_datadir}/clang/clang-tidy-diff.py* %{install_datadir}/clang/clang-tidy-diff.py*
%{install_datadir}/clang/run-find-all-symbols.py* %{install_datadir}/clang/run-find-all-symbols.py*
%if %{maj_ver} < 20
%{install_datadir}/clang/clang-rename.py* %{install_datadir}/clang/clang-rename.py*
%endif
%files -n %{pkg_name_clang}-tools-extra-devel %files -n %{pkg_name_clang}-tools-extra-devel

View file

@ -97,9 +97,12 @@ mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_siteli
# Move emacs integration files to the correct directory # Move emacs integration files to the correct directory
mkdir -p %{buildroot}%{_emacs_sitestartdir} mkdir -p %{buildroot}%{_emacs_sitestartdir}
for f in clang-format.el clang-rename.el clang-include-fixer.el; do for f in clang-format.el clang-include-fixer.el; do
mv %{buildroot}{%{_datadir}/clang,%{_emacs_sitestartdir}}/$f mv %{buildroot}{%{_datadir}/clang,%{_emacs_sitestartdir}}/$f
done done
%if %{maj_ver} < 20
mv %{buildroot}{%{_datadir}/clang,%{_emacs_sitestartdir}}/clang-rename.el
%endif
# Add clang++-{version} symlink # Add clang++-{version} symlink
ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver} ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}