%global debug_package %{nil} %{?nodejs_find_provides_and_requires} Name: github-copilot Version: 0.0.358 Release: 1%{?dist} Summary: GitHub Copilot CLI License: https://docs.github.com/en/site-policy/github-terms/github-pre-release-license-terms URL: https://github.com/github/copilot-cli Source0: https://registry.npmjs.org/@github/copilot/-/copilot-%{version}.tgz # BuildArch: noarch ExclusiveArch: %{nodejs_arches} Requires: nodejs BuildRequires: nodejs-devel %description GitHub Copilot CLI brings AI-powered coding assistance directly to your command line, enabling you to build, debug, and understand code through natural language conversations. Powered by the same agentic harness as GitHub's Copilot coding agent, it provides intelligent assistance while staying deeply integrated with your GitHub workflow. %prep %setup -q -n package %build # nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{name} cp -pr \ index.js \ package.json \ prebuilds/ \ sdk/ \ sharp/ \ tree-sitter-bash.wasm \ tree-sitter-powershell.wasm \ tree-sitter.wasm \ worker/ \ %{buildroot}%{nodejs_sitelib}/%{name} find %{buildroot} -depth -wholename '*/*darwin-*' -delete find %{buildroot} -depth -wholename '*/*linux-arm*' -delete find %{buildroot} -depth -wholename '*/*linux-ia32*' -delete find %{buildroot} -depth -wholename '*/*linuxmusl*' -delete find %{buildroot} -depth -wholename '*/*win32-*' -delete mkdir -p %{buildroot}%{_bindir} ln -s %{nodejs_sitelib}/%{name}/index.js %{buildroot}%{_bindir}/copilot %check %nodejs_symlink_deps --check %files %doc README.md %license LICENSE.md %{_bindir}/copilot %{nodejs_sitelib}/%{name} %changelog * Fri Nov 14 2025 Chris Grau <113591+sirhc@users.noreply.github.com> - 0.0.358-1 - Update to 0.0.358 * Thu Nov 6 2025 Chris Grau <113591+sirhc@users.noreply.github.com> - 0.0.354-1 - Initial package