diff --git a/python-nibabel.spec b/python-nibabel.spec index e06d600..e99f03e 100644 --- a/python-nibabel.spec +++ b/python-nibabel.spec @@ -47,7 +47,8 @@ Provides: bundled(python%{python3_version}dist(netcdf)) %description -n python3-nibabel %_description %prep -%autosetup -n nibabel-%{version} -S git +# warning: don't use -S git/git_am here, or hatchling/hatch-vcs generates a wrong version +%autosetup -n nibabel-%{version} -p1 # delete shebangs from files that don't need it find nibabel/cmdline/ -name "*.py" -execdir sed -i '/^#!python/ d' '{}' \;