Use srpm building tools
Builds an RPM with a specified revision as the source tar.gz and additional changes as patches
make srpms
make samba-srpm
make talloc-srpm
make tdb-srpm
with optinal arguments;
To select the revision to build an RPM for
REVISION=[ HEAD | LOCAL | sha1 | TAG ]
(Local means HEAD + uncomitted changes)
To select the revision to be used for the main tar.gz
ORIGIN=[HEAD | sha1 | TAG ]
Let it guess which revision to use for the main tar.gz
ORIGIN_PATTERN=[ glob | release-4*alpha* ]