On 23 February 2010 19:34, Eero Volotinen <eero.voloti...@iki.fi> wrote: > 2010/2/23 ram <r...@netcore.co.in>: >> All the files which I used for my compile are here >> >> https://ecm.netcore.co.in/tmp/postfix-2.7.0.rpmfiles.tgz >> >> You may want to hash-off the dotname patch which I use on my machines >> >> Of course take care of the usual warning :-) >> These are files that worked for me, there is absolutely *no guarantee* >> that this work for you. >> >> If someone can help me with a doc on creating a ".src.rpm" package I >> would like to try it > > how about command: rpmbuild -bb myprogram.spec
No, that is incorrect. From the rpmbuild manpage: -ba Build binary and source packages (after doing the %prep, %build, and %install stages). -bb Build a binary package (after doing the %prep, %build, and %install stages). -bs Build just the source package. We use -ba when rolling our RPMs. -bs would be suitable if you *only* want a Source RPM. If you can build the RPM (it sounds like you were successful) then the SRPM should be no problem. I've tried the procedure from the aforementioned link (http://www.kutukupret.com/2010/02/08/compiling-postfix-2-7-0-as-rpm-package/) and had no problems building the RPMs. I haven't tested the RPMs yet.