Paul Smith wrote:
I have got the source of a program, which consists of a bunch of .cppand .h files. I would like to create a rpm from those files.
In general you need to know how to build a program from source before making an rpm from it, if you haven't got a makefile rpm won't help you out.