Results 1 to 2 of 2

Thread: How to test if the build distribution is Mageia?

  1. #1
    Join Date
    Nov 2015
    Location
    Townsville, Australia
    Posts
    271

    Default 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:

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

    Code:
    %if 0%{?mdkversion}
    ...
    %else
    ...
    %endif
    but neither managed to detect whether the build system was Mageia.

    Thanks for your time,
    Brenton
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Five favourite distros: Arch Linux, Fedora, openSUSE Tumbleweed, Sabayon Linux and Ubuntu.

  2. #2
    Join Date
    Sep 2012
    Posts
    4,098

    Default Re: How to test if the build distribution is Mageia?

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •