File libchamplain.spec of Package libchamplain

#
# spec file for package libchamplain (Version 0.8.0)
#
# Copyright (c) 2010 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:           libchamplain
Version:        0.8.0
Release:        2
# FIXME: Python bindings: in 0.7.1, this needs pymemphis, which is a temporary solution until pygi works. So wait for real solution.
License:        LGPLv2.1+
Summary:        Library to display maps
Url:            http://projects.gnome.org/libchamplain/
Group:          Development/Libraries/GNOME
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  clutter-devel
BuildRequires:  clutter-gtk-devel
BuildRequires:  fdupes
BuildRequires:  glib2-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk2-devel
BuildRequires:  libsoup-devel
BuildRequires:  memphis-devel
BuildRequires:  sqlite3-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Libchamplain is a C library providing a ClutterActor to display maps. It
also provides a Gtk+ widget to display maps in Gtk+ applications.

It supports numerous free map sources such as OpenStreetMap,
OpenAerialMap and Maps for free.

%package -n libchamplain-0_8-0
License:        LGPLv2.1+
Summary:        Library to display maps
Group:          Development/Libraries/GNOME

%description -n libchamplain-0_8-0
Libchamplain is a C library providing a ClutterActor to display maps. It
also provides a Gtk+ widget to display maps in Gtk+ applications.

It supports numerous free map sources such as OpenStreetMap,
OpenAerialMap and Maps for free.

%package devel
License:        LGPLv2.1+
Summary:        Library to dusplay maps - Development Files
Group:          Development/Libraries/GNOME
Requires:       libchamplain-0_8-0 = %{version}

%description devel
Libchamplain is a C library providing a ClutterActor to display maps. It
also provides a Gtk+ widget to display maps in Gtk+ applications.

It supports numerous free map sources such as OpenStreetMap,
OpenAerialMap and Maps for free.

%prep
%setup -q

%build
%configure --disable-static
%__make %{?_smp_mflags}

%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}%{_datadir}/gtk-doc

%clean
%{__rm} -rf %{buildroot}

%post -n libchamplain-0_8-0 -p /sbin/ldconfig

%postun -n libchamplain-0_8-0 -p /sbin/ldconfig

%files -n libchamplain-0_8-0
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS
%{_libdir}/libchamplain-0.8.so.*
%{_libdir}/libchamplain-gtk-0.8.so.*
%{_libdir}/girepository-1.0/Champlain-0.8.typelib
%{_libdir}/girepository-1.0/GtkChamplain-0.8.typelib

%files devel
%defattr(-, root, root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/champlain-0.8.pc
%{_libdir}/pkgconfig/champlain-gtk-0.8.pc
%{_libdir}/pkgconfig/champlain-memphis-0.8.pc
%{_includedir}/libchamplain-0.8/
%{_includedir}/libchamplain-gtk-0.8/
%doc %{_datadir}/gtk-doc/html/libchamplain/
%doc %{_datadir}/gtk-doc/html/libchamplain-gtk/
%{_datadir}/gir-1.0/*.gir
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/champlain-0.8.*
%{_datadir}/vala/vapi/champlain-gtk-0.8.*
%{_datadir}/vala/vapi/champlain-memphis-0.8.*

%changelog
openSUSE Build Service is sponsored by