The %prep section is where the build environment for the software is created. AFAIK the prep section is only used for applying software patches.
If you want your files to show up on the target machine you will need to install them to the buildroot in the %install section and list them in the %files section.
When starting out building RPMs I found it helpful to study and rebuild existing RPMs. For example, to download the SRPM for phpMyAdmin and inspect the spec file:
Code:
# sudo yum install yum-utils rpmdevtools
# yumdownloader --source phpMyAdmin
# rpmdev-extract phpMyAdmin-3.5.8.2-1.el6.src.rpm
# vim phpMyAdmin-3.5.8.2-1.el6.noarch/phpMyAdmin.spec