On Fri, 17 Dec 2004, Colin Walters wrote:
On Fri, 2004-12-17 at 23:55 +0100, Dries Verachtert wrote:
> Do you mean the Release tag or the Version-Release of a spec file with 'the
> rpm revision number'?
I mean the Release and Version tags.
> If i'm correct, you suggest to remove the release or the version-release
> completely from the spec file.. this would make it impossible to build the
> spec file with a 'rpmbuild -ba bla.spec'.
Indeed. You would need to specify something like this:
rpmbuild -ba --version '1.2-4' bla.spec
I would sugest 'rpmbuild --rebuild bla.src.rpm' should work for
users. i.e 'bla.spec' that gets into 'bla.src.rpm' should be a
generated file based on all the data that can be automatically pulled
from external sources.
- version number
- changelog
- macro expansions etc..
I guess the tool that does this could be 'rpmbuild' or something else
(whatever is a convenient model for the packagers).
Satish