### This code with the help by Claude Name: github-desktop Version: 0.4.21 Release: 1%{?dist} Summary: GitHub Desktop Plus, a GUI client for Git and GitHub License: MIT URL: https://github.com/pol-rivero/github-desktop-plus Source0: %{url}/releases/tag/v%{version}/%{name}-%{version}.tar.gz # Disable debug package generation for binary packages %global debug_package %{nil} BuildRequires: nodejs npm git python3 gcc-c++ make desktop-file-utils Requires: git %description GitHub Desktop Plus provides a GUI for Git and GitHub, simplifying cloning, committing, and pull requests on Linux. %prep %autosetup -n %{name}-%{version} # Install deps npm install --legacy-peer-deps # Build the app npx electron-builder --linux --dir %install # Install app into datadir mkdir -p %{buildroot}%{_datadir}/%{name} cp -a dist/linux-unpacked/* %{buildroot}%{_datadir}/%{name}/ # Install .desktop entry install -Dm644 /dev/stdin %{buildroot}%{_datadir}/applications/%{name}.desktop <