File emerillon.spec of Package emerillon
#
# spec file for package emerillon
#
# Copyright (c) 2013 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: emerillon
Version: 0.1.90
Release: 0
Summary: Map viewer for GNOME
License: GPL-2.0+
Group: Productivity/Other
Url: http://projects.gnome.org/emerillon/
Source: http://download.gnome.org/sources/%{name}/0.1/%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE emerillon-desktop-file.patch bgo#606540 badshah400@gmail.com -- Remove icon references from .desktop file to fix build, as presently emerillon does not install any icon yet
Patch0: emerillon-desktop-file.patch
BuildRequires: fdupes
BuildRequires: gnome-doc-utils-devel
BuildRequires: gobject-introspection-devel
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: vala
BuildRequires: pkgconfig(champlain-0.12) >= 0.11.0
BuildRequires: pkgconfig(champlain-gtk-0.12) >= 0.11.0
BuildRequires: pkgconfig(geoclue) >= 0.11.1
BuildRequires: pkgconfig(glib-2.0) >= 2.25.10
BuildRequires: pkgconfig(gtk+-3.0) >= 3.0.0
BuildRequires: pkgconfig(libpeas-1.0) >= 1.0
BuildRequires: pkgconfig(libpeas-gtk-1.0) >= 1.0
BuildRequires: pkgconfig(rest-0.7) >= 0.6
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
Emerillon is a map viewer. Aiming at simple user interface, Emerillon is
a powerful, extensible application.
It features OpenStreetMap based maps: the street map, the cycling map
and the transportation map. It can be used to browse maps, search the
map for places, or placemark places for later quick access.
%package devel
Summary: Map viewer for GNOME -- Development Files
Group: Development/Libraries/GNOME
Requires: %{name} = %{version}
%description devel
Emerillon is a map viewer. Aiming at simple user interface, Emerillon is
a powerful, extensible application.
It features OpenStreetMap based maps: the street map, the cycling map
and the transportation map. It can be used to browse maps, search the
map for places, or placemark places for later quick access.
%lang_package
%prep
%setup -q
%patch0 -p1
%build
%configure \
--disable-static \
--disable-maintainer-mode
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file emerillon X-SuSE-WebUtility
%find_lang %{name} %{?no_lang_C}
%fdupes -s %{buildroot}%{_datadir}/gnome/help/%{name}/
# Fail once we can remove patch0
test ! -d %{buildroot}%{_datadir}/icons/hicolor
%post
%glib2_gsettings_schema_post
%desktop_database_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/%{name}
%{_datadir}/%{name}/
%dir %{_datadir}/GConf/
%dir %{_datadir}/GConf/gsettings/
%{_datadir}/GConf/gsettings/%{name}.convert
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.emerillon.gschema.xml
%dir %{_libdir}/emerillon/
%dir %{_libdir}/emerillon/plugins/
# Explicitly list plugins so we know if one doesn't build because of a missing dependency
%{_libdir}/emerillon/plugins/copy-link.plugin
%{_libdir}/emerillon/plugins/libcopy-link.so
%{_libdir}/emerillon/plugins/libmap-position.so
%{_libdir}/emerillon/plugins/libplacemarks.so
%{_libdir}/emerillon/plugins/libsearch.so
%{_libdir}/emerillon/plugins/map-position.plugin
%{_libdir}/emerillon/plugins/placemarks.plugin
%{_libdir}/emerillon/plugins/search.plugin
%{_libdir}/girepository-1.0/Emerillon-0.2.typelib
%files devel
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/%{name}/
%{_includedir}/%{name}-0.1/
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/gir-1.0/Emerillon-0.2.gir
%{_datadir}/vala/vapi/%{name}.*
%files lang -f %{name}.lang
%changelog