Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 0a6e0b85e721efc7ca010a0794a4d2a7 > files > 3

navit-0.2.0-9.mga5.src.rpm


Name:		navit
Summary:	Car navigation system with routing engine
Version:	0.2.0
Release:	%mkrel 9
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:	http://www.navit-project.org/maps/osm_bbox_11.3,47.9,11.7,48.2.osm.bz2
Patch0:		navit-0.2.0-freetype2.patch
Group:		Sciences/Other
License:	GPLv2+
BuildRequires:	zlib-devel
BuildRequires:	gtk+2-devel
BuildRequires:	fontconfig-devel
BuildRequires:	SDL_image-devel
BuildRequires:	postgresql-devel
BuildRequires:	imlib2-devel
BuildRequires:	libxmu-devel
BuildRequires:	mesaglu-devel
BuildRequires:	quesoglc-devel
BuildRequires:	python-devel
BuildRequires:	dbus-glib-devel
BuildRequires:	gettext-devel
BuildRequires:	gd-devel
BuildRequires:	speech-dispatcher-devel
BuildRequires:	gpsd-devel
BuildRequires:	nas-devel
Requires:	fonts-ttf-dejavu
Recommends:	gpsd
Obsoletes:	navit-gui-cegui
URL:		http://www.navit-project.org/

%description
Navit is a car navigation system with routing engine. Its modular
design is capable of using vector maps of various formats for routing
and rendering of the displayed map. It's even possible to use multiple
maps at a time.

The GTK+ or SDL user interfaces are designed to work well with touch
screen displays. Points of Interest of various formats are displayed
on the map.

The current vehicle position is either read from gpsd or directly from
NMEA GPS sensors.

The routing engine not only calculates an optimal route to your
destination, but also generates directions and even speaks to you.

%package gtk-gui
Summary:	GTK GUI for Navit navigation system
Group:		Sciences/Other
Requires:	%{name} = %{version}-%{release}

%description gtk-gui
Navit is a car navigation system with routing engine. This package
contains the GTK GUI for Navit. You need to enable this GUI in
/etc/navit/navit.xml or ~/.navit/navit.xml to use it.

#%package graphics-qt
#Summary:	Qt graphics renderer for Navit navigation system
#Group:		Sciences/Other
#Requires:	%{name} = %{version}-%{release}

#%description graphics-qt
#Navit is a car navigation system with routing engine. This package
#contains the Qt-QPainter graphics renderer for Navit. You need to
#enable this renderer in /etc/navit/navit.xml or ~/.navit/navit.xml
#to use it.

%package graphics-sdl
Summary:	SDL graphics renderer for Navit navigation system
Group:		Sciences/Other
Requires:	%{name} = %{version}-%{release}

%description graphics-sdl
Navit is a car navigation system with routing engine. This package
contains the SDL graphics renderer for Navit. You need to enable
this renderer in /etc/navit/navit.xml or ~/.navit/navit.xml to use it.

%prep
%setup -q
%patch0 -p1
install -m 0644 %{SOURCE1} navit/maps

%build
%configure2_5x --enable-graphics-gd --disable-graphics-qt-qpainter
%make 

%install
%makeinstall_std

find  %{buildroot} -name '*.la' | xargs rm

# Don't need the README here
rm -f %{buildroot}%{_datadir}/%{name}/README

# Put the config file in /etc: upstream likes it in /usr to be
# relocatable, but that doesn't concern us. The code does check
# in /etc, so we don't need a patch - AdamW 2009/01
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/%{name}.xml %{buildroot}%{_sysconfdir}/%{name}/%{name}.xml

# Create a README.urpmi - AdamW 2009/01
cat > README.urpmi << EOF 
Navit comes with a sample map of Munich, but if you live (or drive!)
anywhere else, you'll need to add another map set. These are not
available as packages because they're rather large and the data changes
on a daily basis, so the packages would have to be refreshed very
often. For instructions on downloading or generating, and installing,
different types of map sets, see these Navit Wiki pages:

http://wiki.navit-project.org/index.php/OpenStreetMaps

http://wiki.navit-project.org/index.php/European_maps

http://wiki.navit-project.org/index.php/Garmin_maps

You should either add the appropriate configuration elements to
/etc/navit/navit.xml, or copy /etc/navit/navit.xml to
~/.navit/navit.xml and edit it there. You may have to remove or comment
out the section for the sample map set, also. Also note that the
default configuration assumes you have a GPS device active, and gpsd
running.
EOF

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS README README.urpmi
%{_bindir}/*
%{_libdir}/%{name}
%{_datadir}/dbus-1/services/org.navit_project.navit.service
%exclude %{_libdir}/%{name}/graphics/libgraphics_sdl*
%exclude %{_libdir}/%{name}/gui/libgui_gtk*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.xml

%files gtk-gui
%{_libdir}/%{name}/gui/libgui_gtk*

%files graphics-sdl
%{_libdir}/%{name}/graphics/libgraphics_sdl*


%changelog
* Mon Feb 16 2015 oden <oden> 0.2.0-9.mga5
+ Revision: 815157
- rebuilt for libgd-2.1.1

* Tue Nov 25 2014 cjw <cjw> 0.2.0-8.mga5
+ Revision: 798929
- rebuild against postgresql9.4

* Wed Oct 15 2014 umeabot <umeabot> 0.2.0-7.mga5
+ Revision: 748517
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 0.2.0-6.mga5
+ Revision: 682809
- Mageia 5 Mass Rebuild

  + tv <tv>
    - s/uggests:/Recommends:/

* Tue May 20 2014 luigiwalser <luigiwalser> 0.2.0-5.mga5
+ Revision: 624021
- fix build with current freetype2
- rebuild for gpsd

* Sat Oct 19 2013 umeabot <umeabot> 0.2.0-4.mga4
+ Revision: 523999
- Mageia 4 Mass Rebuild

* Tue May 28 2013 oden <oden> 0.2.0-3.mga4
+ Revision: 429291
- rebuilt against libgd.so.3

  + umeabot <umeabot>
    - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Jan 02 2012 fwang <fwang> 0.2.0-1.mga2
+ Revision: 189672
- new version 0.2.0
- rebuild for new gps

* Fri Sep 23 2011 fwang <fwang> 0.1.1-4.mga2
+ Revision: 146942
- only glu is enough

* Thu Sep 22 2011 fwang <fwang> 0.1.1-3.mga2
+ Revision: 146666
- bump rel
- drop .la files

* Wed Apr 06 2011 tv <tv> 0.1.1-2.mga1
+ Revision: 81040
- imported package navit