## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name ollama Name: python-%{pypi_name} Version: 0.4.7 Release: %autorelease Summary: The official Python client for Ollama License: MIT URL: https://ollama.com Source: %{pypi_source ollama} BuildArch: noarch # Ollama only on x86_64 ExclusiveArch: x86_64 BuildRequires: python3-devel BuildRequires: python3dist(pytest-httpserver) BuildRequires: python3dist(pytest-asyncio) %global _description %{expand: The Ollama Python library provides the easiest way to integrate Python 3.8+ projects with Ollama.} %description %_description %package -n python3-ollama Summary: %{summary} %description -n python3-ollama %_description %prep %autosetup -p1 -n ollama-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} %check %pyproject_check_import %files -n python3-ollama -f %{pyproject_files} %license LICENSE %doc README.md %changelog ## START: Generated by rpmautospec * Fri Mar 14 2025 Tom Rix - 0.4.7-1 - Initial package ## END: Generated by rpmautospec