File mingw32-libchamplain.spec of Package mingw32-libchamplain
#
# spec file for package mingw32-libchamplain
#
# Copyright (c) 2014 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: mingw32-libchamplain
Version: 0.8.3
Release: 0
Summary: Library to display maps
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Url: http://projects.gnome.org/libchamplain/
Source0: libchamplain-%{version}.tar.bz2
Patch0: libchamplain-0.8.0-datadir.patch
Patch1: libchamplain-0.8.3-glib.patch
# Need native one too for glib-genmarshal
BuildRequires: autoconf
BuildRequires: automake
#!BuildIgnore: post-build-checks
BuildRequires: glib2-devel
BuildRequires: gtk-doc
BuildRequires: libtool
BuildRequires: mingw32-clutter-devel
BuildRequires: mingw32-clutter-gtk-devel
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem >= 23
BuildRequires: mingw32-glib2-devel
BuildRequires: mingw32-gtk2-devel
BuildRequires: mingw32-libsoup-devel
BuildRequires: mingw32-sqlite-devel
%_mingw32_package_header_debug
BuildArch: noarch
%description
Libchamplain is a C library providing a ClutterActor to display maps. It
also provides a Gtk+ widget to display maps in Gtk+ applications.
%package -n mingw32-libchamplain-0_8-1
Summary: Library to display maps
Group: System/Libraries
Obsoletes: %{name} < %{version}-%{release}
Provides: %{name} = %{version}-%{release}
%description -n mingw32-libchamplain-0_8-1
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
Summary: Library to display maps - Development Files
Group: Development/Libraries/C and C++
%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.
%_mingw32_debug_package
%prep
%setup -q -n libchamplain-%{version}
%patch -P 0 -p1 -b .datadir
%patch -P 1 -p1 -b .glib
%build
libtoolize --force --copy --install
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
PATH="%{_mingw32_bindir}:$PATH" \
%{_mingw32_configure} \
--disable-static --enable-shared
make %{?_smp_mflags} || make
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files -n mingw32-libchamplain-0_8-1
%defattr(-, root, root)
%{_mingw32_bindir}/libchamplain-0.8-1.dll
%{_mingw32_bindir}/libchamplain-gtk-0.8-1.dll
%files devel
%defattr(-, root, root)
%{_mingw32_libdir}/libchamplain-0.8.dll.a
%{_mingw32_libdir}/pkgconfig/champlain-0.8.pc
%{_mingw32_includedir}/libchamplain-0.8
%{_mingw32_datadir}/vala/vapi/champlain-0.8.deps
%{_mingw32_datadir}/vala/vapi/champlain-0.8.vapi
%{_mingw32_datadir}/gtk-doc/html/libchamplain
#
%{_mingw32_libdir}/libchamplain-gtk-0.8.dll.a
%{_mingw32_libdir}/pkgconfig/champlain-gtk-0.8.pc
%{_mingw32_includedir}/libchamplain-gtk-0.8
%{_mingw32_datadir}/vala/vapi/champlain-gtk-0.8.deps
%{_mingw32_datadir}/vala/vapi/champlain-gtk-0.8.vapi
%{_mingw32_datadir}/gtk-doc/html/libchamplain-gtk
%changelog