The above errors are because of linking of files at runtime by the rpm build environment and hence it was showing errors under build
section of the spec file
To solve the above errors add the following line at the beginning of the spec file of package
%define __debug_package %{nil}
If there is already a similar code(%define ^_debug_package %{nil}) replace it with the above code
The errors in the osp
packages can also be solved by adding the above line to the spec file.
And also make sure that you use the release repo URL for compilation, you can use the following release repo URL