fix spec file, and update variables definition to align with latest Fedora's naming convention e.g. %{builddir} instead of , etc. Fix %install section, and perform correct clean up. Add error handling and chk pre-installed libs