%global pypi_name osfclient Name: python-%{pypi_name} Version: 0.0.5 Release: 1%{?dist} Summary: Python library and command-line client for the Open Science Framework License: BSD-3-Clause URL: https://github.com/osfclient/osfclient Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: osfclient lists, downloads and uploads files in projects on the Open Science Framework (osf.io), from Python or with the osf command.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n osfclient-%{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 %pyproject_save_files -l osfclient %check %pyproject_check_import -e 'osfclient.tests*' -e 'osfclient.*.tests*' %{py3_test_envvars} %{buildroot}%{_bindir}/osf --help > /dev/null %files -n python3-%{pypi_name} -f %{pyproject_files} %{_bindir}/osf %changelog * Mon Oct 12 2026 Morgan Hough - 0.0.5-1 - Initial package, for the DataLad extension stack and dandi.