From 2e71d62a81e6f9708c776a0d372dac23e740f830 Mon Sep 17 00:00:00 2001 From: "Shine.Wang" Date: Mon, 9 Jun 2025 11:22:47 +0000 Subject: [PATCH] Update to v0.6.1 --- .gitattributes | 1 + .lfsconfig | 2 ++ ollama-0.6.1.tar.gz | 3 ++ python-ollama.spec | 73 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 79 insertions(+) create mode 100644 .gitattributes create mode 100644 .lfsconfig create mode 100644 ollama-0.6.1.tar.gz create mode 100644 python-ollama.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f087b42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 0000000..a3c5e24 --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://artlfs.openeuler.openatom.cn/zhouweitong3/euler-copilot-framework_rpm \ No newline at end of file diff --git a/ollama-0.6.1.tar.gz b/ollama-0.6.1.tar.gz new file mode 100644 index 0000000..b8ed802 --- /dev/null +++ b/ollama-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:478c67546836430034b415ed64fa890fd3d1ff91781a9d548b3325274e69d7c6 +size 51620 diff --git a/python-ollama.spec b/python-ollama.spec new file mode 100644 index 0000000..0c6a101 --- /dev/null +++ b/python-ollama.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ollama +Version: 0.6.1 +Release: 1 +Summary: The official Python client for Ollama. +License: MIT +URL: https://ollama.com +Source0: %{pypi_source ollama} +BuildArch: noarch + +Requires: python3-httpx>=0.27 +Requires: python3-pydantic>=2.9.0 + +%description +# Ollama Python Library + +The Ollama Python library provides the easiest way to integrate Python 3.8+ projects with [Ollama](https://github.com/ollama/ollama). + +%package -n python3-ollama +Summary: The official Python client for Ollama. +Provides: python-ollama +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-poetry-core +BuildRequires: python3-hatchling +%description -n python3-ollama +# Ollama Python Library + +The Ollama Python library provides the easiest way to integrate Python 3.8+ projects with [Ollama](https://github.com/ollama/ollama). + +%prep +%autosetup -n ollama-%{version} + +%build +%pyproject_build + +%install +%pyproject_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +touch filelist.lst +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-ollama -f filelist.lst +%{python3_sitelib}/* +%{_docdir}/* + +%changelog +* Thu Dec 11 2025 Zhou Weitong - 0.6.1-1 +- Update version +* Wed May 07 2025 Python_Bot - 0.4.8-1 +- Package Spec generated -- Gitee