Files
python-huggingface-hub/python-huggingface-hub.spec

94 lines
3.1 KiB
RPMSpec

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-huggingface-hub
Version: 1.7.1
Release: 1mamba
Summary: Client library to download and publish models, datasets and other repos on the huggingface.co hub
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan@openmamba.org>
URL: https://github.com/huggingface/huggingface_hub
Source: https://pypi.debian.net/huggingface-hub/huggingface_hub-%{version}.tar.gz
License: Apache License 2.0
BuildArch: noarch
## AUTOBUILDREQ-BEGIN
BuildRequires: (python3.11dist(hf-xet) < 2~~ with python3.11dist(hf-xet) >= 1.4.2)
BuildRequires: (python3.11dist(httpx) < 1~~ with python3.11dist(httpx) >= 0.23)
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(filelock)
BuildRequires: python3.11dist(fsspec)
BuildRequires: python3.11dist(packaging)
BuildRequires: python3.11dist(pyyaml)
BuildRequires: python3.11dist(tqdm)
BuildRequires: python3.11dist(typer)
BuildRequires: python3.11dist(typing-extensions)
## AUTOBUILDREQ-END
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n huggingface_hub-%{version}
%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}/hf
%{_bindir}/tiny-agents
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%doc LICENSE
%changelog
* Fri Mar 13 2026 Automatic Build System <autodist@openmamba.org> 1.7.1-1mamba
- automatic version update by autodist
* Fri Mar 06 2026 Automatic Build System <autodist@openmamba.org> 1.6.0-1mamba
- automatic version update by autodist
* Sat Feb 28 2026 Automatic Build System <autodist@openmamba.org> 1.5.0-1mamba
- automatic version update by autodist
* Sun Feb 15 2026 Silvan Calarco <silvan@openmamba.org> 1.4.1-2mamba
- rebuilt with python-typer replacing python-typer-slim
* Fri Feb 06 2026 Automatic Build System <autodist@openmamba.org> 1.4.1-1mamba
- automatic version update by autodist
* Wed Feb 04 2026 Automatic Build System <autodist@openmamba.org> 1.4.0-1mamba
- automatic version update by autodist
* Mon Feb 02 2026 Automatic Build System <autodist@openmamba.org> 1.3.7-1mamba
- automatic version update by autodist
* Thu Jan 29 2026 Automatic Build System <autodist@openmamba.org> 1.3.5-1mamba
- automatic version update by autodist
* Mon Jan 26 2026 Automatic Build System <autodist@openmamba.org> 1.3.4-1mamba
- automatic version update by autodist
* Thu Jan 22 2026 Automatic Build System <autodist@openmamba.org> 1.3.3-1mamba
- automatic version update by autodist
* Tue Jan 20 2026 Silvan Calarco <silvan@openmamba.org> 1.3.2-1mamba
- package created using the webbuild interface