I'm updating OpenImageIO to the latest version and usually simple version bumps and rebuilds work just fine, so I was surprised when the build failed...

RPM build errors:
error: File not found: /builddir/build/BUILDROOT/OpenImageIO-2.2.11.1-1.fc34.x86_64/usr/lib64/python3.9/site-packages/OpenImageIO.so

Which literally has been fine a month ago...

As it turns out the library name changed to:

/usr/lib64/python3.9/site-packages/OpenImageIO.cpython-39-x86_64-linux-gnu.so

Am I just supposed to glob this in my spec file or is there a macro which will generate the correct output?

I'm venting and I know it's not safe, but I'm a$$uming that upstream didn't change anything causing this. What I need is predictability so I don't have to fix stupid stuff. I've got enough to do with failures related to the mass rebuild.

Thanks,
Richard