diff --git a/libqt5-qtdoc.spec b/libqt5-qtdoc.spec index 0e48352..a3f5c40 100644 --- a/libqt5-qtdoc.spec +++ b/libqt5-qtdoc.spec @@ -141,8 +141,11 @@ required. # (https://github.com/rpm-software-management/rpm/issues/3126) if [ -e "/usr/lib64/qt5/bin/qdoc" ]; then echo "Redefining _libdir to work around rpm behaviour change" -%define _libdir /usr/lib64 +_libdir=/usr/lib64 +else +_libdir=/usr/lib fi +%define _libdir $_libdir # We need to link to some of the programs used as that the source assumes they were just built. ln -s %{_bindir}/rcc-qt5 qtbase/bin/rcc