It looks like jansson package in RHEL10 has some dependency issues.
As a workaround we can install it with --nobest option fow now.
We can revert this commit once the jansson dependency issue is solved.
In RHEL10 rpmbuild cleans BUILDROOT and BUILD folder. We need it for tests.
Solution is to use --noclean parameter of rpmbuild.
There might be more folders in _BUILD_DIR. So we cant use `cd ${PACKAGE}-*`
Solution is to detect version number from installed package.