%global framework libkface Name: kf5-libkface Summary: A face recognition and detection library Version: 16.07.80 Release: 1%{?dist} License: GPLv2+ URL: https://quickgit.kde.org/?p=%{framework}.git %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{framework}-%{version}.tar.xz ## fix opencv3 support # https://bugzilla.redhat.com/show_bug.cgi?id=1329790 # https://bugs.kde.org/show_bug.cgi?id=358910 # https://git.reviewboard.kde.org/r/126833 Patch10: opencv-3.1-support.patch BuildRequires: extra-cmake-modules BuildRequires: gettext BuildRequires: kf5-rpm-macros %if 0%{?fedora} > 24 %global opencv3 -DENABLE_OPENCV3:BOOL=ON BuildRequires: pkgconfig(opencv) >= 3 %else BuildRequires: pkgconfig(opencv) >= 2.4.9 %endif BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5Xml) Requires: kf5-filesystem %description %{summary}. %package devel Summary: Development files for %{name} License: GPLv2+ and LGPLv2+ and BSD Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. %prep %autosetup -n %{framework}-%{version} -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. \ %{?opencv3} popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS %license COPYING COPYING.LIB %{_kf5_libdir}/libKF5KFace.so.* %{_kf5_datadir}/libkface/ %files devel %{_kf5_includedir}/KFace/ %{_kf5_includedir}/libkface_version.h %{_kf5_libdir}/libKF5KFace.so %{_kf5_libdir}/cmake/KF5KFace/ %changelog * Sat Jul 30 2016 Rex Dieter - 16.07.80-1 - 16.07.80 * Sun Jul 10 2016 Rex Dieter - 16.04.3-1 - 16.04.3 * Sun Jun 12 2016 Rex Dieter - 16.04.2-1 - 16.04.2 * Sun May 08 2016 Rex Dieter - 16.04.1-1 - 16.04.1 * Fri Apr 22 2016 Rex Dieter - 16.04.0-2 - Fix opencv build (#1329790) * Fri Apr 15 2016 Rex Dieter - 16.04.0-1 - 16.04.0 * Thu Apr 14 2016 Rex Dieter - 16.03.80-2 - update URL * Wed Mar 30 2016 Rex Dieter - 16.03.80-1 - 16.03.80 * Tue Mar 15 2016 Rex Dieter - 15.12.3-1 - 15.12.3 * Mon Feb 15 2016 Rex Dieter - 15.12.2-1 - 15.12.2 * Fri Feb 05 2016 Rex Dieter 15.12.1-1 - 15.12.1 * Wed Dec 30 2015 Rex Dieter 15.08.3-2 - 15.12.0, first try