%global pypi_name wirerope Name: python-%{pypi_name} Version: 1.0.0 Release: 2%{?dist} Summary: Turn functions and methods into fully controllable objects License: BSD-2-Clause URL: https://github.com/youknowone/wirerope Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: wirerope wraps functions, methods, classmethods and staticmethods in a common rope object, so decorators can handle all of them uniformly. methodtools uses it.} %description %{_description} %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %{_description} %prep %autosetup -p1 -n wirerope-%{version} # setup.py imports pkg_resources only to insist on setuptools >= 39.2; pkg_resources is # gone from setuptools on F45+, and every Fedora's setuptools is far newer than that. printf 'import setuptools\nsetuptools.setup()\n' > setup.py if grep -q pkg_resources setup.py; then exit 1; fi %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 wirerope %check %pyproject_check_import -e 'wirerope.tests*' -e 'wirerope.*.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 - 1.0.0-2 - Replace setup.py's pkg_resources version check; pkg_resources is gone on F45+. * Mon Oct 12 2026 Morgan Hough - 1.0.0-1 - Initial package, for the DataLad extension stack and dandi.