%global pypi_name datalad-core Name: python-%{pypi_name} Version: 0.3.0 Release: 1%{?dist} Summary: Core library for DataLad's next-generation components License: MIT URL: https://hub.datalad.org/datalad/datalad-core Source0: %{pypi_source datalad_core} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: datalad-core provides the low-level layer that newer DataLad components (datalad-next) build on: repository and worktree access, configuration handling and command execution.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n datalad_core-%{version} %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %pyproject_buildrequires %build export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %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 datalad_core %check %pyproject_check_import -e 'datalad_core.tests*' -e 'datalad_core.*.tests*' -e '*.test_*' -e '*.conftest' -e '*.pytest_plugin' %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %changelog * Mon Oct 12 2026 Morgan Hough - 0.3.0-1 - Initial package, for the DataLad extension stack and dandi.