]> git.street.me.uk Git - andy/viking.git/blame - mingw64-viking.spec.in
Some spelling fixes in a comment
[andy/viking.git] / mingw64-viking.spec.in
CommitLineData
b0678771
RN
1# Public Domain CC0
2%{?mingw_package_header}
3%define _pkg_name viking
4Name: mingw64-%{_pkg_name}
5Version: @VERSION@
6Release: 1
7Summary: GPS data editor and analyzer
8Group: Applications/Productivity
9License: GPLv2
10URL: http://sourceforge.net/projects/viking/
11Source0: %{_pkg_name}-%{version}.tar.gz
12BuildRoot: %{_tmppath}/%{name}-%{version}-build
13BuildArch: noarch
14
15# 64bit version only in this file. See mingw-viking.spec for the 32bit version
16
17# Programs to enable the cross build
18BuildRequires: mingw64-filesystem
19BuildRequires: mingw64-binutils
20BuildRequires: mingw64-runtime
21BuildRequires: mingw64-cross-binutils
22BuildRequires: mingw64-cross-gcc
23BuildRequires: mingw64-cross-pkg-config
24BuildRequires: mingw64-gettext-tools
25BuildRequires: mingw64-gnome-doc-utils-devel
26BuildRequires: intltool
27BuildRequires: gdk-pixbuf-devel
28# ^For gdk-pixbuf-csource
29
30# Code
31# Not worried about versions ATM
32BuildRequires: mingw64-gtk2-devel
33# ATM gtk2-devel auto includes at least devel versions of glib2, gobject, zlib and more
34
35# Mandatory libraries
36BuildRequires: mingw64-libexpat-devel
37BuildRequires: mingw64-libcurl-devel
38# Optional libraries
39BuildRequires: mingw64-libgexiv2-devel
40BuildRequires: mingw64-libbz2-devel
41BuildRequires: mingw64-file-devel
42BuildRequires: mingw64-libmagic1
43BuildRequires: mingw64-libbz2-1
44BuildRequires: mingw64-sqlite-devel
45BuildRequires: mingw64-libzip-devel
bd27baa4 46BuildRequires: mingw64-libnettle-devel
b0678771
RN
47
48# Libs for runtime (and thus also available for the NSIS installer to include the dependencies)
49Requires: mingw64-gtk2
50Requires: mingw64-libexpat1
51Requires: mingw64-libcurl4
52Requires: mingw64-libgexiv2
53Requires: mingw64-libstdc++6
54Requires: mingw64-libsqlite3-0
55Requires: mingw64-libzip4
bd27baa4 56Requires: mingw64-libnettle
b0678771
RN
57# Currently running makensis in seperate script - so you will need it then
58# NB No 64bit version available
59#Requires: mingw32-cross-nsis
60
61%description
62Viking is a free/open source program to manage GPS data.
63You can import, plot and create tracks, routes and waypoints, show OSM and other maps, see real-time GPS position, control items, etc.
64Other advanced capabilities include Geotagging Images, generate Maps (using Mapnik), Upload and Download tracks from OSM, Routing from OSRM or Google, Name Searches from OSM Nominatim or Google and more.
65It is written in mainly in C with some C++ and uses the GTK+2 toolkit.
66
67%prep
68%setup -q -n %{_pkg_name}-%{version}
69
70%build
71# Create Icon
72pushd win32/installer/pixmaps
73%{_mingw64_windres} viking_icon.rc -o viking_icon.o
74popd
75
76#
77# Specifics for Windows build - i.e. no Mapnik & no GPSD
78%{_mingw64_configure}\
79 --disable-realtime-gps-tracking \
80 --disable-mapnik \
81 --disable-scrollkeeper \
82 --enable-windows \
83 CFLAGS="-DWINDOWS -DWIN32 -mwindows"
84# NB not sure if '-DWIN32' is necessary/applicable for a 64bit build...
85
86%{_mingw64_make} %{?_smp_mflags}
87
88%install
89pushd src
90%{_mingw64_strip} -g %{_pkg_name}.exe
91popd
92
93%make_install
94
95%find_lang %{_pkg_name}
96
97%clean
98rm -rf %{buildroot}
99
100%files -f %{_pkg_name}.lang
101%defattr(-,root,root)
102%doc AUTHORS ChangeLog COPYING NEWS README doc/
103%{_mingw64_bindir}/*%{_pkg_name}.exe
104%{_mingw64_datadir}/applications/%{_pkg_name}.desktop
105%{_mingw64_datadir}/%{_pkg_name}
106%{_mingw64_datadir}/icons/hicolor/*/apps/%{_pkg_name}.*
107%exclude %{_mingw64_datadir}/icons/hicolor/icon-theme.cache
108
109%changelog