How to install gpio-mockup on any recent fedora version?

Hello all,

i am trying to use te gpio-mockup kernel driver to test a few things on libgpiod 1.6 series without having a real hardware gpio interface.

The point is: on Fedora 39 and newer libgpiod is 2.x series already and it is a new api, a breaking change.
Fedora 39 also comes with gpio-sim, it could help me if was not by the new API.

Right now i am using a virtual machine with Fedora 38, but althoug it has libgpiod 1.6, there is neither gpio-mockup or gpio-sim, so i can’t simulate the pins.

Is there a fedora spin offering those kernel drivers for gpio AND the older libgpiod?

If not, how could i build the kernel module on Fedora 38?

Any guidance is welcome.