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