File openrgb-effectsplugin.spec of Package OpenRGB-EffectsPlugin-git-qt6

#
# spec file for package OpenRGB
#
# 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/
#


%global _name OpenRGBEffectsPlugin

Name:           openrgb-effectsplugin
Version:        1.0~rc2+git3.gd95381d
Release:        0%{?dist}
Summary:        Open source RGB lighting control
License:        GPL-2.0-or-later
URL:            https://gitlab.com/OpenRGBDevelopers/OpenRGBEffectsPlugin
Source0:        %{name}-%{version}.tar.gz
# Leap 15.6 and below cannot use the default GCC7 due to std::filesystem.
# Picking GCC13 as this works with position independent executables
%if 0%{?suse_version} < 1600
BuildRequires:  gcc13
BuildRequires:  gcc13-c++
%endif
BuildRequires:  git
BuildRequires:  qt6-dbus-devel
BuildRequires:  qt6-linguist-devel
BuildRequires:  qt6-tools-linguist
BuildRequires:  pkgconfig(libpipewire-0.3)
BuildRequires:  pkgconfig(libspa-0.2)
BuildRequires:  pkgconfig(openal)
BuildRequires:  pkgconfig(Qt6Core)
BuildRequires:  pkgconfig(Qt6Core5Compat)
BuildRequires:  pkgconfig(Qt6OpenGL)
BuildRequires:  pkgconfig(Qt6Widgets)
BuildRequires:  pkgconfig(gusb)
BuildRequires:  pkgconfig(hidapi-hidraw)
BuildRequires:  pkgconfig(libe131)
Requires:       OpenRGB

%description
This is a plugin for OpenRGB that provides various effects that can be synced across devices.

%prep
%autosetup -p1

%build
# Leap 15.6 and below cannot use default GCC7 due to std::filesystem, use override.
%if 0%{?suse_version} < 1600
# Use config callout to project for compiler override
%qmake6 QMAKE_CC=gcc-13 QMAKE_CXX=g++-13
%else
%qmake6
%endif
%make_build

%install
%make_install INSTALL_ROOT=%{buildroot}%{_prefix}

%check

%files
%{_prefix}/lib/openrgb

%changelog
openSUSE Build Service is sponsored by