Apparently rpmbuild doesn't support variables in parts of the .spec file anymore.
cp -pr '/github/home/rpmbuild/BUILD/$OVERTE/LICENSE' /github/home/rpmbuild/BUILDROOT/overte-server-PR966.9ec0842-1.fc39.x86_64/usr/share/licenses/overte-server
cp: cannot stat '/github/home/rpmbuild/BUILD/$OVERTE/LICENSE': No such file or directory
The offending .spec file line is: %license $OVERTE/LICENSE
Apparently rpmbuild doesn't support variables in parts of the .spec file anymore.
The offending .spec file line is:
%license $OVERTE/LICENSE