File qmapshack.spec of Package qmapshack
#
# spec file for package qmapshack
#
# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/
#
Name: qmapshack
Version: 1.18.0
Release: 0
Summary: GPS data display
License: GPL-2.0-or-later
Group: Productivity/Other
URL: https://github.com/Maproom/qmapshack
Source0: https://github.com/Maproom/qmapshack/archive/V_%{version}.tar.gz
# PATCH-FIX-OPENSUSE Workaround for Proj cmake support
Patch0: qmapshack_proj_pkgconfig.patch
# PATCH-FIX-OPENSUSE Adjust documentation folder
Patch1: qmapshack_doc_folder.patch
# PATCH-FIX-OPENSUSE Add support for HiDPI screens
Patch3: 0001-Add-support-for-HiDPI-screens.patch
BuildRequires: fdupes
BuildRequires: Mesa-libGLU-devel
BuildRequires: cmake >= 3.0.0
BuildRequires: gcc-c++
BuildRequires: gdal-devel
BuildRequires: hdf5
BuildRequires: libexif-devel
BuildRequires: libjpeg62-devel
BuildRequires: libquazip-qt5-devel
BuildRequires: libroutino-devel
BuildRequires: libusb-devel
BuildRequires: pkgconfig
BuildRequires: proj-devel
BuildRequires: routino
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt6Core) >= 6.8
BuildRequires: pkgconfig(Qt6DBus)
BuildRequires: pkgconfig(Qt6Network)
BuildRequires: pkgconfig(Qt6PrintSupport)
BuildRequires: pkgconfig(Qt6Sql)
BuildRequires: pkgconfig(Qt6Test)
BuildRequires: pkgconfig(Qt6UiTools)
BuildRequires: pkgconfig(Qt6WebEngineWidgets)
BuildRequires: pkgconfig(Qt6Widgets)
BuildRequires: pkgconfig(Qt6Xml)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6Help)
BuildRequires: cmake(QuaZip-Qt6)
Requires: gdal >= 3.0
Requires: proj
Requires: routino >= 3.1.0
%description
QMapShack is a consumer grade software to work with data
aquired by GPS devices. The data can be displayed on a
variety of maps and stored in a database. Additionally
new data can be created to plan your next trip.
%prep
%autosetup -p1 -n %{name}-V_%{version}
sed -i 's/\r//' README.md
%build
%cmake -DCMAKE_SKIP_RPATH=ON
make VERBOSE=1 %{?_smp_mflags}
%install
%cmake_install
%suse_update_desktop_file -r %{name} Education Science Geography
%suse_update_desktop_file -r qmaptool Education Science Geography
%fdupes %{buildroot}/usr/share/icons/hicolor
%fdupes %{buildroot}/usr/share/qmaptool
%files
%defattr(-,root,root)
%license LICENSE
%doc changelog.txt README.md
%{_bindir}/%{name}
%{_bindir}/qmaptool
%{_bindir}/qmt_rgb2pct
%{_bindir}/qmt_map2jnx
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/qmaptool.desktop
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/*
%dir %{_datadir}/icons/hicolor/*/apps
%{_datadir}/icons/hicolor/*/apps/QMapShack.png
%{_datadir}/icons/hicolor/*/apps/QMapTool.png
%{_datadir}/pixmaps/QMapShack.png
%{_datadir}/pixmaps/QMapTool.png
%{_datadir}/%{name}
%{_datadir}/qmaptool
%{_datadir}/qmt_rgb2pct
%{_mandir}/man?/*
%{_docdir}/qmapshack/*
%changelog