%{dist} and 0%{?X_version} macros

Is there a trick to getting the macros to work, my {%dist} keeps getting cleared off of Release, and the cross distro macros from here: openSUSE:Build Service cross distribution howto - openSUSE are not working either