SHA256
1
0
forked from pool/libqt5-qtdoc

Accepting request 1248702 from KDE:Qt:5.15

- Redefine %_libdir on 64 bit archs to work around
  gh#rpm-software-management/rpm#3126

OBS-URL: https://build.opensuse.org/request/show/1248702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtdoc?expand=0&rev=53
This commit is contained in:
Dominique Leuenberger 2025-02-27 13:50:41 +00:00 committed by Git OBS Bridge
commit 72cf798dfb
2 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 26 10:14:12 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Redefine %_libdir on 64 bit archs to work around
gh#rpm-software-management/rpm#3126
-------------------------------------------------------------------
Wed Sep 4 21:44:21 UTC 2024 - Fabian Vogt <fvogt@suse.com>

View File

@ -137,6 +137,16 @@ required.
%autosetup -p1 -n qt-everywhere-src-%{version}
%build
# Due to a behaviour change in rpm, %%libdir is always '/usr/lib' with 'BuildArch: noarch'. We need to redefine it to find tools in '/usr/lib64/qt5/bin' when needed
# (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"
_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
ln -s %{_bindir}/uic-qt5 qtbase/bin/uic
@ -144,9 +154,6 @@ ln -s %{_bindir}/moc-qt5 qtbase/bin/moc
ln -s %{_libqt5_bindir} qttools/bin
# Create the Makefiles which are required.
# To-Do: Clean up of the options and with this also the BuildRequires.
# FIXME: you should use the %%configure macro
./configure \
-verbose \
-prefix %{_prefix} \