Programmatically force release
Pierre-Gildas MILLON
pg.millon at gmail.com
Thu Mar 5 14:13:46 UTC 2015
Hi people,
I'm trying to reproduce maven's philosophy with snapshots when building my
RPM :
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 ?
Thanks.
Regards,
Pierre-Gildas MILLON
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20150305/b83300d1/attachment.html>
More information about the Rpm-list
mailing list