File QModMaster.spec of Package QModMaster
#
# spec file for package QModMaster
#
# Copyright (c) 2024 SUSE LLC
#
# 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: QModMaster
Version: 0.5.2
Release: 0
Summary: Modbus Master
License: GPL-3.0-only
Group: Hardware/Other
URL: https://sourceforge.net/projects/QModMaster/
Source0: qmodmaster-elbar-%{version}.tar.gz
Source1: %{name}.desktop
Source2: connect-24.png
BuildRequires: dos2unix
BuildRequires: libqt5-qtbase-devel
%description
QModMaster is a free Qt-based implementation of a ModBus master application. A graphical user interface allows easy communication with ModBus RTU and TCP slaves. QModMaster also includes a bus monitor for examining all traffic on the bus.
%prep
%setup -q -n qmodmaster-elbar-%{version}
#dos2unix `grep -Irl .`
dos2unix README.txt
%build
%qmake5
%make_jobs
%install
#qmake5_install does not do anything
install -Dm 755 -s qModMaster %{buildroot}%{_bindir}/qModMaster
install -Dm 644 -t %{buildroot}%{_datadir}/applications %{SOURCE1}
install -Dm 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%files
%doc gpl.txt README.txt
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog