From 3fa7edbea614b5b1817ee7a8f014ffeda8ab0b4a Mon Sep 17 00:00:00 2001 From: nucleo Date: Dec 18 2014 16:18:22 +0000 Subject: install libkface devel files --- diff --git a/digikam-4.6.0-libkface-devel-files.patch b/digikam-4.6.0-libkface-devel-files.patch new file mode 100644 index 0000000..156ff78 --- /dev/null +++ b/digikam-4.6.0-libkface-devel-files.patch @@ -0,0 +1,11 @@ +--- digikam-4.6.0/extra/libkface/libkface/CMakeLists.txt 2014-12-16 09:54:40.000000000 +0200 ++++ digikam-4.6.0/extra/libkface/libkface/CMakeLists.txt 2014-12-18 18:10:16.881222835 +0200 +@@ -64,7 +64,7 @@ + DESTINATION ${DATA_INSTALL_DIR}/libkface/database ) + + # Check if compilation is done through digiKam SC or not. If yes, do not install header files. +-if(NOT DIGIKAMSC_COMPILE_LIBKFACE) ++if(DIGIKAMSC_COMPILE_LIBKFACE) + + install(FILES facedetector.h + recognitiondatabase.h diff --git a/digikam.spec b/digikam.spec index 884e405..7344821 100644 --- a/digikam.spec +++ b/digikam.spec @@ -21,6 +21,10 @@ ExcludeArch: ppc64 # TODO: upstream me Source1: digikam-import.desktop +# https://bugs.kde.org/show_bug.cgi?id=342004 +# install libkface devel files +Patch0: digikam-4.6.0-libkface-devel-files.patch + ## upstreamable patches ## upstream patches @@ -235,6 +239,8 @@ BuildArch: noarch %prep %setup -q -n %{name}-%{version}%{?pre:-%{pre}} +%patch0 -p1 -b .libkface-devel-files.patch + ## HACK to allow building with older opencv (for now), see # https://bugzilla.redhat.com/show_bug.cgi?id=1119036 sed -i.opencv_247 -e 's|^DETECT_OPENCV(2.4.9 |DETECT_OPENCV(2.4.7 |' extra/libkface/CMakeLists.txt