From 71bd0c42e49ca0ecfdd620f7543c9fa1a0aac2e0 Mon Sep 17 00:00:00 2001 From: lyn1001 Date: Thu, 14 Dec 2023 16:28:17 +0800 Subject: [PATCH] Fix abnormal empty link in cmake-data package --- cmake.spec | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cmake.spec b/cmake.spec index 1615d51..dca13e0 100644 --- a/cmake.spec +++ b/cmake.spec @@ -11,7 +11,7 @@ Name: cmake Version: 3.24.3 -Release: 1 +Release: 2 Summary: Cross-platform make system License: BSD and MIT and zlib URL: http://www.cmake.org @@ -44,6 +44,9 @@ BuildRequires: bzip2-devel curl-devel expat-devel jsoncpp-devel libarchive-deve BuildRequires: libuv-devel xz-devel zlib-devel cmake-rpm-macros %endif +BuildRequires: pkgconfig(bash-completion) +%global bash_completionsdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null || echo '%{_datadir}/bash-completion/completions') + Requires: cmake-data = %{version}-%{release} cmake-rpm-macros = %{version}-%{release} Requires: cmake-filesystem = %{version}-%{release} Provides: cmake3 = %{version}-%{release} bundled(md5-deutsch) bundled(kwsys) @@ -134,11 +137,6 @@ for f in ccmake cmake cpack ctest; do ln -s $f %{buildroot}%{_bindir}/${f}3; done -install -d %{buildroot}%{_datadir}/bash-completion/completions -for f in %{buildroot}%{_datadir}/cmake/completions/* -do - ln -s ../../cmake/completions/$(basename $f) %{buildroot}%{_datadir}/bash-completion/completions -done install -d %{buildroot}%{_emacs_sitelispdir}/cmake install -p -m 0644 Auxiliary/cmake-mode.el %{buildroot}%{_emacs_sitelispdir}/cmake/cmake-mode.el %{_emacs_bytecompile} %{buildroot}%{_emacs_sitelispdir}/cmake/cmake-mode.el @@ -238,6 +236,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %exclude %{_pkgdocdir}/Copyright.txt %changelog +* Thu Dec 14 2023 liyanan - 3.24.3-2 +- Fix abnormal empty link in cmake-data package + * Mon Nov 14 2022 jchzhou - 3.24.3-1 - Update to 3.24.3