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.17.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
%if 0%{?suse_version} >= 1500
# PATCH-FIX-OPENSUSE Workaround for quazip cmake support
#Patch2: 0001-quazip-pkgconfig.patch
%endif
# PATCH-FIX-OPENSUSE Add support for HiDPI screens
Patch3: 0001-Add-support-for-HiDPI-screens.patch
#
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(Qt5Core) >= 5.8
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5WebEngineWidgets)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
Requires: gdal >= 2.3
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
%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
%{_datadir}/icons/hicolor/*
%{_datadir}/pixmaps/QMapShack.png
%{_datadir}/pixmaps/QMapTool.png
%{_datadir}/%{name}
%{_datadir}/qmaptool
%{_datadir}/qmt_rgb2pct
%{_mandir}/man?/*
%{_docdir}/qmapshack/*
%changelog