generated from demus/basic-rpm-template
Add spec file
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
Name: gemini-cli
|
||||||
|
Version: 0.36.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Google Gemini CLI tool
|
||||||
|
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://github.com/google-gemini/gemini-cli
|
||||||
|
Source0: https://registry.npmjs.org/@google/%{name}/-/%{name}-%{version}.tgz
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
Requires: nodejs
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
|
||||||
|
%description
|
||||||
|
CLI tool for interacting with Google's Gemini AI models from the command line.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
|
||||||
|
%build
|
||||||
|
# no build needed
|
||||||
|
%install
|
||||||
|
%{__install} -d %{buildroot}%{nodejs_sitelib}/%{name}/bundle %{buildroot}%{_bindir}
|
||||||
|
%{__install} package.json %{buildroot}%{nodejs_sitelib}/%{name}
|
||||||
|
%{__cp} -r bundle/* %{buildroot}%{nodejs_sitelib}/%{name}/bundle
|
||||||
|
%{__ln_s} -rf %{buildroot}%{nodejs_sitelib}/%{name}/bundle/gemini.js %{buildroot}%{_bindir}/gemini
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{nodejs_sitelib}/%{name}
|
||||||
|
%{_bindir}/gemini
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Nov 22 2024 Your Name <your@email.com> - 0.17.1-1
|
||||||
|
- Initial package
|
||||||
Reference in New Issue
Block a user