diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-safetensors.spec | 53 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 55 insertions, 0 deletions
@@ -0,0 +1 @@ +/safetensors-0.4.2.tar.gz diff --git a/python-safetensors.spec b/python-safetensors.spec new file mode 100644 index 0000000..6208d56 --- /dev/null +++ b/python-safetensors.spec @@ -0,0 +1,53 @@ +%global pypi_name safetensors +%global pypi_version 0.4.2 +%global pkg_summary Simple, safe way to store and distribute tensors +%global pkg_description %{expand: +%{pkg_summary}} + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1 +Summary: %{pkg_summary} + +License: Apache-2.0 +URL: https://github.com/huggingface/safetensors +Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/safetensors-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: ninja-build +BuildRequires: g++ + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + +%description +%{pkg_description} + +%package -n python3-%{pypi_name} +Summary: %{pkg_summary} + +%description -n python3-%{pypi_name} +%{pkg_description} + +%prep +%autosetup -p1 -n %{pypi_name}-%{pypi_version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitearch}/%{pypi_name}* + +%changelog +* Sun Mar 31 2024 YunShu +- add safetensors 0.4.2 @@ -0,0 +1 @@ +b14e1dddc248794411469b21eb29f38e safetensors-0.4.2.tar.gz |