File data-plotter.spec of Package data-plotter
#
# spec file for package data-plotter
#
# Copyright (c) 2020-2025 Jiri Maier <jiri.maier.x@gmail.com>
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>
#
# Please submit bugfixes or comments via
#
# issues tracker.
#
Name: data-plotter
Version: 3.3.3
Release: 1
Summary: GUI interface for custom software-defined instruments
License: GPL-3.0-or-later
Group: Office/Visualization/Other
URL: https://jirimaier.github.io/DataPlotter/
Source: data-plotter_3.3.3.orig.tar.xz
BuildRequires: cmake
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5QuickControls2)
BuildRequires: pkgconfig(Qt5QuickWidgets)
BuildRequires: pkgconfig(Qt5SerialPort)
BuildRequires: pkgconfig(Qt5Widgets)
%if ! 0%{?suse_version}
BuildRequires: desktop-file-utils
BuildRequires: qt5-linguist
BuildRequires: qt5-qttools
%endif
%if 0%{?suse_version}
BuildRequires: libqt5-linguist
BuildRequires: update-desktop-files
%endif
%description
GUI interface for custom software-defined instruments.
%prep
%setup -q
%build
%if 0%{?suse_version}
%cmake -DCMAKE_CXX_FLAGS="-Wno-error" -DCMAKE_C_FLAGS="-Wno-error"
%else
%cmake
%endif
%cmake_build
%install
%cmake_install
#desktop icon
%if 0%{?suse_version}
%suse_update_desktop_file -r -i data-plotter 'Office Visualization'
%endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?centos}
desktop-file-validate %{buildroot}%{_datadir}/applications/data-plotter.desktop
%endif
# TODO: this should be generated from CMake
%files
%{_bindir}/data-plotter
#%{_datadir}/icons/hicolor/scalable/apps/data-plotter.svg
%{_datadir}/icons/hicolor/256x256/apps/data-plotter.png
%{_datadir}/applications/data-plotter.desktop
#%{_datadir}/metainfo/cz.cvut.fel.embedded.data-plotter.metainfo.xml
%license documentation/license.txt
%doc README.md
%changelog