代码拉取完成,页面将自动刷新
%define debug_package %{nil}
Name: metagpt
Version: 0.8.1
Release: 1
Summary: The Multi-Agent Framework
Group: NA
License: The MIT License
URL: https://github.com/geekan/MetaGPT
Source0: https://github.com/geekan/MetaGPT/archive/refs/tags/v%{version}.tar.gz
Source1: requirements.txt
Requires: python3-pip python3 >= 3.9
%description
Assign different roles to GPTs to form a collaborative entity for complex tasks
%prep
%setup -q -n MetaGPT-%{version}
%build
# No build steps required for Python packages
%install
install -d %{buildroot}/usr/local/metagpt/
cp -r %{_builddir}/MetaGPT-%{version} %{buildroot}/usr/local/metagpt/
cp %{SOURCE1} %{buildroot}/usr/local/metagpt/
install -d %{buildroot}/etc/metagpt/
install -m 0644 config/config2.yaml %{buildroot}/etc/metagpt/
%files
/usr/local/metagpt
%config(noreplace) %{_sysconfdir}/metagpt/config2.yaml
%post
echo "Installing requirements package %post..."
cd /usr/local/metagpt/MetaGPT-%{version}
pip3 install --upgrade -e . || {
echo "Failed to install the requirements package, rolling back..."
cd -
exit 1
}
%preun
cat /usr/local/metagpt/requirements.txt | xargs pip3 uninstall -y
%changelog
* Thu Jul 25 2024 lixiaoyong <[email protected]> - 0.8.1-1
- Initial RPM release
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。