Add missing trailing dot in sentences
[viking/guyou.git] / mingw64-viking.spec.in
blob66e96431fa1b75b10f779414f5755979f78c3d47
1 # Public Domain CC0
2 %{?mingw_package_header}
3 %define _pkg_name viking
4 Name: mingw64-%{_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}-build
13 BuildArch: noarch
15 # 64bit version only in this file. See mingw-viking.spec for the 32bit version
17 # Programs to enable the cross build
18 BuildRequires: mingw64-filesystem
19 BuildRequires: mingw64-binutils
20 BuildRequires: mingw64-runtime
21 BuildRequires: mingw64-cross-binutils
22 BuildRequires: mingw64-cross-gcc
23 BuildRequires: mingw64-cross-pkg-config
24 BuildRequires: mingw64-gettext-tools
25 BuildRequires: mingw64-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: mingw64-gtk2-devel
33 # ATM gtk2-devel auto includes at least devel versions of glib2, gobject, zlib and more
35 # Mandatory libraries
36 BuildRequires: mingw64-libexpat-devel
37 BuildRequires: mingw64-libcurl-devel
38 # Optional libraries
39 BuildRequires: mingw64-libgexiv2-devel
40 BuildRequires: mingw64-libbz2-devel
41 BuildRequires: mingw64-file-devel
42 BuildRequires: mingw64-libmagic1
43 BuildRequires: mingw64-libbz2-1
44 BuildRequires: mingw64-sqlite-devel
45 BuildRequires: mingw64-libzip-devel
46 BuildRequires: mingw64-libnettle-devel
47 BuildRequires: mingw64-libgps-devel
48 BuildRequires: mingw64-liboauth-devel
50 # Libs for runtime (and thus also available for the NSIS installer to include the dependencies)
51 Requires: mingw64-gtk2
52 Requires: mingw64-libexpat1
53 Requires: mingw64-libcurl4
54 Requires: mingw64-libgexiv2
55 Requires: mingw64-libstdc++6
56 Requires: mingw64-libsqlite3-0
57 Requires: mingw64-libzip4
58 Requires: mingw64-libnettle
59 Requires: mingw64-liboauth
60 # Currently running makensis in seperate script - so you will need it then
61 # NB No 64bit version available
62 #Requires: mingw32-cross-nsis
64 %description
65 Viking is a free/open source program to manage GPS data.
66 You can import, plot and create tracks, routes and waypoints, show OSM and other maps, see real-time GPS position, control items, etc.
67 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.
68 It is written in mainly in C with some C++ and uses the GTK+2 toolkit.
70 %prep
71 %setup -q -n %{_pkg_name}-%{version}
73 %build
74 # Create Icon
75 pushd windows/installer/pixmaps
76 %{_mingw64_windres} viking_icon.rc -o viking_icon.o
77 popd
80 # Specifics for Windows build - i.e. no Mapnik yet
81 %{_mingw64_configure}\
82 --disable-mapnik \
83 --disable-geoclue \
84 --disable-scrollkeeper \
85 --enable-windows \
86 CFLAGS="-DWINDOWS -DWIN32 -mwindows"
87 # NB not sure if '-DWIN32' is necessary/applicable for a 64bit build...
89 %{_mingw64_make} %{?_smp_mflags}
91 %install
92 pushd src
93 %{_mingw64_strip} -g %{_pkg_name}.exe
94 popd
96 %make_install
98 %find_lang %{_pkg_name}
100 %clean
101 rm -rf %{buildroot}
103 %files -f %{_pkg_name}.lang
104 %defattr(-,root,root)
105 %doc AUTHORS ChangeLog COPYING NEWS README doc/
106 %{_mingw64_bindir}/*%{_pkg_name}.exe
107 %{_mingw64_datadir}/applications/%{_pkg_name}.desktop
108 %{_mingw64_datadir}/%{_pkg_name}
109 %{_mingw64_datadir}/icons/hicolor/*/apps/%{_pkg_name}.*
110 %exclude %{_mingw64_datadir}/icons/hicolor/icon-theme.cache
112 %changelog