summaryrefslogtreecommitdiff
path: root/contrib/sailfish/navit-sailfish.spec
blob: eedd2016e5d13557c5a1cea79ed4725583bca444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# $Id$
# Authority: dries
#%global navit_version_minor %(grep NAVIT_VERSION_MINOR ../../CMakeLists.txt |head -1| sed -e s/[^0-9]//g)
#%global navit_version_major %(grep NAVIT_VERSION_MAJOR ../../CMakeLists.txt |head -1| sed -e s/[^0-9]//g)
#%global navit_version_patch %(grep NAVIT_VERSION_PATCH ../../CMakeLists.txt |head -1| sed -e s/[^0-9]//g)
#%global navit_version %{navit_version_major}.%{navit_version_minor}.%{navit_version_patch}
#%global git_version %(git describe --tags | sed y/-/_/)

Name: harbour-navit
Summary: Open Source car navigation system
#Version: %{navit_version}_%{git_version}
Version: 0.5.1
Release: 5
License: GPL
Group: Applications/Productivity
URL: http://navit-project.org/

#git is vor version info while building
BuildRequires: git
#BuildRequires: gcc
BuildRequires: cmake
BuildRequires: glib2-devel
BuildRequires: gettext-devel
#BuildRequires: freetype-devel
BuildRequires: zlib-devel
BuildRequires: qt5-qtcore-devel
BuildRequires: qt5-qtdeclarative-devel
BuildRequires: qt5-qtdbus-devel
BuildRequires: qt5-qtpositioning-devel
BuildRequires: qt5-qtxml-devel
BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qtmultimedia
BuildRequires: qt5-qtmultimedia-devel
BuildRequires: qt5-qtmultimedia-gsttools
BuildRequires: qt5-qtmultimedia-plugin-mediaservice-gstaudiodecoder
BuildRequires: qt5-qtmultimedia-plugin-mediaservice-gstcamerabin
BuildRequires: qt5-qtmultimedia-plugin-mediaservice-gstmediacapture
BuildRequires: qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer
BuildRequires: qt5-qtmultimedia-plugin-resourcepolicy-resourceqt
BuildRequires: qt5-qtmultimedia-plugin-audio-alsa
BuildRequires: qt5-qtmultimedia-plugin-playlistformats-m3u
BuildRequires: qt5-qtmultimedia-plugin-audio-pulseaudio

#Requires: glib2
#Requires: gettext-libs
#Requires: freetype
#Requires: zlib
#Requires: qt5-qtcore
#Requires: qt5-qtdeclarative
#Requires: qt5-qtdbus
Requires: qt5-qtpositioning
#Requires: qt5-qtxml
Requires: qt5-qtsvg

%global navit_real_source %{navit_source}

%description
Navit is a car navigation system with routing engine.

It's 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 using speechd.

%prep
#just create empty directory here for build files. We'll use git sources directly.
rm -rf navit-build
mkdir navit-build
#nothing to delete and nothing to extract. Just setup for our empty directory created before.
%setup -D -T -n navit-build

%build
%define debug_package %{nil}
%{__rm} -rf %{buildroot}
#cmake git files directly 
cmake  -DCMAKE_INSTALL_PREFIX:PATH=/usr \
       -DPACKAGE:STRING=harbour-navit \
       -DNAVIT_BINARY:STRING=harbour-navit \
       -DSHARE_DIR:PATH=share/harbour-navit \
       -DLOCALE_DIR:PATH=share/harbour-navit/locale \
       -DIMAGE_DIR:PATH=share/harbour-navit/icons \
       -DLIB_DIR:PATH=share/harbour-navit/lib \
       -DBUILD_MAPTOOL:BOOL=FALSE \
       -Dfont/freetype:BOOL=FALSE \
       -Dbinding/dbus:BOOL=FALSE \
       -Dgraphics/gtk_drawing_area:BOOL=FALSE \
       -Dgraphics/null:BOOL=FALSE \
       -Dgraphics/opengl:BOOL=FALSE \
       -Dgraphics/sdl:BOOL=FALSE \
       -Dspeech/dbus:BOOL=FALSE \
       -Dvehicle/gpsd:BOOL=FALSE \
       -Dvehicle/gpsd_dbus:BOOL=FALSE \
       -DUSE_PLUGINS=n \
       -DUSE_QWIDGET:BOOL=FALSE \
       -DXSLTS:STRING="sailfish_disable;sailfish_qt5;sailfish_osd;sailfish_cursor;sailfish_mapset;sailfish_svg;sailfish_gui" \
         %{navit_real_source}
%{__make}

#       -DMAN_DIR:PATH=share/harbour-navit/man1 

%install
%make_install
#copy in sailfish config
#cp %{navit_real_source}/contrib/sailfish/navit.xml %{buildroot}/usr/share/harbour-navit/navit.xml

%files
%defattr(644, root, root, 755)
%{_datadir}/harbour-navit/navit.xml
%{_datadir}/harbour-navit/icons/
%{_datadir}/harbour-navit/maps/osm_bbox_11.3,47.9,11.7,48.2.bin
%{_datadir}/harbour-navit/espeak-data/
%{_datadir}/applications/harbour-navit.desktop
%{_datadir}/icons/hicolor/256x256/apps/harbour-navit.png
%{_datadir}/icons/hicolor/128x128/apps/harbour-navit.png
%{_datadir}/icons/hicolor/108x108/apps/harbour-navit.png
%{_datadir}/icons/hicolor/86x86/apps/harbour-navit.png
%{_datadir}/icons/hicolor/22x22/apps/harbour-navit.png
%{_datadir}/harbour-navit/locale/
%attr(755, root, root) %{_bindir}/harbour-navit
%doc %{_mandir}/man1/harbour-navit.1.gz
%doc %{_mandir}/man1/maptool.1.gz


%changelog
*Tue Oct 17 2017 metalstrolch 0.5.1-5
- Update upstream

*Tue Oct 17 2017 metalstrolch 0.5.1-4
- Fix medium GUI icon size to cope with changed icon set on upstream
- Update upstream

*Wed Jun 05 2017 metalstrolch 0.5.1-3
- Enable rotating.
- Create default config from xlst
- Switch to QT font rendering.
- Remove freetype dep.

*Wed May 03 2017 metalstrolch 0.5.1-2
- Use qt5_espeak

*Mon Apr 10 2017 metalstrolch 0.5.1-1
- Almost harbour valid

*Mon Dec 14 2015 metalstrolch 0.5.1-0 
- Initial sailfish release
- Initial package.