File gnss-sdr-monitor.spec of Package gnss-sdr-monitor
#
# spec file for package gnss-sdr-monitor
#
# Copyright (c) 2020 Wojciech Kazubski, wk@ire.pw.edu.pl
#
# 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/
#
%define is_release 0
Name: gnss-sdr-monitor
Version: 0.0git20210831
Release: 0
Summary: GUI monitor software for gnss-sdr
License: GPL-3.0
Group: Productivity/Hamradio/Other
URL: http://gnss-sdr.org/
Source0: %{name}-%{version}.tar.gz
Source1: gnss-sdr.png
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libQt5Charts5-devel
BuildRequires: libQt5Network-devel
BuildRequires: libQt5PrintSupport-devel
BuildRequires: libqt5-qtdeclarative-devel
BuildRequires: libqt5-qtlocation-devel
BuildRequires: protobuf-devel
%if 0%{?suse_version} >= 1330
BuildRequires: libboost_filesystem-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: update-desktop-files
%description
This program is a graphical user interface developed with Qt for monitoring the
status of GNSS-SDR in real time.
%prep
%if 0%{is_release}
%setup -q
%else
%setup -q -n %{name}
%endif
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
# install icon
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/
#create desktop file
%if 0%{?suse_version} > 1500
%suse_update_desktop_file -c gnss-sdr-monitor GNSS-SDR-monitor "GUI monitor for GNSS-SDR" gnss-sdr-monitor gnss-sdr.png "Science;Geoscience"
%else
%suse_update_desktop_file -c gnss-sdr-monitor GNSS-SDR-monitor "GUI monitor for GNSS-SDR" gnss-sdr-monitor gnss-sdr.png "Education;Science;Astronomy;"
%endif
%files
%{_bindir}/gnss-sdr-monitor
%doc README.md
%license LICENSE
%{_datadir}/pixmaps/gnss-sdr.png
%{_datadir}/applications/%{name}.desktop
%changelog