File asrrgb.spec of Package asrrgb
#
# spec file for package asrrgb
#
# 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: asrrgb
Version: 1.1.0
Release: 0
Summary: RGB LED control for ASRock B550- and TRX40-series motherboards
License: GPL-2.0-or-later
URL: https://github.com/aedalzotto/asrrgb
Source0: https://github.com/aedalzotto/asrrgb/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE asrrgb-installation_paths.patch
Patch1: asrrgb-installation_paths.patch
%if 0%{?suse_version} > 1500
BuildRequires: gcc-c++
%else
BuildRequires: gcc13-c++
%endif
BuildRequires: libboost_program_options-devel
BuildRequires: meson
BuildRequires: pkgconfig(libusb-1.0)
%description
This program is intended to control the motherboard RGB LEDs and headers
without needing to boot to Windows. Currently, it is unable to identify
the capabilities of the target device, so use with caution.
For more information, check the protocol reverse engineering in the
included documentation file.
%prep
%autosetup -p1
%build
export CXX=g++
test -x "$(type -p g++-13)" && export CXX=g++-13
%meson -Dudevrulesdir="%{_udevrulesdir}"
%meson_build
%install
%meson_install
%post
%udev_rules_update
%postun
%udev_rules_update
%files
%license LICENSE
%doc README.md docs/nuc121z1c.md
%{_bindir}/%{name}
%{_udevrulesdir}/60-asrrgb.rules
%changelog