File libkface.spec of Package libkface
#
# spec file for package libkface
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libkface
BuildRequires: libkde4-devel
BuildRequires: opencv-devel
Summary: wrapper around LibFace to perform face recognition and detection over pictures
License: LGPL-2.1+
Group: Development/Libraries/KDE
Url: http://www.kde.org
Version: 15.08.1
Release: 0
Source0: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
Libkface is a Qt/C++ wrapper around LibFace to perform face recognition and detection over pictures
%prep
%setup -q -n %{name}-%{version}
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%makeinstall
%kde_post_install
%clean rm -rf $RPM_BUILD_ROOT
%package -n libkface3
Summary: wrapper around LibFace to perform face recognition and detection over pictures
Group: Development/Libraries/KDE
Requires: libkface
%description -n libkface3
Libkface is a Qt/C++ wrapper around LibFace to perform face recognition and detection over pictures
%files -n libkface3
%defattr(-,root,root)
%_kde4_libdir/libkface.so.*
%post -n libkface3 -p /sbin/ldconfig
%postun -n libkface3 -p /sbin/ldconfig
%package devel
Summary: wrapper around LibFace to perform face recognition and detection over pictures
Group: Development/Libraries/KDE
Requires: libkface3 = %version
%description devel
Libkface is a Qt/C++ wrapper around LibFace to perform face recognition and detection over pictures
%files devel
%defattr(-,root,root)
%doc COPYING README
%_kde4_libdir/libkface.so
/usr/include/libkface/
%_kde4_libdir/pkgconfig/libkface.pc
%_kde4_libdir/cmake/Kface-3.5.0/
%files
%defattr(-,root,root)
%_kde4_appsdir/libkface/
%changelog