diff --git a/files.spec.inc b/files.spec.inc index 53be283..94c6709 100644 --- a/files.spec.inc +++ b/files.spec.inc @@ -451,7 +451,9 @@ %{install_bindir}/clang-pseudo %{install_bindir}/clang-query %{install_bindir}/clang-refactor +%if %{maj_ver} < 20 %{install_bindir}/clang-rename +%endif %{install_bindir}/clang-reorder-fields %{install_bindir}/clang-repl %{install_bindir}/clang-scan-deps @@ -485,7 +487,9 @@ %{_bindir}/clang-pseudo-%{maj_ver} %{_bindir}/clang-query-%{maj_ver} %{_bindir}/clang-refactor-%{maj_ver} +%if %{maj_ver} < 20 %{_bindir}/clang-rename-%{maj_ver} +%endif %{_bindir}/clang-reorder-fields-%{maj_ver} %{_bindir}/clang-repl-%{maj_ver} %{_bindir}/clang-scan-deps-%{maj_ver} @@ -502,7 +506,9 @@ %{_bindir}/run-clang-tidy-%{maj_ver} %else %{_emacs_sitestartdir}/clang-format.el +%if %{maj_ver} < 20 %{_emacs_sitestartdir}/clang-rename.el +%endif %{_emacs_sitestartdir}/clang-include-fixer.el %endif %{_mandir}/man1/diagtool%{exec_suffix}.1.gz @@ -512,7 +518,9 @@ %{install_datadir}/clang/clang-include-fixer.py* %{install_datadir}/clang/clang-tidy-diff.py* %{install_datadir}/clang/run-find-all-symbols.py* +%if %{maj_ver} < 20 %{install_datadir}/clang/clang-rename.py* +%endif %files -n %{pkg_name_clang}-tools-extra-devel diff --git a/install.spec.inc b/install.spec.inc index 1d66429..7406722 100644 --- a/install.spec.inc +++ b/install.spec.inc @@ -97,9 +97,12 @@ mv %{buildroot}%{_prefix}/lib/{libear,libscanbuild} %{buildroot}%{python3_siteli # Move emacs integration files to the correct directory 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 done +%if %{maj_ver} < 20 +mv %{buildroot}{%{_datadir}/clang,%{_emacs_sitestartdir}}/clang-rename.el +%endif # Add clang++-{version} symlink ln -s clang++ %{buildroot}%{_bindir}/clang++-%{maj_ver}