It is fairly easy to shim an adapter to get a longer film-to-flange distance. You can use K&S Metals brass shim stock for 0.001” to 0.005” shims or styrene sheet for thicker shims. Reducing the f-to-f distance is more work, as you need to sand the face of the adapter down. I have a number of inexpensive ($10-$15) Fotasy adapters for Fujifilm X cameras and usually I have to adjust the f-to-f distance on them.
At times I have had to shim individual lenses (e.g., a Nikkor 20mm f3.5 AIS lens) after I adjusted the adapter mount for other lenses, as there is usually some variation in each lens around the acceptable spacing.