diff --git a/euler-copilot-framework-0.9.6.tar.gz b/euler-copilot-framework-0.9.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..57b10b6635f4ad3239ed4cdb76d8170bdf20a36d Binary files /dev/null and b/euler-copilot-framework-0.9.6.tar.gz differ diff --git a/euler-copilot-framework.spec b/euler-copilot-framework.spec new file mode 100644 index 0000000000000000000000000000000000000000..32f43fac492ff2483f70acc47d8a44d3a07f0a79 --- /dev/null +++ b/euler-copilot-framework.spec @@ -0,0 +1,87 @@ +%define _python_bytecompile_skip 1 +Name: euler-copilot-framework +Version: 0.9.6 +Release: 1 +Summary: Intelligent framework Engine Based On LLM +License: MulanPSL-2.0 +URL: https://gitee.com/openeuler/euler-copilot-framework +Source0: %{name}-%{version}.tar.gz + +Requires: python3 +Requires: python3-aiofiles +Requires: python3-aiohttp +Requires: python3-asyncer +Requires: python3-cryptography +Requires: python3-fastapi +Requires: python3-jinja2 +Requires: python-jionlp +Requires: python3-jsonschema +Requires: python3-mcp +Requires: python3-minio +Requires: python3-ollama +Requires: python3-openai +Requires: python3-pandas +Requires: python3-python-jsonpath +Requires: python3-magic +Requires: python3-python-multipart +Requires: python3-pytz +Requires: python3-pyyaml +Requires: python3-referencing +Requires: python3-rich +Requires: python3-sqids +Requires: python3-toml +Requires: python3-uvicorn +Requires: python3 + + +%description +Intelligent framework engine based on LLM that supports calling traditional services using both low-level func_call and higher-order protocols such as MCP. + + +%prep +%setup -b 0 -n %{name}-%{version} -q + + +%build +%define debug_package %{nil} + + +%post +pip install pyarrow paddlepaddle lancedb pymongo -i https://mirrors.huaweicloud.com/repository/pypi/simple &> /dev/null +echo -e "\033[0;32m%{name}-%{version}-%{release} installed successfully.\033[0m" + + +%install +mkdir -p -m 750 %{buildroot}%{_prefix}/lib/%{name} +mkdir -p -m 750 %{buildroot}%{_datadir}/doc/%{name} +mkdir -p -m 750 %{buildroot}%{_datadir}/licenses/%{name} +mkdir -p -m 750 %{buildroot}%{_sysconfdir}/%{name} + +cp -rf %{_builddir}/%{name}-%{version}/apps %{buildroot}%{_prefix}/lib/%{name} +cp -rf %{_builddir}/%{name}-%{version}/manual %{buildroot}%{_prefix}/lib/%{name} +cp -rf %{_builddir}/%{name}-%{version}/sample %{buildroot}%{_prefix}/lib/%{name} +install -m 0440 %{_builddir}/%{name}-%{version}/LICENSE %{buildroot}%{_datadir}/licenses/%{name} +install -m 0440 %{_builddir}/%{name}-%{version}/README.md %{buildroot}%{_datadir}/doc/%{name} +install -m 0640 %{_builddir}/%{name}-%{version}/.config.example.toml %{buildroot}%{_sysconfdir}/%{name}/config.toml + +find %{buildroot}%{_prefix}/lib/%{name} -type d -exec chmod 750 {} \; +find %{buildroot}%{_prefix}/lib/%{name} -type f -exec chmod 640 {} \; + + +%files +%defattr(-,root,root,-) +%dir %{_prefix}/lib/%{name} +%dir %{_datadir}/doc/%{name} +%dir %{_datadir}/licenses/%{name} +%dir %{_sysconfdir}/%{name} + +%{_prefix}/lib/%{name}/* +%doc %{_datadir}/licenses/%{name}/LICENSE +%doc %{_datadir}/doc/%{name}/README.md +%config(noreplace) %{_sysconfdir}/%{name}/config.toml + + +%changelog +* Mon Jun 09 2025 liujiangbin - 0.9.6-1 +- Package Spec generated +