Search
SailfishOS Open Build Service
>
Projects
>
home:MartinK
:
sailfish
:
geo
>
navit
> navit.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File navit.spec of Package navit
# # spec file for package navit # # Copyright (c) 2012 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: navit Version: 0.5.0+svn5730 Release: 0.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} BuildRequires: fdupes # gpsd seems not to be available on centos and missing in the repository for mandriva? BuildRequires: gpsd-devel BuildRequires: update-desktop-files %endif %if 0%{?suse_version} > 1120 BuildRequires: clutter-devel BuildRequires: clutter-gtk-devel BuildRequires: rsvg-view BuildRequires: speechd-devel BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(gtk+-2.0) %else BuildRequires: gtk2-devel BuildRequires: librsvg2 %endif %if 0%{?mandriva_version} BuildRequires: libx11-devel BuildRequires: libxinerama-devel BuildRequires: libxv-devel BuildRequires: qt4-devel %else BuildRequires: SDL-devel BuildRequires: freeglut-devel %endif %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version} BuildRequires: libX11-devel BuildRequires: libXinerama-devel BuildRequires: libXv-devel %endif BuildRequires: espeak-devel BuildRequires: gcc-c++ BuildRequires: gd-devel BuildRequires: gpsd-devel BuildRequires: gettext-devel BuildRequires: libgarmin-devel BuildRequires: libgypsy-devel BuildRequires: libqt4-devel BuildRequires: libtool BuildRequires: libxslt-devel BuildRequires: postgresql-devel BuildRequires: postgresql-devel BuildRequires: python-devel BuildRequires: python-devel BuildRequires: saxon8 %if 0%{?suse_version} <= 1210 BuildRequires: xerces-j2 %endif #Requires: espeak #Requires: gpsd Requires: liberation-fonts Url: http://wiki.navit-project.org/ Source: %{name}-%{version}.tar.bz2 Source1: osm_sample_bbox.osm.bz2 Summary: Open source car navigation software License: GPL-2.0 Group: System/GUI/Other %description Navit is an open source (GPL) car navigation software for Linux systems. It will display your position on a map (in bird-view mode or as a 3D "visualization") from GPS sensor data, and can provide precise route calculation, touch screen functionality and supports Points of Interest (POI), which can be extended via an easy to use plugin system. Unlike other navigation systems, Navit maps are dynamically generated in real time from vector data. %prep %setup -q -n %{name} mkdir -p %{_builddir}/%{name}-%{version}/%{name}/maps cp "%{SOURCE1}" "%{_builddir}/%{name}-%{version}/%{name}/maps/osm_bbox_11.3,47.9,11.7,48.2" ./autogen.sh %build %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version} export PATH=%{_libdir}/qt4/bin:$PATH %endif %configure --enable-gui-gtk --enable-speech-speechd --enable-binding-dbus \ --enable-graphics-sdl --enable-graphics-gd --enable-graphics-qt-qpainter \ --disable-samplemap make %{?_smp_mflags} %install %makeinstall find %{buildroot} -name '*.la' -delete %if 0%{?suse_version} %suse_update_desktop_file -n %{name} %endif sed -i 's/Categories=.*/Categories=Education;Geography;/' %{buildroot}/%{_datadir}/applications/navit.desktop %if 0%{?suse_version} > 1020 %fdupes -s %{buildroot} %endif %find_lang %{name} %files -f %{name}.lang %defattr(-,root,root,-) %doc COPYING COPYRIGHT LGPL-2 AUTHORS ChangeLog NEWS README %{_bindir}/navit %{_bindir}/maptool %{_libdir}/navit/ %{_datadir}/applications/navit.desktop %{_datadir}/icons/hicolor/22x22/apps/navit.png %{_datadir}/icons/hicolor/128x128/apps/navit.png %{_datadir}/navit/ %{_mandir}/man1/* %if 0%{?suse_version} > 1120 %{_datadir}/dbus-1/services/*.service %endif %if 0%{?suse_version} < 1130 %{_datadir}/locale/jv/ %endif %changelog