SHA256
3
0
forked from pool/cmake

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
This commit is contained in:
Marcus Rückert 2018-08-17 13:35:17 +00:00 committed by Git OBS Bridge
parent b1e5d5c427
commit b695b24990
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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