Programmatically force release

Pierre-Gildas MILLON pg.millon at
Thu Mar 5 14:13:46 UTC 2015

Hi people,

I'm trying to reproduce maven's philosophy with snapshots when building my

if release endswith SNAPSHOT then
    release = concat(release, "-", timestamp)

I tried something like this without any result :

test.spec :
Release:        SNAPSHOT
%{?force_release: %define release %{force_release}}

rpmbuild -ba --define="force_release SNAPSHOT-$TIMESTAMP"

Would anyone have an idea how I could accomplish that ?



Pierre-Gildas MILLON
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Rpm-list mailing list