Accepting request 926352 from home:Vogtinator:branches:KDE:Qt5

Previously it effectively checked for libQtQuick5/libQt6Qml6 presence,
so this should be pretty similar.

- Check for a Qt runtime directory instead of qmake to also work if
  no development packages are installed

OBS-URL: https://build.opensuse.org/request/show/926352
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/qml-autoreqprov?expand=0&rev=8
This commit is contained in:
Christophe Giboudeaux 2021-10-19 19:01:08 +00:00 committed by Git OBS Bridge
parent eaf3a94731
commit 4932618b1a
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 19 18:45:25 UTC 2021 - Fabian Vogt <fabian@ritter-vogt.de>
- Check for a Qt runtime directory instead of qmake to also work if
no development packages are installed
-------------------------------------------------------------------
Tue Oct 5 10:48:58 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -25,10 +25,10 @@ qtver=
[[ -n ${qtvers} ]] || qtvers="5 6 7"
for ver in ${qtvers}; do
command -v "qmake${ver}" &>/dev/null || command -v "qmake-qt${ver}" &>/dev/null && qtver="${qtver}${ver}"
stat /usr/lib*/qt${ver} &>/dev/null && qtver="${qtver}${ver}"
done
# zero or more than one qmake found. Abort.
# Zero or more than one version of Qt found. Abort.
if [[ ${#qtver} -ne 1 ]]; then
echo "Failed to guess Qt version!" >&2
exit 1