From b695b249909602be18c7aff4481b8897850205964cf76195ca20f866399eea85 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Fri, 17 Aug 2018 13:35:17 +0000 Subject: [PATCH] Accepting request 629941 from home:gladiac:branches:devel:tools:building Enable bash completion for cmake, cpack and ctest OBS-URL: https://build.opensuse.org/request/show/629941 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=333 --- cmake.changes | 5 +++++ cmake.spec | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/cmake.changes b/cmake.changes index 79998d9..0fb4b49 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 17 12:56:19 UTC 2018 - asn@cryptomilk.org + +- Enable bash completion for cmake, cpack and ctest + ------------------------------------------------------------------- Wed Jul 18 21:35:32 UTC 2018 - foss@grueninger.de diff --git a/cmake.spec b/cmake.spec index dc886ca..a4c888b 100644 --- a/cmake.spec +++ b/cmake.spec @@ -110,6 +110,13 @@ install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/rpm/macros.cmake install -p -m0644 -D %{SOURCE3} %{buildroot}%{_libexecdir}/rpm/fileattrs/cmake.attr install -p -m0755 -D %{SOURCE4} %{buildroot}%{_libexecdir}/rpm/cmake.prov +# Install bash completion symlinks +mkdir -p %{buildroot}%{_datadir}/bash-completion/completions +for f in %{buildroot}%{_datadir}/%{name}/completions/* +do + ln -s ../../%{name}/completions/$(basename $f) %{buildroot}%{_datadir}/bash-completion/completions +done + %fdupes %{buildroot}%{_datadir}/cmake %check @@ -133,5 +140,6 @@ install -p -m0755 -D %{SOURCE4} %{buildroot}%{_libexecdir}/rpm/cmake.prov %dir %{_datadir}/aclocal %{_datadir}/aclocal/cmake.m4 %doc %{_docdir}/%{name} +%{_datadir}/bash-completion %changelog