Can I use current timestamp ( or day, or else uniq param ) as release in spec rpm file ?
For example, something like this:
Release: 100%{?dist}.test.%{timestamp}
Can I use current timestamp ( or day, or else uniq param ) as release in spec rpm file ?
For example, something like this:
Release: 100%{?dist}.test.%{timestamp}
What you can do is define a variable before your preamble, then use it on the Release line. The following example will set the release number to (assuming September 12, 2013) 20130912.
%define build_timestamp %(date +"%Y%m%d")
...
Release: %{build_timestamp}