%global pypi_name pydataverse Name: python-%{pypi_name} Version: 0.3.5 Release: 2%{?dist} Summary: Python client for the Dataverse API License: MIT URL: https://github.com/gdcc/pyDataverse Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: pyDataverse is a Python library for the Dataverse research data repository software: it wraps the Native, Search and Data Access APIs and handles Dataverse's metadata models.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n pydataverse-%{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 pyDataverse %check %pyproject_check_import -e 'pyDataverse.tests*' -e 'pyDataverse.*.tests*' -e '*.test_*' -e '*.conftest' -e '*.pytest_plugin' %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE.txt %changelog * Mon Oct 12 2026 Morgan Hough - 0.3.5-2 - Ship the licence with %license; F43's backend writes no License-File. * Mon Oct 12 2026 Morgan Hough - 0.3.5-1 - Initial package, for the DataLad extension stack and dandi.