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