How to test if the build distribution is Mageia?

Hi,

I would like to build Vim packages for Mageia, but some parts of my spec file (which I am also using for building packages for CentOS, Fedora, openSUSE, RHEL and Scientific Linux) are dependent on the build target (i.e., the distribution the package is being built for). Is there some tag I can use to determine, in a conditional, whether the build system is Mageia? I have used the conditional:


%if 0%{?mageia}
... (do what I want to do for Mageia)
%else
... (do what I want to do for non-Mageia systems)
%endif

and:


%if 0%{?mdkversion}
...
%else
...
%endif

but neither managed to detect whether the build system was Mageia.

Thanks for your time,
Brenton

%mageia is defined in project config (see https://build.opensuse.org/project/prjconf/Mageia:Cauldron) so it is expected to work. Provide more details or link to your package on OBS.