diff --git a/cline.spec b/cline.spec new file mode 100644 index 0000000000000000000000000000000000000000..696f833a9f8d21e570b815b8b3d6cf1c93bc033c --- /dev/null +++ b/cline.spec @@ -0,0 +1,53 @@ +%define nodeheaders_version v20.18.2 + +Name: cline +Version: 3.8.3 +Release: 1 +Summary: Meet Cline, an AI assistant that can use your CLI and Editor. +License: Apache-2.0 +URL: https://github.com/cline/cline +Source0: https://github.com/cline/cline/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 npm jq unzip libsecret-devel +Requires: vscodium + + +%description +Autonomous coding agent right in your IDE, capable of creating/editing +files, executing commands, using the browser, and more with your +permission every step of the way. + + +%prep +%setup -q + +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' {} + + + +%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 vscode:prepublish + +./node_modules/.bin/vsce package + + +%install +unzip $( 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 +* Mon Mar 3 2025 wangkui - 3.8.3-1 +- init 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/v3.8.3.tar.gz b/v3.8.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..835e37f78e69e5fbc76b1e172bec1f3f7e112a82 Binary files /dev/null and b/v3.8.3.tar.gz differ