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 11

Name:           libkexiv2
Version:        15.08.1
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
BuildRequires:  libexiv2-devel >= 0.24
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}

%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
openSUSE Build Service is sponsored by