File libkgeomap.spec of Package libkgeomap

#
# spec file for package libkgeomap
#
# 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/
#


Name:           libkgeomap
BuildRequires:  boost-devel
BuildRequires:  libkde4-devel
BuildRequires:  libkexiv2-devel
BuildRequires:  libmarblewidget-devel
Summary:        Wrapper around different world-map components
License:        LGPL-2.1 and GPL-2.0+
Group:          Development/Libraries/KDE
Url:            http://www.kde.org
Version:        15.08.1
Release:        0
Source0:        %{name}-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Requires:       libkgeomap2
Obsoletes:      libkgeomap-lang

%description
Libkgeomap is a wrapper around different world-map components, to browse and arrange photos over a map.
Currently supported map engine are:
- Marble, 
- OpenstreetMap (via Marble),
- GoogleMap,
This library is used by kipi-plugins, digiKam and other kipi host programs

%prep
%setup -q -n %{name}-%{version}

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %makeinstall
  %kde_post_install

%clean
  rm -rf $RPM_BUILD_ROOT

%package -n libkgeomap2
Summary:        Wrapper around different world-map components
Group:          Development/Libraries/KDE
Recommends:     marble
Requires:       libkgeomap

%description -n libkgeomap2
Libkgeomap is a wrapper around different world-map components, to browse and arrange photos over a map
Currently supported map engine are:
- Marble, 
- OpenstreetMap (via Marble),
- GoogleMap,
This library is used by kipi-plugins, digiKam and other kipi host programs

%files -n libkgeomap2
%defattr(-,root,root)
%_kde4_libdir/libkgeomap.so.*

%post -n libkgeomap2 -p /sbin/ldconfig

%postun -n libkgeomap2 -p /sbin/ldconfig

%package devel
Summary:        Wrapper around different world-map components
Group:          Development/Libraries/KDE
Requires:       libkgeomap2 = %version

%description devel
Libkgeomap is a wrapper around different world-map components, to browse and arrange photos over a map.
Currently supported map engine are:
- Marble, 
- OpenstreetMap (via Marble),
- GoogleMap,
This library is used by kipi-plugins, digiKam and other kipi host programs

%files devel
%defattr(-,root,root)
%doc README
%_kde4_libdir/libkgeomap.so
%_includedir/libkgeomap/
%_kde4_libdir/pkgconfig/libkgeomap.pc
%_kde4_appsdir/cmake/modules/FindKGeoMap.cmake

%files
%defattr(-,root,root)
%_kde4_appsdir/libkgeomap/

%changelog
openSUSE Build Service is sponsored by