Programmatically force release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux