diff --git a/blobfile-2.1.1.tar.gz b/blobfile-2.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..71f21c1dccd3c0c6e83e3f0ea9f7fb03378d9894 Binary files /dev/null and b/blobfile-2.1.1.tar.gz differ diff --git a/python-blobfile.spec b/python-blobfile.spec new file mode 100644 index 0000000000000000000000000000000000000000..ad7cf8952fb11f4e5e80ba9060a69d86ea4e4664 --- /dev/null +++ b/python-blobfile.spec @@ -0,0 +1,67 @@ +%define anolis_release 1 +%global pypi_name blobfile +%global pypi_version 2.1.1 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: %{anolis_release}%{?dist} +Summary: Read GCS, ABS and local paths with the same interface, clone of tensorflow + +License: Public Domain +URL: https://github.com/christopher-hesse/blobfile +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(filelock) >= 3 +BuildRequires: python3dist(lxml) >= 4.9 +BuildRequires: python3dist(pycryptodomex) >= 3.8 +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(urllib3) >= 1.25.3 +BuildRequires: python3dist(xmltodict) +BuildRequires: tensorflow + +%description +This is a library that provides a Python-like interface for reading local and +remote files (only from blob storage), with an API similar to open() as well as +some of the os.path and shutil functions. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(filelock) >= 3 +Requires: python3dist(lxml) >= 4.9 +Requires: python3dist(pycryptodomex) >= 3.8 +Requires: python3dist(urllib3) >= 1.25.3 +Requires: python3dist(xmltodict) +Requires: tensorflow +%description -n python3-%{pypi_name} +This is a library that provides a Python-like interface for reading local and +remote files (only from blob storage), with an API similar to open() as well as +some of the os.path and shutil functions. + + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Thu Jan 18 2024 Zhongling He - 2.1.1-1 +- Initial package. \ No newline at end of file