I assume that you want to know that how to list the files of a rpm the command is rpm -qlp
and it will do the job for you -
rpm -qlp httpd-xxxx.rpm
Sample Output
/etc/httpd
/etc/httpd/conf
/etc/httpd/conf.d
/etc/httpd/conf.d/README
/etc/httpd/conf.d/proxy_ajp.conf
/etc/httpd/conf.d/welcome.conf
/etc/httpd/conf/httpd.conf
....
..
..
/var/www/icons/world1.png
/var/www/icons/world2.gif
/var/www/icons/world2.png
To get the list of files from the installed package please use rpm -ql
like
rpm -ql httpd