From f038e6a03ec23a74844440fd64e5a2f567c848fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Mon, 19 May 2014 13:54:06 +0000 Subject: [PATCH] qt tools don't work in fedora/opensuse; refs #40 --- proxyface.spec.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/proxyface.spec.in b/proxyface.spec.in index c49a1c4..aef125b 100644 --- a/proxyface.spec.in +++ b/proxyface.spec.in @@ -22,8 +22,11 @@ This package contains only the shared libraries required at runtime. %prep %setup -q -MOC="/usr/bin/moc" UIC="/usr/bin/uic" RCC="/usr/bin/rcc" \ - LUPDATE="/usr/bin/lupdate" LRELEASE="/usr/bin/lrelease" \ +function checkqt() { + which /usr/bin/$1 || /usr/bin/$1-qt5 || /usr/bin/$1-qt4 +} +MOC="$(checkqt moc)" UIC="$(checkqt uic)" RCC="$(checkqt rcc)" \ + LUPDATE="$(checkqt lupdate)" LRELEASE="$(checkqt lrelease)" \ CPPFLAGS="-std=c++0x -I/usr/include/PCSC -I/usr/include/pkcs11-helper-1.0" \ ./configure --prefix=/usr \ --docdir=/usr/share/doc/packages/@PACKAGENAME@ \