Results 1 to 2 of 2

Thread: Conditional build?

  1. #1

    Default Conditional build?


    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.


  2. #2

    Default Re: Conditional build?


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

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

    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.


Posting Permissions

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