Packagers, please avoid using a dedicated Release: field for the case of a
snapshot at all price.
This break the rebuild script (at the rpmdev-bumpspec step) because it
confuses the tool when the appropriate release field is in second position
whereas the first one was updated.
Instead try to use something like "if is defined" macro similar to the
%{?dist} one to handle the condition.
Here is an example:
2014-04-26 15:47 GMT+02:00 Nicolas Chauvet <kwizart(a)rpmfusion.org>:
Version: 1.6.6
-%if 0%{?pre}
-Release: 0.%{pre}%{?dist}.2
-%else
-Release: 1%{?dist}
-%endif
+Release: %{?pre:0.}1%{?pre}%{?dist}.1
Summary: Kernel module(s)
Group: System Environment/Kernel