diff --git a/node-v20.18.2-headers.tar.gz b/node-v20.18.2-headers.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..12817d913be3f86f20270738b49584d0d065c159 Binary files /dev/null and b/node-v20.18.2-headers.tar.gz differ diff --git a/roo-code.spec b/roo-code.spec new file mode 100644 index 0000000000000000000000000000000000000000..45f45557b0ae8924cdbe5bb0ec88aa9d984db357 --- /dev/null +++ b/roo-code.spec @@ -0,0 +1,51 @@ +%define nodeheaders_version v20.18.2 + +Name: roo-code +Version: 3.10.5 +Release: 1 +Summary: Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code editor. +License: Apache-2.0 +URL: https://github.com/RooVetGit/Roo-Code +Source0: https://github.com/RooVetGit/Roo-Code/archive/refs/tags/v%{version}.tar.gz +Source1: https://nodejs.org/dist/%{nodeheaders_version}/node-%{nodeheaders_version}-headers.tar.gz +BuildArch: noarch + + +BuildRequires: nodejs-yarn nodejs-devel >= 20.18.1 npm jq unzip libsecret-devel +Requires: vscodium + + +%description +Roo Code (prev. Roo Cline) gives you a whole dev team of AI agents in your code editor. + + +%prep +%setup -q -T -b 0 -c -n Roo-Code-%{version} + +find . -name "package-lock.json" -exec sed -i 's|https://registry.yarnpkg.com/|https://mirrors.huaweicloud.com/repository/npm/|g' {} + +find . -name "package-lock.json" -exec sed -i 's|https://registry.npmjs.org/|https://mirrors.huaweicloud.com/repository/npm/|g' {} + +find . -name ".npmrc" -exec sed -i 's|https://registry.npmjs.org/|https://mirrors.huaweicloud.com/repository/npm/|g' {} + + + +%build +yarn config set registry https://mirrors.huaweicloud.com/repository/npm/ +yarn config set tarball %{SOURCE1} +yarn add vsce +yarn run install:all +yarn run compile +yarn run build + + +%install +unzip bin/$( jq -r '.name' "package.json" )-%{version}.vsix +mkdir -p %{buildroot}%{_datadir}/vscodium/resources/app/extensions/ +mv extension %{buildroot}%{_datadir}/vscodium/resources/app/extensions/%{name} + + +%files +%{_datadir}/vscodium/resources/app/extensions/%{name} + + +%changelog +* Thu Mar 27 2025 wangkui - 3.10.5-1 +- init diff --git a/v3.10.5.tar.gz b/v3.10.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7edbd10240cc9742960de9bd2ecae64b8aaf5265 Binary files /dev/null and b/v3.10.5.tar.gz differ