File libchamplain.spec of Package libchamplain
#
# spec file for package libchamplain
#
# Copyright (c) 2011 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.12.0
Release: 1
License: LGPLv2.1+
Summary: Library to display maps
Url: http://projects.gnome.org/libchamplain/
Group: Development/Libraries/GNOME
Source0: http://download.gnome.org/sources/libchamplain/0.12/%{name}-%{version}.tar.bz2
BuildRequires: clutter-devel
BuildRequires: clutter-gtk-devel
BuildRequires: fdupes
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
BuildRequires: gtk3-devel
BuildRequires: libsoup-devel
BuildRequires: memphis-devel
BuildRequires: sqlite3-devel
BuildRequires: vala
%if 0%{?BUILD_FROM_VCS}
BuildRequires: gnome-common
BuildRequires: gtk-doc
%endif
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_12-0
License: LGPLv2.1+
Summary: Library to display maps
Group: Development/Libraries/GNOME
%description -n libchamplain-0_12-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_12-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
%if 0%{?BUILD_FROM_VCS}
[ -x ./autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
%endif
%build
%configure --disable-static --enable-vala
%__make %{?_smp_mflags} V=1
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}%{_datadir}/gtk-doc
%clean
%{__rm} -rf %{buildroot}
%post -n libchamplain-0_12-0 -p /sbin/ldconfig
%postun -n libchamplain-0_12-0 -p /sbin/ldconfig
%files -n libchamplain-0_12-0
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS
%{_libdir}/libchamplain-0.12.so.*
%{_libdir}/libchamplain-gtk-0.12.so.*
%{_libdir}/girepository-1.0/Champlain-0.12.typelib
%{_libdir}/girepository-1.0/GtkChamplain-0.12.typelib
%files devel
%defattr(-, root, root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/champlain-0.12.pc
%{_libdir}/pkgconfig/champlain-gtk-0.12.pc
%{_libdir}/pkgconfig/champlain-memphis-0.12.pc
%{_includedir}/libchamplain-0.12/
%{_includedir}/libchamplain-gtk-0.12/
%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.12.*
%{_datadir}/vala/vapi/champlain-gtk-0.12.*
%changelog