Add missing trailing dot in sentences
[viking/guyou.git] / mingw-viking.spec.in
blob9a07d1229afad6285eef1fc84db91c235f339d90
1 # Public Domain CC0
2 %{?mingw_package_header}
3 %define _pkg_name viking
4 Name: mingw32-%{_pkg_name}
5 Version: @VERSION@
6 Release: 1
7 Summary: GPS data editor and analyzer
8 Group: Applications/Productivity
9 License: GPLv2
10 URL: http://sourceforge.net/projects/viking/
11 Source0: %{_pkg_name}-%{version}.tar.gz
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13 BuildArch: noarch
15 # 32bit version only in this file. See mingw64-viking.spec for the 64bit version
17 # Programs to enable the cross build
18 BuildRequires: mingw32-filesystem
19 BuildRequires: mingw32-binutils
20 BuildRequires: mingw32-runtime
21 BuildRequires: mingw32-cross-binutils
22 BuildRequires: mingw32-cross-gcc
23 BuildRequires: mingw32-cross-pkg-config
24 BuildRequires: mingw32-gettext-tools
25 BuildRequires: mingw32-gnome-doc-utils-devel
26 BuildRequires: intltool
27 BuildRequires: gdk-pixbuf-devel
28 # ^For gdk-pixbuf-csource
30 # Code
31 # Not worried about versions ATM
32 BuildRequires: mingw32-gtk2-devel
33 # ATM gtk2-devel auto includes at least devel versions of glib2, gobject, zlib and more
35 # Mandatory libraries
36 BuildRequires: mingw32-libexpat-devel
37 BuildRequires: mingw32-libcurl-devel
38 # Optional libraries
39 BuildRequires: mingw32-libgexiv2-devel
40 BuildRequires: mingw32-libbz2-devel
41 BuildRequires: mingw32-file-devel
42 BuildRequires: mingw32-libmagic1
43 BuildRequires: mingw32-libbz2-1
44 BuildRequires: mingw32-sqlite-devel
45 BuildRequires: mingw32-libzip-devel
46 BuildRequires: mingw32-libnettle-devel
47 <<<<<<< HEAD
48 BuildRequires: mingw32-libgps-devel
49 =======
50 BuildRequires: mingw32-liboauth-devel
51 >>>>>>> OAuth 1.0 support for OpenStreetMap usage
53 # Libs for runtime (and thus also available for the NSIS installer to include the dependencies)
54 Requires: mingw32-gtk2
55 Requires: mingw32-libexpat1
56 Requires: mingw32-libcurl4
57 Requires: mingw32-libgexiv2
58 Requires: mingw32-libstdc++6
59 Requires: mingw32-libsqlite3-0
60 Requires: mingw32-libzip4
61 Requires: mingw32-libnettle
62 Requires: mingw32-libgps
63 Requires: mingw32-liboauth
64 # Currently running makensis in seperate script - so you will need it then
65 #Requires: mingw32-cross-nsis
67 %description
68 Viking is a free/open source program to manage GPS data.
69 You can import, plot and create tracks, routes and waypoints, show OSM and other maps, see real-time GPS position, control items, etc.
70 Other 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.
71 It is written in mainly in C with some C++ and uses the GTK+2 toolkit.
73 %prep
74 %setup -q -n %{_pkg_name}-%{version}
76 %build
77 # Create Icon
78 pushd windows/installer/pixmaps
79 %{_mingw32_windres} viking_icon.rc -o viking_icon.o
80 popd
83 # Specifics for Windows build - i.e. no Mapnik yet
84 %{_mingw32_configure}\
85 --disable-realtime-gps-tracking \
86 --disable-mapnik \
87 --disable-geoclue \
88 --disable-scrollkeeper \
89 --enable-windows \
90 CFLAGS="-DWINDOWS -DWIN32 -mwindows"
92 %{_mingw32_make} %{?_smp_mflags}
94 %install
95 pushd src
96 %{_mingw32_strip} -g %{_pkg_name}.exe
97 popd
99 %make_install
101 %find_lang %{_pkg_name}
103 %clean
104 #rm -rf %{buildroot}
106 %files -f %{_pkg_name}.lang
107 %defattr(-,root,root)
108 %doc AUTHORS ChangeLog COPYING NEWS README doc/
109 %{_mingw32_bindir}/*%{_pkg_name}.exe
110 %{_mingw32_datadir}/applications/%{_pkg_name}.desktop
111 %{_mingw32_datadir}/%{_pkg_name}
112 %{_mingw32_datadir}/icons/hicolor/*/apps/%{_pkg_name}.*
113 %exclude %{_mingw32_datadir}/icons/hicolor/icon-theme.cache
114 #%{_mingw32_mandir}/man1/*
116 %changelog