How to use timestamp in spec rpm? -


can use current timestamp ( or day, or else uniq param ) release in spec rpm file ?

for example, this:

release: 100%{?dist}.test.%{timestamp} 

what can define variable before preamble, use on release line. following example set release number (assuming september 12, 2013) 20130912.

%define build_timestamp %(date +"%y%m%d")  ... release: %{build_timestamp} 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -