File xone-dongle-firmware.spec of Package xone-dongle-firmware
#
# spec file for package xone-dongle-firmware
#
# 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/
#
%if 0%{?suse_version} < 1550
%define _firmwaredir /lib/firmware
%endif
Name: xone-dongle-firmware
Version: 0.1
Release: 0
Summary: Xbox Wireless Controller Adapter firmware
License: SUSE-Firmware
Group: System/Kernel
URL: https://www.catalog.update.microsoft.com/ScopedViewInline.aspx?updateid=7164fca7-94dd-40b9-9d80-b8a3f877db97
Source0: driver.cab
Source1: LICENSE
BuildRequires: cabextract
BuildArch: noarch
%description
The proprietary firmware blobs needed for the xone package.
%prep
%setup -q -c -T
cp "%SOURCE1" .
cabextract -F FW_ACC_00U.bin "%SOURCE0"
%build
%install
install -Dm0644 -T FW_ACC_00U.bin "%buildroot%_firmwaredir/xow_dongle.bin"
%files
%license LICENSE
%_firmwaredir/xow_dongle.bin
%changelog