File libkface.spec of Package libkface
#
# spec file for package libkface
#
# Copyright (c) 2011 SUSE LINUX Products 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
Version: 2.2.0
Release: 1
License: LGPLv2.1+
Summary: Wrapper around LibFace to perform face recognition and detection over pictures
Url: http://www.digikam.org
Group: Development/Libraries/KDE
Source: http://sourceforge.net/projects/digikam/files/digikam/%{version}/digikam-%{version}.tar.bz2
BuildRequires: libkde4-devel
BuildRequires: opencv-devel
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 digikam-%{version}
%build
cd extra/libkface
%cmake_kde4 -d build
%make_jobs
%install
cd extra/libkface/build
%make_install
%kde_post_install
%package -n libkface1
License: BSD3c(or similar) ; GPLv2+ ; LGPLv2.1+ ; MIT License (or similar)
Summary: Wrapper around LibFace to perform face recognition and detection over pictures
Group: Development/Libraries/KDE
%description -n libkface1
Libkface is a Qt/C++ wrapper around LibFace to perform face recognition and detection over pictures
%files -n libkface1
%defattr(-,root,root)
%{_kde4_appsdir}/libkface
%{_kde4_libdir}/libkface.so.*
%post -n libkface1 -p /sbin/ldconfig
%postun -n libkface1 -p /sbin/ldconfig
%package devel
License: BSD3c(or similar) ; GPLv2+ ; LGPLv2.1+ ; MIT License (or similar)
Summary: Wrapper around LibFace to perform face recognition and detection over pictures
Group: Development/Libraries/KDE
Requires: libkface1 = %{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 extra/libkface/{COPYING,README}
%{_kde4_libdir}/libkface.so
%{_includedir}/libkface/
%{_kde4_libdir}/pkgconfig/libkface.pc
%{_kde4_appsdir}/cmake/modules/FindKface.cmake
%changelog