%global pypi_name zarr-checksum Name: python-%{pypi_name} Version: 0.4.7 Release: 1%{?dist} Summary: Checksum Zarr archives the way the DANDI Archive does License: Apache-2.0 URL: https://github.com/dandi/zarr_checksum Source0: %{pypi_source zarr_checksum} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: zarr-checksum computes a checksum of a Zarr archive from the checksums of its chunks, as a tree, so a single changed chunk changes the result. dandi uses it to verify Zarr uploads and downloads. Fedora's package (0.4.2) is orphaned and absent from F45 and later.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n zarr_checksum-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # Build helpers some DataLad-template projects install at top level; not part of the package. rm -rf %{buildroot}%{python3_sitelib}/_datalad_buildsupport %{buildroot}%{python3_sitelib}/tools %{buildroot}%{python3_sitelib}/benchmarks %{buildroot}%{python3_sitelib}/tests %{buildroot}%{python3_sitelib}/tests.py # Old setup.py data_files can drop these at the top of site-packages (osfclient does). rm -f %{buildroot}%{python3_sitelib}/{LICENSE,VERSION,requirements.txt} %pyproject_save_files -L zarr_checksum %check %pyproject_check_import -e 'zarr_checksum.tests*' -e 'zarr_checksum.*.tests*' -e '*.test_*' -e '*.conftest' -e '*.pytest_plugin' %{py3_test_envvars} %{buildroot}%{_bindir}/zarrsum --help > /dev/null %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %{_bindir}/zarrsum %changelog * Mon Oct 12 2026 Morgan Hough - 0.4.7-1 - Initial package, for the DataLad extension stack and dandi.