Init package for gdal version upgrade

(cherry picked from commit 3e4b95d04cff136e2d11f783847de9c21514b438)
This commit is contained in:
desert-sailor 2024-08-28 09:55:53 +08:00 committed by openeuler-sync-bot
parent beeac3a03d
commit 20baa16703
4 changed files with 132 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From 874056b5bb1e7510a13f6c640f01d240a0ff35ce Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= <corsepiu@fedoraproject.org>
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

BIN
gpsbabel-1.9.0.tar.gz Normal file

Binary file not shown.

BIN
gpsbabel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

104
gpsbabel.spec Normal file
View File

@ -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 <dongxing.wang_a@thundersoft.com> - 1.9.0-1
- Init package