That works just fine. As long as you have it in the prjconf with the doubled-up '%', it will do whatever you want:
Given example rpm:
name: foo
version: 1.0
checkin count = 42
build count = 3
with Prjconf:
Release: 1%%{?dist}
== foo-1.0-1.dist
Release: 123.
I assume you want to do something like this:
Release:
. %%{?dist} Note the double %%, or else %{?dist} is expanded too early, resulting in a nil string. This is how I have my projects configured. -- Michael
________________________________________ From: Robert Xu [robxu9@gmail.com] Sent: Tuesday, January 26, 2010 5:58 AM To: opensuse-buildservice@opensuse.org Subject: [opensuse-buildservice] %{?dist} in obs
Hello all,
As you know, the Fedora macros have a dist macro in the release of their packages. So I set my own dist macro in the Project Config and everytime it builds, it changes dist to a random number. Help?
Robert Xu Ever tried Linux? :) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
-- Robert Xu Ever tried Linux? :) -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org