98 lines
3.2 KiB
RPMSpec
98 lines
3.2 KiB
RPMSpec
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
Name: python-litellm
|
|
Version: 1.81.11
|
|
Release: 1mamba
|
|
Summary: Library to easily interface with LLM API providers
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan@openmamba.org>
|
|
URL: https://www.litellm.ai/
|
|
Source: https://pypi.debian.net/litellm/litellm-%{version}.tar.gz
|
|
License: MIT
|
|
BuildArch: noarch
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: (python3.11dist(jinja2) < 4~~ with python3.11dist(jinja2) >= 3.1.2)
|
|
BuildRequires: (python3.11dist(jsonschema) < 5~~ with python3.11dist(jsonschema) >= 4.23)
|
|
BuildRequires: (python3.11dist(pydantic) < 3~~ with python3.11dist(pydantic) >= 2.5)
|
|
BuildRequires: libpython311-devel
|
|
BuildRequires: python3.11dist(aiohttp)
|
|
BuildRequires: python3.11dist(click)
|
|
BuildRequires: python3.11dist(fastuuid)
|
|
BuildRequires: python3.11dist(httpx)
|
|
BuildRequires: python3.11dist(importlib-metadata)
|
|
BuildRequires: python3.11dist(openai)
|
|
BuildRequires: python3.11dist(python-dotenv)
|
|
BuildRequires: python3.11dist(tiktoken)
|
|
BuildRequires: python3.11dist(tokenizers)
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
%{summary}.
|
|
|
|
%if 0%{?with_pyver}
|
|
%pyver_package
|
|
%endif
|
|
|
|
%prep
|
|
%setup -q -n litellm-%{version}
|
|
sed -i 's|certifi = .*|certifi = ">=2023"|' pyproject.toml
|
|
|
|
%build
|
|
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
|
|
|
#%if "%{?with_pyver}" != "3"
|
|
## Rename any conflicting file outside of python site packages tree
|
|
#for f in %{_bindir}/pdm; do
|
|
# mv %{buildroot}${f}{,-%{?pyappend}}
|
|
#done
|
|
#%endif
|
|
|
|
%files %{?pyappend}
|
|
%defattr(-,root,root)
|
|
%{_bindir}/litellm
|
|
%{_bindir}/litellm-proxy
|
|
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
|
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
|
%dir %{python_sitelib}/%{pkgname}
|
|
%{python_sitelib}/%{pkgname}/*
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* Fri Feb 13 2026 Automatic Build System <autodist@openmamba.org> 1.81.11-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Feb 11 2026 Automatic Build System <autodist@openmamba.org> 1.81.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Feb 08 2026 Automatic Build System <autodist@openmamba.org> 1.81.9-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Feb 05 2026 Automatic Build System <autodist@openmamba.org> 1.81.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Feb 04 2026 Automatic Build System <autodist@openmamba.org> 1.81.7-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Feb 01 2026 Automatic Build System <autodist@openmamba.org> 1.81.6-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Jan 29 2026 Automatic Build System <autodist@openmamba.org> 1.81.5-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jan 28 2026 Automatic Build System <autodist@openmamba.org> 1.81.4-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Jan 25 2026 Automatic Build System <autodist@openmamba.org> 1.81.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Jan 21 2026 Automatic Build System <autodist@openmamba.org> 1.81.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Jan 20 2026 Silvan Calarco <silvan@openmamba.org> 1.81.0-1mamba
|
|
- package created using the webbuild interface
|