SHA256
3
0
forked from pool/cmake

Accepting request 629942 from devel:tools:building

OBS-URL: https://build.opensuse.org/request/show/629942
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=151
This commit is contained in:
Dominique Leuenberger 2018-09-05 11:43:30 +00:00 committed by Git OBS Bridge
commit 723ce1942a
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