i do need someone to look through the ./create_fpc_rpm.sh file and the make files. the configuration is not working
As long as you can't even ensure your installation is fine, it's useless to check those files. Fix your installation first, at least ensure fpcmake is callable and working.
FYI, I just test the script and it works just fine. Some adjustments required in the fpc.spec.template, namely:
# 81-82
NEWFPDOC=`pwd`/utils/fpdoc/bin/%{_arch}-%{_os}/fpdoc
DATA2INC=`pwd`/utils/bin/%{_arch}-%{_os}/data2inc
# 91-92
FPCMAKE=`pwd`/utils/fpcm/bin/%{_arch}-%{_os}/fpcmake
DATA2INC=`pwd`/utils/bin/%{_arch}-%{_os}/data2inc
Note that depending on your Linux distro version and RPM version, you might also need to replace:
%{_lib} with lib
%{_libdir} with %{_exec_prefix}/lib
This is because recently 64-bit is considered mainstream enough and thus lib contains 64-bit libraries by default and lib32 contains 32-bit ones. Contrary to previous convention where lib contains 32-bit libraries and lib64 contains 64-bit ones.