File libchamplain.spec of Package libchamplain

#
# spec file for package libchamplain
#
# Copyright (c) 2016 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:           libchamplain
Version:        0.12.13
Release:        0
Summary:        Library to display maps
License:        LGPL-2.1+
Group:          Development/Libraries/GNOME
Url:            http://projects.gnome.org/libchamplain/
Source0:        http://download.gnome.org/sources/libchamplain/0.12/%{name}-%{version}.tar.xz
BuildRequires:  clutter-devel >= 1.12
BuildRequires:  clutter-gtk-devel
BuildRequires:  fdupes
BuildRequires:  glib2-devel
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  gtk3-devel
BuildRequires:  libsoup-devel >= 2.34
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
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 -n typelib-1_0-Champlain-0_12
Summary:        Library to display maps -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-Champlain-0_12
Libchamplain is a C library providing a ClutterActor to display maps. It
also provides a Gtk+ widget to display maps in Gtk+ applications.

This package provides the GObject Introspection bindings for
libchamplain.

%package devel
Summary:        Library to dusplay maps - Development Files
Group:          Development/Libraries/GNOME
Requires:       libchamplain-0_12-0 = %{version}
Requires:       typelib-1_0-Champlain-0_12 = %{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.*

%files -n typelib-1_0-Champlain-0_12
%defattr(-,root,root)
%{_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
%{_includedir}/libchamplain-0.12/
%{_includedir}/libchamplain-gtk-0.12/
%doc %{_datadir}/gtk-doc/html/libchamplain-0.12/
%doc %{_datadir}/gtk-doc/html/libchamplain-gtk-0.12/
%{_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
openSUSE Build Service is sponsored by