2016-06-01 23:48:17 +02:00
|
|
|
#
|
|
|
|
# spec file for package gpxsee
|
|
|
|
#
|
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
|
|
|
|
|
|
|
|
Name: gpxsee
|
2017-09-15 23:23:53 +02:00
|
|
|
Version: 4.14
|
2016-06-01 23:48:17 +02:00
|
|
|
Release: 1
|
2016-11-22 14:31:27 +01:00
|
|
|
Summary: GPS log files visualizing and analyzing tool
|
2016-06-01 23:48:17 +02:00
|
|
|
License: GPL-3.0
|
|
|
|
Group: Productivity/Graphics/Visualization
|
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
|
|
|
|
Source1: gpxsee.desktop
|
2016-11-08 10:46:33 +01:00
|
|
|
Source2: gpxsee.xml
|
2016-06-01 23:48:17 +02:00
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: make
|
2016-08-03 01:05:23 +02:00
|
|
|
%if 0%{?fedora_version}
|
|
|
|
%if 0%{?fedora_version} >= 24
|
|
|
|
BuildRequires: qt5-qtbase
|
|
|
|
BuildRequires: qt5-qtbase-gui
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
BuildRequires: qt5-linguist
|
2016-06-01 23:48:17 +02:00
|
|
|
%else
|
2016-08-03 01:05:23 +02:00
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version}
|
2016-06-01 23:48:17 +02:00
|
|
|
BuildRequires: libQt5Core-devel
|
|
|
|
BuildRequires: libQt5Gui-devel
|
|
|
|
BuildRequires: libQt5Widgets-devel
|
|
|
|
BuildRequires: libQt5Network-devel
|
|
|
|
BuildRequires: libQt5PrintSupport-devel
|
|
|
|
BuildRequires: libqt5-linguist
|
|
|
|
%endif
|
2016-08-03 01:05:23 +02:00
|
|
|
%if 0%{?rhel_version} || 0%{?centos_version}
|
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
%endif
|
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,
|
|
|
|
IGC, NMEA and Garmin CSV files.
|
2016-06-01 23:48:17 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n GPXSee-%{version}
|
|
|
|
|
|
|
|
%build
|
2016-08-03 01:05:23 +02:00
|
|
|
%if 0%{?fedora_version} >= 24 || 0%{?suse_version}
|
2016-06-01 23:48:17 +02:00
|
|
|
lrelease-qt5 gpxsee.pro
|
|
|
|
qmake-qt5 gpxsee.pro
|
2016-08-03 01:05:23 +02:00
|
|
|
%else
|
|
|
|
lrelease-qt4 gpxsee.pro
|
|
|
|
qmake-qt4 gpxsee.pro
|
2016-06-01 23:48:17 +02:00
|
|
|
%endif
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make clean
|
|
|
|
|
|
|
|
|
|
|
|
%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}
|
|
|
|
install -m 755 GPXSee %{buildroot}/%{_bindir}/%{name}
|
|
|
|
install -m 644 pkg/maps.txt %{buildroot}/%{_datadir}/%{name}
|
2017-04-17 23:43:59 +02:00
|
|
|
install -m 644 pkg/ellipsoids.csv %{buildroot}/%{_datadir}/%{name}
|
|
|
|
install -m 644 pkg/datums.csv %{buildroot}/%{_datadir}/%{name}
|
2016-06-01 23:48:17 +02:00
|
|
|
install -m 644 icons/gpxsee.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
|
|
|
|
install -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
2016-11-08 10:46:33 +01:00
|
|
|
install -m 644 %{SOURCE2} %{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
|