From c909ec5dfb84db2e2893f3398ffecae4fd28d2bb Mon Sep 17 00:00:00 2001 From: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Date: Fri, 9 Jan 2026 23:15:51 -0600 Subject: [PATCH] add: hf-xet (#9016) --- anda/langs/python/hf-xet/anda.hcl | 5 +++ anda/langs/python/hf-xet/update.rhai | 1 + anda/langs/python/hf-xet/xf-xet.spec | 58 ++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) create mode 100644 anda/langs/python/hf-xet/anda.hcl create mode 100644 anda/langs/python/hf-xet/update.rhai create mode 100644 anda/langs/python/hf-xet/xf-xet.spec diff --git a/anda/langs/python/hf-xet/anda.hcl b/anda/langs/python/hf-xet/anda.hcl new file mode 100644 index 0000000000..d3b789ccda --- /dev/null +++ b/anda/langs/python/hf-xet/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "xf-xet.spec" + } +} diff --git a/anda/langs/python/hf-xet/update.rhai b/anda/langs/python/hf-xet/update.rhai new file mode 100644 index 0000000000..87a7689bb6 --- /dev/null +++ b/anda/langs/python/hf-xet/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("hf-xet")); diff --git a/anda/langs/python/hf-xet/xf-xet.spec b/anda/langs/python/hf-xet/xf-xet.spec new file mode 100644 index 0000000000..4fd2d857a5 --- /dev/null +++ b/anda/langs/python/hf-xet/xf-xet.spec @@ -0,0 +1,58 @@ +%global pypi_name hf-xet +%global _desc xet client tech, used in huggingface_hub. + +Name: python-%{pypi_name} +Version: 1.2.0 +Release: 1%?dist +Summary: xet client tech, used in huggingface_hub +License: Apache-2.0 +URL: https://github.com/huggingface/xet-core +Source0: %url/archive/refs/tags/v%version.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools + +BuildRequires: python +BuildRequires: gdb +BuildRequires: cargo +BuildRequires: rust-src +BuildRequires: pkgconfig(libssh2) +BuildRequires: lmdb-devel +BuildRequires: maturin + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%package -n python3-%{pypi_name}-doc +Summary: documentation for python3-%{pypi_name} + +%description -n python3-%{pypi_name}-doc +documentation for python3-%{pypi_name}. + +%prep +%autosetup -n xet-core-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files hf_xet + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc *.md +%license LICENSE + +%changelog +* Fri Jan 09 2026 Owen Zimmerman +- Initial commit