%global pypi_name datalad-metadata-model Name: python-%{pypi_name} Version: 0.3.11 Release: 1%{?dist} Summary: Metadata model used by DataLad's metadata extension License: MIT URL: https://github.com/datalad/metadata-model Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: datalad-metadata-model implements the storage model for DataLad metadata: versioned metadata records stored in git, used by datalad-metalad.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n datalad-metadata-model-%{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 # mdc is tools.metadata_creator, a developer tool that generates synthetic metadata for # upstream's tests. It installs a top-level package named 'tools', which would collide # with anything else that does the same; the package's API doesn't use it. rm -f %{buildroot}%{_bindir}/mdc %pyproject_save_files -l dataladmetadatamodel %check %pyproject_check_import -e 'dataladmetadatamodel.tests*' -e 'dataladmetadatamodel.*.tests*' %files -n python3-%{pypi_name} -f %{pyproject_files} %changelog * Mon Oct 12 2026 Morgan Hough - 0.3.11-1 - Initial package, for the DataLad extension stack and dandi.