File QLandkarte.spec of Package QLandkarte
#
# spec file for package QLandkarte (Version 0.7.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: QLandkarte
Summary: QLandkarte - Garmin GPS Map, Route, Waypoint and Tracking Tool
Version: 0.7.3
Release: 1
Group: Productivity/Other
License: GPL v2 or later
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://qlandkarte.sourceforge.net
Source: QLandkarte-%{version}.tar.bz2
Patch0: autoconf_compileflags.patch
Patch1: adapt_desktopfile.patch
BuildRequires: libproj-devel libqt4-devel libusb-devel update-desktop-files
BuildRequires: gcc-c++
ExclusiveArch: %ix86 x86_64
%description
Garmin's MapSource software is hardly the only reason for me to boot
into Windows and it does not look like Garmin ever wants to address
Linux users by writing a portable piece of software. So I started to
help myself. I found several tools like GPSBabel or sendmap to handle
data for my GPS receiver but no tool to visualize and manage this data
in a decent way. On my quest I found a specification of the used IMG
format for maps at Sourceforge. After some reading and toying around I
considered this specification good enough to start a GUI project to
visualize such files. QLandkarte is the result of this effort.
Including additional patches by fseidel@suse.de which are upstream and
tested but not yet released elsewhere.
Authors:
--------
Oliver Eichler <oliver.eichler@gmx.de>,
%prep
%setup
%patch0 -p1
%patch1 -p1
%build
%{?suse_update_config:%{suse_update_config -f}}
autoreconf -fi
#aclocal
#autoheader
#autoreconf
echo "DEFINES += QL_LIBDIR=%{_libdir}/qlandkarte" > common
export CFLAGS="$RPM_OPT_FLAGS"
export CPPFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
export LDFLAGS="$LDFLAGS $RPM_OPT_FLAGS"
%{configure} --prefix=%{_prefix} --libdir=%{_libdir}
%{__make} #CXXFLAGS="-pipe -g -D_REENTRANT -Wall -W -DQL_LIBDIR=/usr/lib/qlandkarte -DQT_NO_DEBUG_OUTPUToff -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -fPIC $RPM_OPT_FLAGS"
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_libdir}/qlandkarte
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/share/pixmaps
#cp bin/QLandkarte $RPM_BUILD_ROOT%{_bindir}/
#cp -av bin/plugins/* $RPM_BUILD_ROOT%{_libdir}/qlandkarte/
cp -v src/icons/iconScreenshot16x16.png $RPM_BUILD_ROOT/%{_prefix}/share/pixmaps/qlandkarte.png
export DESTDIR=$RPM_BUILD_ROOT
export INSTALL_ROOT=$DESTDIR
%{makeinstall}
rm -frv $DESTDIR/usr/share/menu
%suse_update_desktop_file -i qlandkarte Utility Archiving
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/qlandkarte
%{_libdir}/qlandkarte
%doc %{_prefix}/share/man/qlandkarte.1.gz
%{_prefix}/share/applications/qlandkarte.desktop
%{_prefix}/share/pixmaps/qlandkarte.png
%doc copying INSTALL
%changelog
* Wed Sep 10 2008 fseidel@suse.de
- Version update to 0.7.3 with many fixes for map computing
* Sun Apr 06 2008 fseidel@suse.de
- update of 0.7.2 prerelease due to it fixing some very important
bugs (e.g. on accessing serial devices)
* Thu Feb 21 2008 fseidel@suse.de
- fix new upstream .desktop file
* Wed Feb 20 2008 fseidel@suse.de
- update to new version 0.7.1 with countless bugfixes and
optimizations
* Mon Jan 28 2008 fseidel@suse.de
- fix build failure: EtrexLegendC, GPSMap60CSx, LegendCx and
whatGarmin driver missed libusb binding
* Tue Jan 15 2008 fseidel@suse.de
- remove unused dll-files from tarfile (bug #353851)
* Sun Jan 13 2008 fseidel@suse.de
- Fix build failures and set exclusive for x86 and x86_64 for now
* Fri Jan 11 2008 fseidel@suse.de
- initial packet (based on Application:Geo:qlandkarte of OBS)