On Saturday 29 March 2003 00:21, Greg Freemyer wrote:
Gurus,
Is there a HowTo that explains how to compile a *.src.rpm from the SuSE CDs and get an exact duplicate of what SuSE provides? <snip>
I just tried to rebuild and install the shadow package, and the end result was a non-functioning server. (No big issue, it was a lab/test server.)
=== What I tried:
rpm --rebuild shadow-4.0.2-47.src.rpm
This should be enough for an exact duplicate. Didn't this get you an rpm in /usr/src/packages/RPMS/i386 ? If you want to make any changes to the rpm, the standard procedure would be to install the src.rpm with rpm -ivh, edit the spec file in /usr/src/packages/SPECS and finally build the new rpm with "rpm -bb <spec file>" or "rpm -ba <spec file>" if you want a new src.rpm built with your new edited spec file included.