File libkexiv2.spec of Package libkexiv2
#
# 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 15_0_0
%define lname libKF5KExiv2
Name: libkexiv2
Version: 16.08.2
Release: 0
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
%if 0%{?suse_version} != 1315 || 0%{?is_opensuse}
BuildRequires: libexiv2-devel >= 0.25
%else
BuildRequires: libexiv2-devel >= 0.23
%endif
BuildRequires: extra-cmake-modules
BuildRequires: kcompletion-devel
BuildRequires: kcoreaddons-devel
BuildRequires: ktextwidgets-devel
BuildRequires: kf5-filesystem
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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}
%patch0 -p1
%endif
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%package -n %{lname}-%{_so}
Summary: Library to manipulate picture meta data
Group: Development/Libraries/KDE
%description -n %{lname}-%{_so}
Libkexiv2 is a wrapper around Exiv2 library to manipulate pictures
metadata.
%post -n %{lname}-%{_so} -p /sbin/ldconfig
%postun -n %{lname}-%{_so} -p /sbin/ldconfig
%files -n %{lname}-%{_so}
%defattr(-,root,root)
%{_kf5_libdir}/libKF5KExiv2.so.*
%package devel
Summary: Library to manipulate picture meta data
Group: Development/Libraries/KDE
Requires: %{lname}-%{_so} = %{version}
Requires: extra-cmake-modules
Requires: kdelibs4support-devel
Requires: khtml-devel
Requires: libexiv2-devel
%description devel
Libkexiv2 is a wrapper around Exiv2 library to manipulate pictures
metadata.
%files devel
%defattr(-,root,root)
%doc COPYING README
%{_kf5_libdir}/libKF5KExiv2.so
%{_kf5_includedir}/
%{_kf5_libdir}/cmake/KF5KExiv2/
%changelog