2016-06-01 23:48:17 +02:00
|
|
|
#
|
|
|
|
# spec file for package gpxsee
|
|
|
|
#
|
2018-08-21 09:15:28 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-06-01 23:48:17 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
|
|
|
|
|
|
|
|
Name: gpxsee
|
2019-11-19 23:07:00 +01:00
|
|
|
Version: 7.18
|
2018-08-19 10:54:29 +02:00
|
|
|
Release: 1
|
2018-08-21 09:15:28 +02:00
|
|
|
Summary: GPS log file visualization and analysis tool
|
|
|
|
License: GPL-3.0-only
|
2018-06-23 23:00:08 +02:00
|
|
|
Group: Productivity/Graphics/Viewers
|
2017-07-12 01:26:36 +02:00
|
|
|
Url: http://www.gpxsee.org
|
2016-06-01 23:48:17 +02:00
|
|
|
Source0: GPXSee-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: make
|
2019-11-02 19:55:14 +01:00
|
|
|
%if 0%{?centos_version} >= 800
|
|
|
|
BuildRequires: gdb-headless
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} >= 800
|
2016-08-03 01:05:23 +02:00
|
|
|
BuildRequires: qt5-qtbase
|
2018-08-08 15:11:53 +02:00
|
|
|
BuildRequires: qt5-qtbase-gui
|
2018-08-19 10:54:29 +02:00
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
BuildRequires: qt5-linguist
|
2018-10-07 19:10:42 +02:00
|
|
|
Recommends: qt5-qtimageformats
|
2018-12-27 11:42:19 +01:00
|
|
|
Recommends: qt5-qtpbfimageformat
|
2016-06-01 23:48:17 +02:00
|
|
|
%else
|
2016-08-03 01:05:23 +02:00
|
|
|
%if 0%{?suse_version}
|
2016-06-01 23:48:17 +02:00
|
|
|
BuildRequires: libQt5Core-devel
|
2018-12-27 11:42:19 +01:00
|
|
|
BuildRequires: libQt5Concurrent-devel
|
2016-06-01 23:48:17 +02:00
|
|
|
BuildRequires: libQt5Gui-devel
|
2018-08-19 10:54:29 +02:00
|
|
|
BuildRequires: libQt5Widgets-devel
|
2016-06-01 23:48:17 +02:00
|
|
|
BuildRequires: libQt5Network-devel
|
2018-08-08 15:11:53 +02:00
|
|
|
BuildRequires: libQt5PrintSupport-devel
|
2018-08-19 10:54:29 +02:00
|
|
|
BuildRequires: libQt5OpenGL-devel
|
2018-10-07 19:10:42 +02:00
|
|
|
BuildRequires: libQt5Sql-devel
|
2016-06-01 23:48:17 +02:00
|
|
|
BuildRequires: libqt5-linguist
|
2018-10-07 19:10:42 +02:00
|
|
|
Recommends: libQt5Sql5-sqlite
|
|
|
|
Recommends: libqt5-qtimageformats
|
2018-12-27 11:42:19 +01:00
|
|
|
Recommends: libqt5-qtpbfimageformat
|
2019-06-20 23:47:07 +02:00
|
|
|
%else
|
2019-11-02 19:55:14 +01:00
|
|
|
%if (0%{?rhel_version} && 0%{?rhel_version} < 800) || (0%{?centos_version} && 0%{?centos_version} < 800)
|
2016-08-03 01:05:23 +02:00
|
|
|
BuildRequires: libqt4-devel
|
2019-06-20 23:47:07 +02:00
|
|
|
%else
|
|
|
|
# Mageia
|
|
|
|
BuildRequires: libqt5core-devel
|
|
|
|
BuildRequires: libqt5gui-devel
|
|
|
|
BuildRequires: libqt5concurrent-devel
|
|
|
|
BuildRequires: libqt5widgets-devel
|
|
|
|
BuildRequires: libqt5network-devel
|
|
|
|
BuildRequires: libqt5printsupport-devel
|
|
|
|
BuildRequires: libqt5opengl-devel
|
|
|
|
BuildRequires: libqt5sql-devel
|
|
|
|
BuildRequires: qttools5
|
|
|
|
Recommends: qtimageformats5
|
|
|
|
Recommends: libqt5-database-plugin-sqlite
|
|
|
|
Recommends: libqt5-qtpbfimageformat
|
|
|
|
%endif
|
|
|
|
%endif
|
2016-08-03 01:05:23 +02:00
|
|
|
%endif
|
2018-08-19 10:54:29 +02:00
|
|
|
|
2016-06-01 23:48:17 +02:00
|
|
|
%description
|
2016-11-22 14:31:27 +01:00
|
|
|
GPXSee is a Qt-based tool for visualizing and analyzing GPX, TCX, FIT, KML,
|
2019-08-19 12:12:23 +02:00
|
|
|
IGC, CUP, NMEA, SLF, LOC, OziExplorer (PLT, RTE, WPT), Garmin CSV and geotagged
|
2019-03-18 22:16:37 +01:00
|
|
|
JPEG files.
|
2016-06-01 23:48:17 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n GPXSee-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-12-10 10:26:25 +01:00
|
|
|
%if 0%{?suse_version}
|
2016-06-01 23:48:17 +02:00
|
|
|
lrelease-qt5 gpxsee.pro
|
2018-12-27 11:42:19 +01:00
|
|
|
%{qmake5} gpxsee.pro
|
2016-08-03 01:05:23 +02:00
|
|
|
%else
|
2019-11-02 19:55:14 +01:00
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} >= 800
|
2019-06-20 23:47:07 +02:00
|
|
|
lrelease-qt5 gpxsee.pro
|
|
|
|
%{qmake_qt5} gpxsee.pro
|
|
|
|
%else
|
2019-11-02 19:55:14 +01:00
|
|
|
%if (0%{?rhel_version} && 0%{?rhel_version} < 800) || (0%{?centos_version} && 0%{?centos_version} < 800)
|
2016-08-03 01:05:23 +02:00
|
|
|
lrelease-qt4 gpxsee.pro
|
2019-05-14 23:34:42 +02:00
|
|
|
qmake-qt4 PREFIX=/usr gpxsee.pro
|
2019-06-20 23:47:07 +02:00
|
|
|
%else
|
|
|
|
lrelease gpxsee.pro
|
|
|
|
%{qmake_qt5} gpxsee.pro
|
|
|
|
%endif
|
2016-06-01 23:48:17 +02:00
|
|
|
%endif
|
2017-12-10 10:26:25 +01:00
|
|
|
%endif
|
2016-06-01 23:48:17 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -d 755 %{buildroot}/%{_bindir}
|
|
|
|
install -d 755 %{buildroot}/%{_datadir}/applications
|
|
|
|
install -d 755 %{buildroot}/%{_datadir}/pixmaps
|
2016-11-08 10:46:33 +01:00
|
|
|
install -d 755 %{buildroot}/%{_datadir}/mime/packages
|
2016-06-01 23:48:17 +02:00
|
|
|
install -d 755 %{buildroot}/%{_datadir}/%{name}
|
2018-02-15 23:25:14 +01:00
|
|
|
install -d 755 %{buildroot}/%{_datadir}/%{name}/maps
|
|
|
|
install -d 755 %{buildroot}/%{_datadir}/%{name}/csv
|
|
|
|
install -d 755 %{buildroot}/%{_datadir}/%{name}/translations
|
2019-02-03 12:31:40 +01:00
|
|
|
install -m 755 gpxsee %{buildroot}/%{_bindir}/%{name}
|
2018-02-15 23:25:14 +01:00
|
|
|
install -m 644 pkg/maps/* %{buildroot}/%{_datadir}/%{name}/maps
|
|
|
|
install -m 644 pkg/csv/* %{buildroot}/%{_datadir}/%{name}/csv
|
|
|
|
install -m 644 lang/*.qm %{buildroot}/%{_datadir}/%{name}/translations
|
2016-06-01 23:48:17 +02:00
|
|
|
install -m 644 icons/gpxsee.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
|
2018-02-15 23:25:14 +01:00
|
|
|
install -m 644 pkg/gpxsee.desktop %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
|
|
|
install -m 644 pkg/gpxsee.xml %{buildroot}/%{_datadir}/mime/packages/%{name}.xml
|
2016-06-01 23:48:17 +02:00
|
|
|
|
|
|
|
%post
|
2016-11-08 10:46:33 +01:00
|
|
|
if [ -x /usr/bin/update-mime-database ]; then
|
|
|
|
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
fi
|
2016-06-01 23:48:17 +02:00
|
|
|
if [ -x /usr/bin/update-desktop-database ]; then
|
|
|
|
/usr/bin/update-desktop-database > /dev/null || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%postun
|
2016-11-08 10:46:33 +01:00
|
|
|
if [ -x /usr/bin/update-mime-database ]; then
|
|
|
|
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
fi
|
2016-06-01 23:48:17 +02:00
|
|
|
if [ -x /usr/bin/update-desktop-database ]; then
|
|
|
|
/usr/bin/update-desktop-database > /dev/null || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/gpxsee
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/%{name}/*
|
|
|
|
%{_datadir}/applications/*
|
|
|
|
%{_datadir}/pixmaps/*
|
2016-11-08 10:46:33 +01:00
|
|
|
%{_datadir}/mime/packages/*
|
2016-06-01 23:48:17 +02:00
|
|
|
|
|
|
|
%changelog
|