File OSCTester.spec of Package OSCTester

#
# spec file for package OSCTester
#
# Copyright (c) 2025 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:           OSCTester
Version:        1.0.0-alpha1
Release:        0
Summary:        A simple test application for OSC, including UDP and TCP transport
License:        Apache-2.0
URL:            https://github.com/ETCLabs/OSCTester
Source0:        %{name}-%{version}.tar.xz
Source1:        %{name}.desktop
Source2:        %{name}.svg
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Network)

%description
OSCTester is designed to interact with ETC products, but it is not official ETC
software. For challenges using, integrating, compiling, or modifying items in
this project, we encourage posting on the Issues page.

OSCTester is a community-supported initiative, and the community is the best
place to ask for help!

%prep
%autosetup -p1

%build
qmake-qt5
make %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 release/%{name} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications/
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/

%files
%{_bindir}/%{name}
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/scalable/apps/*
%license LICENSE
%doc README.md

%changelog
openSUSE Build Service is sponsored by