]> git.street.me.uk Git - andy/viking.git/blame - mingw-viking.spec.in
Info message to remind user of the version in use.
[andy/viking.git] / mingw-viking.spec.in
CommitLineData
0edf62b8
RN
1# Public Domain CC0
2%{?mingw_package_header}
3%define _pkg_name viking
4Name: mingw32-%{_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}-%{release}-root-%(%{__id_u} -n)
13BuildArch: noarch
14
b0678771 15# 32bit version only in this file. See mingw64-viking.spec for the 64bit version
0edf62b8
RN
16
17# Programs to enable the cross build
18BuildRequires: mingw32-filesystem
19BuildRequires: mingw32-binutils
20BuildRequires: mingw32-runtime
21BuildRequires: mingw32-cross-binutils
22BuildRequires: mingw32-cross-gcc
23BuildRequires: mingw32-cross-pkg-config
24BuildRequires: mingw32-gettext-tools
25BuildRequires: mingw32-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: mingw32-gtk2-devel
33# ATM gtk2-devel auto includes at least devel versions of glib2, gobject, zlib and more
34
35# Mandatory libraries
36BuildRequires: mingw32-libexpat-devel
37BuildRequires: mingw32-libcurl-devel
38# Optional libraries
7716d5e1 39BuildRequires: mingw32-libgexiv2-devel
0edf62b8
RN
40BuildRequires: mingw32-libbz2-devel
41BuildRequires: mingw32-file-devel
42BuildRequires: mingw32-libmagic1
43BuildRequires: mingw32-libbz2-1
44BuildRequires: mingw32-sqlite-devel
45BuildRequires: mingw32-libzip-devel
bd27baa4 46BuildRequires: mingw32-libnettle-devel
0edf62b8
RN
47
48# Libs for runtime (and thus also available for the NSIS installer to include the dependencies)
49Requires: mingw32-gtk2
50Requires: mingw32-libexpat1
51Requires: mingw32-libcurl4
7716d5e1
RN
52Requires: mingw32-libgexiv2
53Requires: mingw32-libstdc++6
0edf62b8
RN
54Requires: mingw32-libsqlite3-0
55Requires: mingw32-libzip4
bd27baa4 56Requires: mingw32-libnettle
0edf62b8
RN
57# Currently running makensis in seperate script - so you will need it then
58#Requires: mingw32-cross-nsis
59
0edf62b8
RN
60%description
61Viking is a free/open source program to manage GPS data.
62You can import, plot and create tracks, routes and waypoints, show OSM and other maps, see real-time GPS position, control items, etc.
63Other 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.
64It is written in mainly in C with some C++ and uses the GTK+2 toolkit.
65
0edf62b8
RN
66%prep
67%setup -q -n %{_pkg_name}-%{version}
68
69%build
70# Create Icon
71pushd win32/installer/pixmaps
72%{_mingw32_windres} viking_icon.rc -o viking_icon.o
73popd
74
75#
7716d5e1 76# Specifics for Windows build - i.e. no Mapnik & no GPSD
0edf62b8 77%{_mingw32_configure}\
0edf62b8
RN
78 --disable-realtime-gps-tracking \
79 --disable-mapnik \
80 --disable-scrollkeeper \
81 --enable-windows \
82 CFLAGS="-DWINDOWS -DWIN32 -mwindows"
83
84%{_mingw32_make} %{?_smp_mflags}
85
86%install
87pushd src
88%{_mingw32_strip} -g %{_pkg_name}.exe
89popd
90
91%make_install
92
93%find_lang %{_pkg_name}
94
95%clean
96#rm -rf %{buildroot}
97
98%files -f %{_pkg_name}.lang
99%defattr(-,root,root)
100%doc AUTHORS ChangeLog COPYING NEWS README doc/
101%{_mingw32_bindir}/*%{_pkg_name}.exe
102%{_mingw32_datadir}/applications/%{_pkg_name}.desktop
103%{_mingw32_datadir}/%{_pkg_name}
104%{_mingw32_datadir}/icons/hicolor/*/apps/%{_pkg_name}.*
105%exclude %{_mingw32_datadir}/icons/hicolor/icon-theme.cache
106#%{_mingw32_mandir}/man1/*
107
108%changelog