On 01/30/2014 10:38 AM, Stanislav Ochotnicky wrote:
Radek Holy <rholy(a)redhat.com> writes:
> I have just added the metadata creation. Good point, thank you.
Another thing worth mentioning: The release tags of those rpms are
incorrect.
Instead of:
dnf-0.4.12-1.git3584018.fc20
It should be:
dnf-0.4.12-0.1.git3584018.fc20
That way when 0.4.12 is actually released the dnf-0.4.12-1 will be
higher than those older nightlies. By that time the nightlies should
have higher version so no problems there either.
In order to have proper versioning release tag should also be increased
in consecutive builds.
One way to achieve this is:
RELEASE=$(git describe --match="[^(jenkins)].*" --tags | sed
's/[^-]*-/0./;s/-/./;s/g/git/')
sed -i "s/^Release:\s\+[0-9.]*%{?dist}$/Release: ${RELEASE}/" *.spec
--
Mikolaj Izdebski
IRC: mizdebsk