diff --git a/0001-No-solicitation.patch b/0001-No-solicitation.patch new file mode 100644 index 0000000..255616f --- /dev/null +++ b/0001-No-solicitation.patch @@ -0,0 +1,28 @@ +From 874056b5bb1e7510a13f6c640f01d240a0ff35ce Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= +Date: Tue, 15 Apr 2014 05:21:09 +0200 +Subject: [PATCH 2/6] No solicitation + + No automatic phone home by default (RHBZ 668865). +--- + gui/babeldata.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/gui/babeldata.h b/gui/babeldata.h +index 198f8889..4d73a4e4 100644 +--- a/gui/babeldata.h ++++ b/gui/babeldata.h +@@ -64,8 +64,8 @@ public: + upgradeErrors_(0), + upgradeOffers_(0), + runCount_(0), +- startupVersionCheck_(true), +- reportStatistics_(true), ++ startupVersionCheck_(false), ++ reportStatistics_(false), + allowBetaUpgrades_(false), + ignoreVersionMismatch_(false), + disableDonateDialog_(false), +-- +2.26.2 + diff --git a/gpsbabel-1.9.0.tar.gz b/gpsbabel-1.9.0.tar.gz new file mode 100644 index 0000000..1e1cf7a Binary files /dev/null and b/gpsbabel-1.9.0.tar.gz differ diff --git a/gpsbabel.png b/gpsbabel.png new file mode 100644 index 0000000..9a25567 Binary files /dev/null and b/gpsbabel.png differ diff --git a/gpsbabel.spec b/gpsbabel.spec new file mode 100644 index 0000000..6c526fa --- /dev/null +++ b/gpsbabel.spec @@ -0,0 +1,104 @@ +Name: gpsbabel +Version: 1.9.0 +Release: 1 +Summary: A tool to convert between various formats used by GPS devices + +License: GPL-2.0-or-later +URL: http://www.gpsbabel.org +# Upstream's website hides tarball behind some ugly php script +# Original repo is at https://github.com/gpsbabel/gpsbabel +Source0: gpsbabel-%{version}.tar.gz +Source1: %{name}.png + +# No automatic phone home by default (RHBZ 668865) +Patch1: 0001-No-solicitation.patch + +BuildRequires: libusb1-devel +BuildRequires: zlib-devel +BuildRequires: desktop-file-utils +BuildRequires: shapelib-devel +BuildRequires: cmake + +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtserialport-devel +%ifarch %{qt5_qtwebengine_arches} +# HACK: Don't build GUI on archs not supported by qtwebengine +%global build_gui 1 +BuildRequires: qt5-qtwebchannel-devel +BuildRequires: qt5-qtwebengine-devel +BuildRequires: qt5-qttranslations +%endif + +%description +Converts GPS waypoint, route, and track data from one format type +to another. + +%if 0%{?build_gui} +%package gui +Summary: Qt GUI interface for GPSBabel +License: GPL-2.0-or-later +Requires: %{name} = %{version}-%{release} +# pull-in qt5 standard translations. +# Otherwise items such as "Close", "Open" won't be translated +Requires: qt5-qttranslations + +%description gui +Qt GUI interface for GPSBabel +%endif + +%prep +%setup -q -n %{name}-%{version} + +%patch -P 1 -p1 + +%build +%cmake \ + -DGPSBABEL_WITH_LIBUSB=pkgconfig \ + -DGPSBABEL_WITH_ZLIB=pkgconfig \ + -DGPSBABEL_WITH_SHAPELIB=pkgconfig \ + %{?!build_gui:-DGPSBABEL_MAPPREVIEW=OFF} \ + -S "%{_vpath_srcdir}" \ + -B "%{_vpath_builddir}" + +%__cmake --build "%{_vpath_builddir}" %{?_smp_mflags} --verbose + + +%install +DESTDIR="%{buildroot}" %__cmake --install "%{_vpath_builddir}" + +install -m 0755 -d %{buildroot}%{_bindir}/ +install -m 0755 -p %{_vpath_builddir}/gpsbabel %{buildroot}%{_bindir}/ + +%if 0%{?build_gui} +install -m 0755 -d %{buildroot}%{_bindir}/ +install -m 0755 -p %{_vpath_builddir}/gui/GPSBabelFE/gpsbabelfe %{buildroot}%{_bindir}/ + +install -m 0755 -d %{buildroot}%{_datadir}/gpsbabel +install -m 0644 -p gui/gmapbase.html %{buildroot}%{_datadir}/gpsbabel + +desktop-file-install \ + --dir %{buildroot}/%{_datadir}/applications \ + gui/gpsbabel.desktop + +install -m 0755 -d %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/ +install -m 0644 -p %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/ +%endif + +%files +%doc README* AUTHORS +%license COPYING +%{_bindir}/gpsbabel + +%if 0%{?build_gui} +%files gui +%doc gui/{AUTHORS,README*,TODO} +%license gui/COPYING* +%{_bindir}/gpsbabelfe +%{_datadir}/gpsbabel +%{_datadir}/applications/* +%{_datadir}/icons/hicolor/256x256/apps/* +%endif + +%changelog +* Wed Aug 28 2024 Dongxing Wang - 1.9.0-1 +- Init package