Found the solution.... After searches I have found this:
sudo chown user /home/rpm/RPMS/i686 (press enter)
where user = your username
path where i686 may be different for your system....
afterwards i ran the command to build the rpm and it was done without any errors