File libkexiv2.spec of Package libkexiv2-kde4
#
# spec file for package libkexiv2
#
# 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/
#
%define _so 11
Name: libkexiv2
Version: 15.08.3
Release: 3.3
Summary: Library to manipulate picture meta data
License: GPL-2.0+
Group: Development/Libraries/KDE
Url: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE fix-reduce-required-exiv2-to-0.23.diff -- Reduce required exiv2 version from 0.24 to 0.23 for SLE12
Patch0: fix-reduce-required-exiv2-to-0.23.diff
Patch1: Fix-building-against-exiv2-0.27.patch
Patch2: Fix-build-with-exiv2_0.28.patch
%if 0%{?suse_version} != 1315 || 0%{?is_opensuse}
BuildRequires: libexiv2-devel >= 0.25
%else
BuildRequires: libexiv2-devel >= 0.23
%endif
BuildRequires: libkde4-devel
BuildRequires: xz
Requires: %{name}-%{_so} = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
Libkexiv2 is a wrapper around Exiv2 library to manipulate pictures
metadata.
%prep
%setup -q -n %{name}-%{version}
%if 0%{?suse_version} == 1315 && !0%{?is_opensuse}
%patch -P0 -p1
%endif
%patch -P1 -p1
%patch -P2 -p1
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%kde4_makeinstall
%package -n %{name}-%{_so}
Summary: Library to manipulate picture meta data
Group: Development/Libraries/KDE
%description -n %{name}-%{_so}
Libkexiv2 is a wrapper around Exiv2 library to manipulate pictures
metadata.
%post -n %{name}-%{_so} -p /sbin/ldconfig
%postun -n %{name}-%{_so} -p /sbin/ldconfig
%files -n %{name}-%{_so}
%defattr(-,root,root)
%{_kde4_appsdir}/%{name}/
%{_kde4_libdir}/%{name}.so.%{_so}*
%package devel
Summary: Library to manipulate picture meta data
Group: Development/Libraries/KDE
Requires: %{name}-%{_so} = %{version}
Requires: libexiv2-devel
Requires: libkde4-devel
%requires_ge libqt4-x11
%description devel
Libkexiv2 is a wrapper around Exiv2 library to manipulate pictures
metadata.
%files devel
%defattr(-,root,root)
%doc COPYING README
%{_kde4_libdir}/%{name}.so
%{_kde4_libdir}/pkgconfig/%{name}.pc
%{_kde4_includedir}/%{name}/
%{_kde4_libdir}/cmake/libkexiv2*/
%changelog