Results 1 to 2 of 2

Thread: Conditional build?

Hybrid View

  1. Default Conditional build?

    Hi,

    How do I achieve a conditional build? The rpm spec file is capable of doing it, but when building for example on RHEL5 I don't want to build with fltk support.

    Johnny

  2. #2

    Default Re: Conditional build?

    Hi,

    you can use an %if statement in your spec file.

    %if 0%{suse_version} < 110
    BuildRequires: foo-devel
    $endif

    the 0 in fron of %{suse_version} is to keep the line valid even when suse_version is not defined. Otherwise it will epxand to
    if < 110 which would be wrong.

    Dominique

Posting Permissions

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