Name: hand-in Version: 1.0.0 Release: 1%{?dist} Summary: First Wayland gesture-driven system automation License: MIT URL: https://github.com/CyberHuman-bot/hand-in # Source0: The pre-compiled binary from GitHub Releases Source0: %{url}/releases/download/v%{version}/hand-cli # Source1: The AI Model brain Source1: https://storage.googleapis.com/mediapipe-models/hand_landmarker/hand_landmarker/float16/1/hand_landmarker.task # Source2: The service file in the GitHub repo Source2: hand-in.service # Dependencies for the binary to work Requires: grim notify-send opencv-devel %description A privacy-first autonomous gesture service for Wayland. It uses MediaPipe to detect hands and trigger system actions like screenshots. %prep # Nothing to unpack since we are using a binary %install # Create the folders in the chroot mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_userunitdir} # Copy the files into the correct places cp %{SOURCE0} %{buildroot}%{_bindir}/hand-in cp %{SOURCE1} %{buildroot}%{_bindir}/hand_landmarker.task cp %{_sourcedir}/hand-in.service %{buildroot}%{_userunitdir}/hand-in.service # Make sure the binary can actually run chmod +x %{buildroot}%{_bindir}/hand-in %files %{_bindir}/hand-in %{_bindir}/hand_landmarker.task %{_userunitdir}/hand-in.service