Ok, i think i understand the procedure now for code that needs to be compiled. The prep does the untar, then you build it and finally install it. Under your %files part you then list the compiled code and this gets included into the generated .rpm file.
I'm a bit confused with how to handle php code that just needs to be copied over to the default apache dir,i.e no compiling is needed.
A very trivial example :
I have a tarball HelloWorld-0.0.1.tar.gz with one file Helloworld.php in it. (The tarball is in my BUILD dir and all of that)
I want to generate an rpm so that when i run it, it copies over Helloworld.php to the default apache dir on the box it is installed on.
What would i need in my spec file here? I have tried to put the cp commands in the spec files' install part, but it does not seem to work
.
I assume i'm missing the big picture...