Package viking: Specfile

Name:		viking
Version:	1.7.0
Release:	alt3

Summary:	GPS data editor and analyzer

Group:		Sciences/Geosciences
License:	GPL-2.0-or-later
URL:		http://sourceforge.net/projects/viking/
Source0:	%{name}-%{version}.tar

BuildRequires: libcurl-devel libexpat-devel libgps-devel perl-XML-Parser intltool
BuildRequires: gnome-doc-utils libgtk+2-devel gtk-doc libgexiv2-devel libmagic-devel
BuildRequires: zlib-devel bzlib-devel libzip-devel
BuildRequires: libsqlite3-devel
BuildRequires: libgeoclue2-devel
BuildRequires: liboauth-devel
BuildRequires: libnettle-devel

Packager: Anton V. Boyarshinov <boyarsh@altlinux.ru>

%description
Viking is a free/open source program to manage GPS data. You can import and
plot tracks and waypoints, show Terraserver maps under it, add coordinate
lines, make new tracks and waypoints, hide different things, etc. It is written
in C with the GTK+ 2.

%prep
%setup -q

patch -p1 < gps_api_9_support.patch

%build
ln -s /usr/share/gnome-doc-utils/gnome-doc-utils.make
%autoreconf
%add_optflags -I/usr/include/libzip
%configure --disable-mapnik --enable-geocaches
%make

%install
%makeinstall
find %buildroot/usr/share/gnome/help/viking/ -type l -delete

#warning: Installed (but unpackaged) file(s) found:
rm -f %buildroot/usr/share/icons/hicolor/icon-theme.cache

#hack for fix https://bugzilla.altlinux.org/37674
pushd po
make install DESTDIR=%buildroot
popd

%find_lang %name

%check
make check

%files -f %name.lang
%doc AUTHORS ChangeLog COPYING NEWS README TODO doc/
%_bindir/viking
%_man1dir/*
%_datadir/applications/viking.desktop
%_iconsdir/hicolor/48x48/apps/viking.png
%_datadir/gnome/help/viking
%_datadir/omf/viking
%_datadir/viking

%changelog
* Sat Jan 18 2020 Sergey Y. Afonin <asy@altlinux.org> 1.7.0-alt3
- gps api 9 support (gpsd 3.20, patch from Debian)
- built with libzip-devel
- enabled geocaches

* Tue Dec 24 2019 Sergey Y. Afonin <asy@altlinux.org> 1.7.0-alt2
- packed localization (ALT #37674)
- updated License to SPDX syntax, changed to GPL-2.0-or-later
- added %%check section

* Thu Oct 17 2019 Anton Midyukov <antohami@altlinux.org> 1.7.0-alt1
- 1.7.0

* Mon Jun 01 2015 Anton V. Boyarshinov <boyarsh@altlinux.ru> 1.6.0-alt1
- 1.6.0

* Thu Jul 21 2011 Anton V. Boyarshinov <boyarsh@altlinux.ru> 1.2.1-alt2
- build fixed

* Tue Jun 21 2011 Anton V. Boyarshinov <boyarsh@altlinux.ru> 1.2.1-alt1
- new version

* Wed Mar 23 2011 Anton V. Boyarshinov <boyarsh@altlinux.ru> 1.1-alt1
- new version
- build fixed

* Wed Jun 09 2010 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.9.93-alt1
- new version

* Mon Jun 01 2009 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.9.8-alt1
- new version
- unworking Google maps removed

* Thu Oct 02 2008 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.9.6-alt1
- new version

* Fri Apr 11 2008 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.9.4-alt1
- first build for Sisyphus

* Thu Feb 21 2008 Michael A. Peters <mpeters@mac.com> - 0.9.3.20080220-1
- change License field from GPL to GPLv2
- BR gpsd-devel
- BR gettext perl(XML::Parser) - needed for intltool
- use find_land macro to package mo files

* Sun Sep  4 2007 Guilhem Bonnefille <guilhem.bonnefille> - 0.9.2-1
- Update to upstream version 0.9.2.

* Sun Sep  2 2007 Guilhem Bonnefille <guilhem.bonnefille> - 0.9.1-1
- Update to upstream version 0.9.1.

* Fri Jul 13 2007 Guilhem Bonnefille <guilhem.bonnefille> - 0.9-1
- Update to upstream version 0.9.

* Thu May 18 2007 Quy Tonthat <qtonthat@gmail.com>
- Added curl-devel to BuildRequires list.

* Thu May 15 2007 Guilhem Bonnefille <guilhem.bonnefille> - 0.1.3-1
- Update to upstream version 0.1.3.

* Wed Feb 14 2007 Michael A. Peters <mpeters@mac.com> - 0.1.2-1
- Initial Fedora style spec file.