File libkexiv2.spec of Package libkexiv2

#
# spec file for package libkexiv2
#
# Copyright (c) 2012 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:           libkexiv2
Version:        4.8.4
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
BuildRequires:  libkde4-devel
BuildRequires:  xz
Requires:       libkexiv2-10 = %{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
  %make_install

%clean
  rm -rf %{buildroot}

%package -n libkexiv2-10
Summary:        Library to manipulate picture meta data
Group:          Development/Libraries/KDE

%description -n libkexiv2-10
Libkexiv2 is a wrapper around Exiv2 library to manipulate pictures
metadata.

%post -n libkexiv2-10 -p /sbin/ldconfig

%postun -n libkexiv2-10 -p /sbin/ldconfig

%files -n libkexiv2-10
%defattr(-,root,root)
%{_kde4_appsdir}/libkexiv2/
%{_kde4_libdir}/libkexiv2.so.*

%package devel
Summary:        Library to manipulate picture meta data
Group:          Development/Libraries/KDE
Requires:       libexiv2-devel
Requires:       libkde4-devel
Requires:       libkexiv2-10 = %{version}
%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}/libkexiv2.so
%{_kde4_libdir}/pkgconfig/libkexiv2.pc
%{_includedir}/libkexiv2/

%changelog
openSUSE Build Service is sponsored by