File libchamplain.spec of Package libchamplain

#
# spec file for package libchamplain (Version 0.4.0)
#
# Copyright (c) 2009 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.4.0
Release:        1
License:        LGPL v2.1 or later
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:  gir-repository
BuildRequires:  glib2-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk2-devel
BuildRequires:  libsoup-devel
BuildRequires:  sqlite3-devel
# Enable bindings when they will be ready
# FIXME: missing BuildRequires: python-clutter
# FIXME: missing BuildRequires: clutter-sharp
#BuildRequires:  gtk-sharp2
#BuildRequires:  mono-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 libchamplain0
License:        LGPL v2.1 or later
Summary:        Library to display maps
Group:          Development/Libraries/GNOME

%description -n libchamplain0
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:        LGPL v2.1 or later
Summary:        Library to dusplay maps - Development Files
Group:          Development/Libraries/GNOME
Requires:       clutter-devel
Requires:       clutter-gtk-devel
Requires:       glib2-devel
Requires:       gtk2-devel
Requires:       libchamplain0 = %{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 %{?jobs:-j%jobs}

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

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

%post -n libchamplain0 -p /sbin/ldconfig

%postun -n libchamplain0 -p /sbin/ldconfig

%files -n libchamplain0
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS
%{_libdir}/*.so.*
%{_libdir}/girepository-1.0/*.typelib
%{_datadir}/gir-1.0/*.gir

%files devel
%defattr(-, root, root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/libchamplain-0.4
%{_includedir}/libchamplain-gtk-0.4
%{_datadir}/gtk-doc/html/libchamplain
%{_datadir}/gtk-doc/html/libchamplain-gtk

%changelog
openSUSE Build Service is sponsored by