ln -s /var/log/$SERVICE_NAME $RPM_INSTALL_PREFIX/logs || :
In the rpm spec file every line ends with || :
|| :
What is the
It is simply means OR. You can try small testing like this
ls nofile-here-like || echo 'Not here'
If file not there echo will printed. Try with existing file, it will not