File use-system-qt5-path.patch of Package libsvm

From a332c92c3bc11b06a3f11a36bf34ad909ec0acc0 Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.de>
Date: Fri, 26 Mar 2021 10:30:58 +0100
Subject: [PATCH] use system qt5 path

Signed-off-by: Christian Goll <cgoll@suse.de>
---
 svm-toy/qt/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/svm-toy/qt/Makefile b/svm-toy/qt/Makefile
index 68c5e26..de97208 100644
--- a/svm-toy/qt/Makefile
+++ b/svm-toy/qt/Makefile
@@ -1,10 +1,10 @@
 # use  ``export QT_SELECT=qt5'' in a command window for using qt5
 # may need to adjust the path of header files
 CXX? = g++
-INCLUDE = /usr/include/x86_64-linux-gnu/qt5
+INCLUDE = /usr/include/qt5
 CFLAGS = -Wall -O3 -I$(INCLUDE) -I$(INCLUDE)/QtWidgets -I$(INCLUDE)/QtGui -I$(INCLUDE)/QtCore -fPIC -std=c++11
 LIB = -lQt5Widgets -lQt5Gui -lQt5Core
-MOC = /usr/bin/moc
+MOC = /usr/bin/moc-qt5
 
 svm-toy: svm-toy.cpp svm-toy.moc ../../svm.o
 	$(CXX) $(CFLAGS) svm-toy.cpp ../../svm.o -o svm-toy $(LIB)
-- 
2.26.2

openSUSE Build Service is sponsored by