Accepting request 1080796 from home:dimstar:Factory

- Only move bash-completion from /etc to /usr/share if this was not
  properly installed. There was an error that
  bash-completion-devel did not actually contain the .cmake file
  which in turn resulted in this package mis-installing despite the
  correct build deps.

OBS-URL: https://build.opensuse.org/request/show/1080796
OBS-URL: https://build.opensuse.org/package/show/devel:languages:D/ldc?expand=0&rev=62
This commit is contained in:
Guillaume GARDET 2023-04-20 11:27:36 +00:00 committed by Git OBS Bridge
parent 057634e762
commit 85f743ea6c
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Apr 20 10:28:50 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Only move bash-completion from /etc to /usr/share if this was not
properly installed. There was an error that
bash-completion-devel did not actually contain the .cmake file
which in turn resulted in this package mis-installing despite the
correct build deps.
-------------------------------------------------------------------
Tue Apr 11 12:23:35 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -234,9 +234,11 @@ popd
%install
%cmake_install
# Install bash completion in the right folder
if [ ! -d %{buildroot}%{_bashcompletionsdir} ]; then
install -d %{buildroot}%{_bashcompletionsdir}
mv %{buildroot}%{_sysconfdir}/bash_completion.d/ldc2 %{buildroot}%{_bashcompletionsdir}
rmdir %{buildroot}%{_sysconfdir}/bash_completion.d/
fi
# Make sure it can find its own libs (help2man runs the binaries)
export LD_LIBRARY_PATH="$PWD/build/%_lib"
# Build man pages