Blob Blame History Raw
Name:           viking
Version:        1.6.2
Release:        1%{?dist}
Summary:        GPS data editor and analyzer

License:        GPLv2+
URL:            http://viking.sourceforge.net/
Source0:        http://downloads.sourceforge.net/viking/viking-%{version}.tar.bz2

BuildRequires:  intltool
BuildRequires:  expat-devel
BuildRequires:  gdk-pixbuf2-devel
BuildRequires:  gpsd-devel
BuildRequires:  gtk2-devel  
BuildRequires:  libcurl-devel
BuildRequires:  gtk-doc
BuildRequires:  gnome-doc-utils
BuildRequires:  libexif-devel
BuildRequires:  bzip2-devel
BuildRequires:  file-devel
BuildRequires:  libgexiv2-devel
BuildRequires:  sqlite-devel

BuildRequires:  desktop-file-utils
BuildRequires:  gettext

Requires:       hicolor-icon-theme
Requires:       gpsbabel
Requires:       expect

%description
Viking is a free/open source program to manage GPS data. You can import
and plot tracks and waypoints, show OpenStreetMap and/or Terraserver maps
under it, download geocaches for an area on the map, make new tracks and
waypoints, see real-time GPS position, etc. 

%prep
%setup -q
# Convert to utf-8
for file in ChangeLog NEWS TODO; do
    mv $file timestamp
    iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp
    touch -r timestamp $file
done

%build
%configure \
    --disable-scrollkeeper \
    --disable-mapnik
    # Failing for 1.6.1 
    #--enable-gtk-doc
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot} INSTALL="install -p"
find %{buildroot} -name '*.a' -exec rm -f {} ';'
desktop-file-install                                        \
    --add-category="GTK;Network;"                           \
    --delete-original                                       \
    --dir=%{buildroot}%{_datadir}/applications              \
    %{buildroot}/%{_datadir}/applications/%{name}.desktop
%find_lang %{name}

%check
make test

%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog* NEWS README TODO
%{_bindir}/%{name}*
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png

%changelog
* Mon Jan 04 2016 Fabian Affolter <mail@fabian-affolter.ch> - 1.6.2-1
- Update to new upstream version 1.6.2

* Wed Nov 25 2015 Fabian Affolter <mail@fabian-affolter.ch> - 1.6.1-1
- Fix for lock (rhbz#1258559, rhbz#1258095, rhbz#1229082)
- Update to new upstream version 1.6.1

* Sat Aug 15 2015 Till Maas <opensource@till.name> - 1.6-4
- Fix FTBFS (#1240039)
- Use %%license
- Remove unused mapnik-devel BR

* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Thu May 07 2015 Fabian Affolter <mail@fabian-affolter.ch> - 1.6-2
- Add patch to fix issue with new gpsd (rhbz#1206642)

* Wed May 06 2015 Fabian Affolter <mail@fabian-affolter.ch> - 1.6-1
- Update to new upstream version 1.6

* Sat Mar 07 2015 Fabian Affolter <mail@fabian-affolter.ch> - 1.5.1-4
- Rebuild (libgps)

* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri Mar 28 2014 Fabian Affolter <mail@fabian-affolter.ch> - 1.5.1-1
- Update to new upstream version 1.5.1

* Thu Nov 28 2013 Fabian Affolter <mail@fabian-affolter.ch> - 1.5-2
- Rebuild for libgps

* Fri Oct 18 2013 Fabian Affolter <mail@fabian-affolter.ch> - 1.5-1
- Update to new upstream version 1.5

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Mon Apr 29 2013 Fabian Affolter <mail@fabian-affolter.ch> - 1.4.1-1
- Update to new upstream version 1.4.1

* Tue Feb 19 2013 Fabian Affolter <mail@fabian-affolter.ch> - 1.4-1
- Update to new upstream version 1.4

* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Oct 24 2012 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.2.1-1
- Update to new upstream version 1.3.2.1

* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Sun Jul 15 2012 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.1-1
- Update to new upstream version 1.3.1

* Mon Apr 30 2012 Fabian Affolter <mail@fabian-affolter.ch> - 1.3-2
- Update requirements

* Mon Apr 30 2012 Fabian Affolter <mail@fabian-affolter.ch> - 1.3-1
- Update to new upstream version 1.3

* Sat Feb 11 2012 Fabian Affolter <mail@fabian-affolter.ch> - 1.2.2-3
- Orphan BR

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Nov 08 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.2.2-1
- Curl patch removed (is now upstream)
- Update to new upstream version 1.2.2

* Tue Aug 23 2011 Tom Callaway <spot@fedoraproject.org> - 1.2.1-1
- Update to 1.2.1
- Enable gpsd 2.96+ support
- Fix compile with curl 7.21.7 (curl/types.h is gone)

* Fri Jun 03 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.2-1
- Update to new upstream version 1.2

* Sun Mar 06 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.1-1
- Update to new upstream version 1.1

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Jan 28 2011 Fabian Affolter <mail@fabian-affolter.ch> - 1.0.1-1
- Update description to fix #673009
- Update to new upstream version 1.0.1

* Sat Nov 20 2010 Fabian Affolter <mail@fabian-affolter.ch> - 1.0-2
- Remove patch, is now upstream

* Sat Nov 20 2010 Fabian Affolter <mail@fabian-affolter.ch> - 1.0-1
- Add test suite
- Update to new upstream version 1.0

* Wed Nov 03 2010 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.96-1
- Update to new upstream version 0.9.96

* Wed Sep 29 2010 jkeating - 0.9.95-3
- Rebuilt for gcc bug 634757

* Sat Sep 18 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 0.9.95-2
- Disable scrollkeeper

* Tue Sep 07 2010 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.95-1
- Remove old patch0
- Add new BR
- Update to new upstream version 0.9.95

* Wed Jul 14 2010 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.94-1
- Update file section
- Update DSOLinking patch
- Update to new upstream version 0.9.94

* Thu May 27 2010 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.93-1
- Update to new upstream version 0.9.93

* Sun May 09 2010 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.91-4
- Rebuilt for new gpsd release

* Tue Apr 27 2010 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.91-3
- New patch to fix DSOLinking (#565080)

* Mon Mar 22 2010 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.91-2
- Added patch to fix DSOLinking (#565080)

* Sat Feb 27 2010 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.91-1
- Update to new upstream version 0.9.91

* Sun Sep 13 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.9-1
- Update to new upstream version 0.9.9

* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Tue Mar 31 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.9.8-2
- use new gpsd header (gpsdclient.h)

* Sat Mar 28 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.8-1
- Update to new upstream version, 0.9.8

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Sat Jan 24 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.7-2
- Add missing hicolor-icon-theme

* Sat Jan 24 2009 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.7-1
- Initial package for Fedora