Name: pocketds-userspace Version: 20260430 Release: 20260505200725%{?dist} Summary: AYANEO Pocket DS userspace integration (udev hwdb, InputPlumber, ALSA) License: GPL-2.0-or-later URL: https://github.com/ROCKNIX/distribution Source0: 10-ayaneo.hwdb Source1: 01-ayaneo-controller.yaml Source2: 01-ayaneo-controller-japanese.yaml Source3: ayaneo_mcu_xbox.yaml Source4: ayaneo_mcu_japanese.yaml Source5: 99-namehints.conf BuildArch: noarch # `%%{_udevhwdbdir}` lives in systemd-rpm-macros; the COPR minimal aarch64 # buildroot doesn't pull it in implicitly, so we ask for it explicitly. BuildRequires: systemd-rpm-macros # udev runs hwdb-update from the systemd package. InputPlumber configs are only # meaningful if InputPlumber is present, but we don't hard-require it -- the # files are inert otherwise. Requires: systemd-udev Recommends: inputplumber %description Drops in the device-specific userspace integration files for the AYANEO Pocket DS that ROCKNIX layers in via filesystem/ overlays: * /usr/lib/udev/hwdb.d/10-ayaneo.hwdb -- volume rocker keysyms * /usr/share/inputplumber/devices/*.yaml -- gamepad composition * /usr/share/inputplumber/capability_maps/*.yaml -- MCU-keyed remappings * /etc/alsa/conf.d/99-namehints.conf -- enable extended PCM namehints (replaces ROCKNIX's alsa-lib patch) %prep # nothing -- all sources are dropped in directly %build # nothing to build %install install -D -m 0644 %{SOURCE0} %{buildroot}%{_udevhwdbdir}/10-ayaneo.hwdb install -d %{buildroot}%{_datadir}/inputplumber/devices install -d %{buildroot}%{_datadir}/inputplumber/capability_maps install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/inputplumber/devices/01-ayaneo-controller.yaml install -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/inputplumber/devices/01-ayaneo-controller-japanese.yaml install -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/inputplumber/capability_maps/ayaneo_mcu_xbox.yaml install -m 0644 %{SOURCE4} %{buildroot}%{_datadir}/inputplumber/capability_maps/ayaneo_mcu_japanese.yaml install -D -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/alsa/conf.d/99-namehints.conf %files %{_udevhwdbdir}/10-ayaneo.hwdb %{_datadir}/inputplumber/devices/01-ayaneo-controller.yaml %{_datadir}/inputplumber/devices/01-ayaneo-controller-japanese.yaml %{_datadir}/inputplumber/capability_maps/ayaneo_mcu_xbox.yaml %{_datadir}/inputplumber/capability_maps/ayaneo_mcu_japanese.yaml %config(noreplace) %{_sysconfdir}/alsa/conf.d/99-namehints.conf %post %{?systemd_post} /usr/bin/systemd-hwdb update >/dev/null 2>&1 || : %postun %{?systemd_postun} if [ $1 -eq 0 ]; then /usr/bin/systemd-hwdb update >/dev/null 2>&1 || : fi %changelog * Wed May 06 2026 Pocket DS Maintainers - %{version}-%{release} - Release auto-stamped from build_timestamp; full history in git log