# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Summary: Map view for Clutter
Name: libchamplain
Version: 0.6.1
Release: 3%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://projects.gnome.org/libchamplain/
Source0: http://download.gnome.org/sources/libchamplain/0.6/%{name}-%{version}.tar.bz2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Requires: gobject-introspection
BuildRequires: chrpath
BuildRequires: clutter-devel
BuildRequires: clutter-gtk-devel
BuildRequires: libsoup-devel
BuildRequires: pyclutter-devel
BuildRequires: pyclutter-gtk-devel
BuildRequires: pygobject2-devel
BuildRequires: pygtk2-devel
BuildRequires: sqlite-devel
%description
Libchamplain is a C library aimed to provide a ClutterActor to display
rasterized maps.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: gobject-introspection-devel
Requires: gtk-doc
Requires: %{name} = %{version}-%{release}
%description devel
This package contains development files for %{name}.
%package gtk
Summary: Gtk+ widget wrapper for %{name}
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description gtk
Libchamplain-gtk is a library providing a GtkWidget to embed %{name}
into Gtk+ applications.
%package gtk-devel
Summary: Development files for %{name}-gtk
Group: Development/Libraries
Requires: gtk-doc
Requires: %{name}-devel = %{version}-%{release}
Requires: %{name}-gtk = %{version}-%{release}
%description gtk-devel
This package contains development files for %{name}-gtk.
%package vala
Summary: Vala bindings for %{name}
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description vala
This package contains vala bindings for development %{name}.
%package python
Summary: Python bindings for %{name}
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description python
This package contains python bindings for development %{name}.
%prep
%setup -q
%build
%configure --disable-debug --disable-silent-rules --disable-static \
--enable-gtk --enable-gtk-doc --enable-introspection=yes --enable-python
# Omit unused direct shared library dependencies.
sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
# Remove rpaths.
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/%{name}-gtk-0.6.so.0.0.1
chrpath --delete $RPM_BUILD_ROOT%{python_sitearch}/champlaingtk.so
chrpath --delete $RPM_BUILD_ROOT%{python_sitearch}/champlain.so
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post gtk -p /sbin/ldconfig
%postun gtk -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README NEWS
%{_libdir}/girepository-1.0/Champlain-0.6.typelib
%{_libdir}/%{name}-0.6.so.*
%files devel
%defattr(-,root,root,-)
%doc demos/animated-marker.c
%doc demos/launcher.c
%doc demos/markers.c
%doc demos/markers.h
%doc demos/polygons.c
%doc demos/url-marker.c
%{_datadir}/gir-1.0/Champlain-0.6.gir
%{_libdir}/%{name}-0.6.so
%{_libdir}/pkgconfig/champlain-0.6.pc
%dir %{_datadir}/gtk-doc/html/libchamplain
%doc %{_datadir}/gtk-doc/html/libchamplain/*
%dir %{_includedir}/%{name}-0.6
%{_includedir}/%{name}-0.6/champlain
%files gtk
%defattr(-,root,root,-)
%{_libdir}/girepository-1.0/GtkChamplain-0.6.typelib
%{_libdir}/%{name}-gtk-0.6.so.*
%files gtk-devel
%defattr(-,root,root,-)
%doc demos/launcher-gtk.c
%doc demos/markers.c
%doc demos/markers.h
%{_datadir}/gir-1.0/GtkChamplain-0.6.gir
%{_libdir}/%{name}-gtk-0.6.so
%{_libdir}/pkgconfig/champlain-gtk-0.6.pc
%dir %{_datadir}/gtk-doc/html/libchamplain-gtk
%doc %{_datadir}/gtk-doc/html/libchamplain-gtk/*
%dir %{_includedir}/%{name}-gtk-0.6
%{_includedir}/%{name}-gtk-0.6/champlain-gtk
%files python
%defattr(-,root,root,-)
%{python_sitearch}/champlaingtk.so
%{python_sitearch}/champlain.so
%files vala
%defattr(-,root,root,-)
%{_datadir}/vala/vapi/champlain-0.6.deps
%{_datadir}/vala/vapi/champlain-0.6.vapi
%{_datadir}/vala/vapi/champlain-gtk-0.6.deps
%{_datadir}/vala/vapi/champlain-gtk-0.6.vapi
%changelog
* Thu Jul 15 2010 Colin Walters <walters@verbum.org> - 0.6.1-3
- Rebuild with new gobject-introspection
* Mon Jul 12 2010 Colin Walters <walters@verbum.org> - 0.6.1-2
- Rebuild against new gobject-introspection
* Mon Jul 5 2010 Peter Robinson <pbrobinson@gmail.com> - 0.6.1-1
- Version bump to 0.6.1. Enable python and vala bindings
http://ftp.gnome.org/pub/GNOME/sources/libchamplain/0.6/libchamplain-0.6.1.news
* Fri Apr 23 2010 Debarshi Ray <rishi@fedoraproject.org> - 0.4.5-1
- Version bump to 0.4.5.
* Asynchronously load the tiles from the cache.
* GObject Introspection is in a working state.
* Limit the internal operations that happen when the user moves.
* Limit the number of times the scale is redrawn.
* Optimized the initialization process. Only the needed tiles are loaded.
* Properly get rid of marker's previous image properly.
* Removed the need to explicitly set the size of actors.
* Deprecated champlain_view_set_size in favor of clutter_actor_set_size.
(GNOME Bugzilla #580372)
* Load the tiles in spiral order. (GNOME Bugzilla #606393)
* http://download.gnome.org/sources/libchamplain/0.4/libchamplain-0.4.5.news
* http://download.gnome.org/sources/libchamplain/0.4/libchamplain-0.4.4.news
* http://download.gnome.org/sources/libchamplain/0.4/libchamplain-0.4.5.changes
* http://download.gnome.org/sources/libchamplain/0.4/libchamplain-0.4.4.changes
- Added 'BuildRequires: chrpath' for removing rpaths.
- Added README to %%doc.
- Added demos/markers.h to %%doc of libchamplain-gtk-devel.
* Sun Jan 17 2010 Debarshi Ray <rishi@fedoraproject.org> - 0.4.3-1
- Version bump to 0.4.3.
* A new scale.
* User configurable additional license text to view.
* An option to highlight points in polygons.
* Fixed segmentation fault in function cairo_set_generator.
(GNOME Bugzilla #604784)
* Fixed segmentation fault when polygon has been deleted before redraw.
* Made queue_redraw visible to subclasses.
* Some memory usage improvements by reusing images already loaded.
* Don't eat clicks on the map when using ChamplainSelectionLayer.
* http://download.gnome.org/sources/libchamplain/0.4/libchamplain-0.4.3.news
* http://download.gnome.org/sources/libchamplain/0.4/libchamplain-0.4.3.changes
* Thu Oct 29 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.4.2-1
- Version bump to 0.4.2.
* Fixed acceptable values of "decel-rate". (GNOME Bugzilla #595552)
* Fixed GObject Introspection build failure. (GNOME Bugzilla #598942)
* http://download.gnome.org/sources/libchamplain/0.4/libchamplain-0.4.2.news
* http://download.gnome.org/sources/libchamplain/0.4/libchamplain-0.4.2.changes
* Mon Oct 19 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.4.1-1
- Version bump to 0.4.1.
* Added champlain_view_remove_layer.
* ChamplainSelectionLayer now has a "changed" signal.
* Added champlain_marker_get_highlighted_text_color,
champlain_marker_set_highlighted_text_color and
Added champlain_marker_get_highlighted_color.
* Fixed slowdowns with big caches.
* Don't emit invalid latitude and longitude notifications.
* Ensure map is displayed in Eye of GNOME's champlain plugin. (GNOME
Bugzilla #598106)
* http://download.gnome.org/sources/libchamplain/0.4/libchamplain-0.4.1.news
* http://download.gnome.org/sources/libchamplain/0.4/libchamplain-0.4.1.changes
- Enabled GObject Introspection, and added 'Requires: gobject-introspection'
and 'BuildRequires: gir-repository-devel'. Patched to fix build failure.
(GNOME Bugzilla #598942)
- Explicitly disabled debug code.
- RPaths fixed by upstream. Removed 'BuildRequires: chrpath'.
* Mon Sep 21 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.4.0-1
- Version bump to 0.4.0.
* ChamplainView now has keyboard shortcuts (but not when used with
GtkChamplainEmbed).
* Removed deprecated symbols introduced in 0.3.
* Fixed X error when using GtkChamplainEmbed. (GNOME Bugzilla #590692)
* Events were not being sent until the mouse moved. (GNOME Bugzilla #590727)
* Fixed memory leak in ChamplainLayer. (GNOME Bugzilla #593505)
* Initial center_on should not result on the map being in Antarctica.
(GNOME Bugzilla #594963)
* http://download.gnome.org/sources/libchamplain/0.3/libchamplain-0.3.92.news
* http://download.gnome.org/sources/libchamplain/0.3/libchamplain-0.3.92.changes
* Mon Aug 24 2009 Matthias Clasen <mclasen@redhat.com> - 0.3.91-1
- Version bump to 0.3.91.
* http://download.gnome.org/sources/libchamplain/0.3/libchamplain-0.3.91.news
* Tue Aug 11 2009 Matthias Clasen <mclasen@redhat.com> - 0.3.90-1
- Version bump to 0.3.90.
* http://download.gnome.org/sources/libchamplain/0.3/libchamplain-0.3.90.news
* http://download.gnome.org/sources/libchamplain/0.3/libchamplain-0.3.90.changes
* Mon Aug 3 2009 Matthias Clasen <mclasen@redhat.com> - 0.3.6-1
- Version bump to 0.3.6.
* New marker animation API.
* Ported to Clutter 1.0. (GNOME Bugzilla #576391)
* http://download.gnome.org/sources/libchamplain/0.3/libchamplain-0.3.6.news
* http://download.gnome.org/sources/libchamplain/0.3/libchamplain-0.3.6.changes
* Sat Aug 02 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.3.5-1
- Version bump to 0.3.5.
* Marker selection API. (GNOME Bugzilla #577909)
* http://download.gnome.org/sources/libchamplain/0.3/libchamplain-0.3.5.news
* http://download.gnome.org/sources/libchamplain/0.3/libchamplain-0.3.4.news
* http://download.gnome.org/sources/libchamplain/0.3/libchamplain-0.3.5.changes
* http://download.gnome.org/sources/libchamplain/0.3/libchamplain-0.3.4.changes
* Fri Jul 24 2009 Release Engineering <rel-eng@fedoraproject.org> - 0.3.3-2
- Autorebuild for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sat Jul 11 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.3.3-1
- Version bump to 0.3.3.
* Support for custom map sources and listing available map sources.
* Smooth movement to a new position. (GNOME Bugzilla #557641)
* Keep the center of the map in the center after a resize. (GNOME Bugzilla
#557642)
* Double click to zoom and center. (GNOME Bugzilla #557644)
* Added a way to know the maximum and minimum zoom level. (GNOME Bugzilla
#557965)
* Fixed unwanted wrap effect when panning at zoom level >= 8. (GNOME
Bugzilla #558020)
* Fixed center on and zooming in behavior. (GNOME Bugzilla #558026)
* Lack of user feedback during loading of tiles. (GNOME Bugzilla #559522)
* Added missing zoom level to OpenStreetMap Mapnik. (GNOME Bugzilla
#559446)
* Fixed wrong elastic effect affecting Emapthy's map view. (GNOME Bugzilla
#561700)
* Added disk cache management. (GNOME Bugzillla #568931)
* Host application should be able to limit the maximum and minimum zoom
levels. (GNOME Bugzilla #571702)
* Allow host applications to draw lines/routes on the map. (GNOME Bugzilla
#572377)
* Support proxies. (GNOME Bugzilla #573937)
* Provide a way to make visible a bunch of markers. (GNOME Bugzilla #574809)
* Do not allow negative zoom levels. (GNOME Bugzilla #575138)
* Fixed corrupted map when double-clicking at maximum level. (GNOME Bugzilla
#575139)
* Prevent ChamplainNetworkMapSource from crashing when setting "proxy-uri".
(GNOME Bugzilla #575902).
* Implemented advanced markers. (GNOME Bugzilla #576055)
* Various memory management fixes for ChamplainTile. (GNOME Bugzilla
#576159)
* Any go_to should stop a previous and not yet finished go_to. (GNOME
Bugzilla #576832)
* Prevent segmentation fault on 32 bit platforms. (GNOME Bugzilla #576698)
* Introduced a new signal called ChamplainView::animation-completed. (GNOME
Bugzilla #577169)
* Set decel-rate correctly. (GNOME Bugzilla #580785)
* champlain_network_map_source_fill_tile should be private. (GNOME Bugzilla
#582786)
* Fixed champlain_view_center_on. (GNOME Bugzilla #583502)
* Fixed "longitude" and "latitude" properties, which were reversed. (GNOME
Bugzilla #584365)
* Make the cache work the first time. (GNOME Bugzilla #584390)
* GNOME Goal: use accessor functions instead direct access. (GNOME Bugzilla
#585698)
- Added 'BuildRequires: chrpath' for removing rpaths.
* Wed Mar 18 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.2.9-1
- Version bump to 0.2.9.
* Fixed elastic effect.
* Reduced exported symbols.
* Wed Feb 25 2009 Release Engineering <rel-eng@fedoraproject.org> - 0.2.8-3
- Autorebuild for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Jan 28 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.2.8-2
- Removed 'Requires: clutter-devel >= 0.8 pkgconfig' from libchamplain-devel
for all distributions, except Fedora 10.
- Fixed sample code to not use generic headers.
* Wed Jan 14 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.2.8-1
- Initial build. Imported SPEC from openSUSE.
* Added a new constructor for ChamplainMarkers made of an image.
* Double clicking on the map will now zoom and recenter.
* When resizing a ChamplainView, the centered content will still be
centered after the resizing. Can be disabled.
* The Map's license is displayed by default on the lower right corner.
* Fixed map centering on startup.
* Fixed missing zoom level in OpenStreetMap Mapnik.
* Fixed zooming and centering behaviour. (GNOME Bugzilla #558026)