File kfilemetadata.spec of Package kfilemetadata

#
# spec file for package kfilemetadata
#
# Copyright (c) 2014 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:           kfilemetadata
Version:        4.14.3
Release:        0
Summary:        Extract Metadata
License:        GPL-2.0+ and LGPL-2.1+ and LGPL-3.0
Group:          System/GUI/KDE
Source0:        %{name}-%{version}.tar.xz
#PATCH-FIX-UPSTREAM fix-cmake-policy-warnings.patch -- fixes build in Factory
Patch:          fix-cmake-policy-warnings.patch
BuildRequires:  libepub-devel
BuildRequires:  libexiv2-devel
BuildRequires:  libkde4-devel
BuildRequires:  libpoppler-qt4-devel
BuildRequires:  mobipocket-devel
BuildRequires:  taglib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A library for extracting file metadata

%package devel
Summary:        Development package for kfilemetadata
Group:          System/GUI/KDE
Requires:       %{name} = %{version}
Requires:       libkde4-devel

%description devel
Development package for kfilemetadata

%prep
%setup -q
%patch -p1

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  %kde_post_install

%files
%defattr(-,root,root)
%doc COPYING*
%{_kde4_modulesdir}/kfilemetadata_*.so
%{_kde4_libdir}/libkfilemetadata.so.*
%{_kde4_servicesdir}/kfilemetadata_*.desktop
%{_kde4_servicetypesdir}/kfilemetadataextractor.desktop

%files devel
%defattr(-,root,root)
%{_kde4_libdir}/libkfilemetadata.so
%{_kde4_includedir}/kfilemetadata/
%{_kde4_libdir}/cmake/KFileMetaData/

%changelog
openSUSE Build Service is sponsored by