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:
commit
72cf798dfb
@ -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>
|
Wed Sep 4 21:44:21 UTC 2024 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
@ -137,6 +137,16 @@ required.
|
|||||||
%autosetup -p1 -n qt-everywhere-src-%{version}
|
%autosetup -p1 -n qt-everywhere-src-%{version}
|
||||||
|
|
||||||
%build
|
%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.
|
# 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}/rcc-qt5 qtbase/bin/rcc
|
||||||
ln -s %{_bindir}/uic-qt5 qtbase/bin/uic
|
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
|
ln -s %{_libqt5_bindir} qttools/bin
|
||||||
|
|
||||||
# Create the Makefiles which are required.
|
# 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 \
|
./configure \
|
||||||
-verbose \
|
-verbose \
|
||||||
-prefix %{_prefix} \
|
-prefix %{_prefix} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user