Mailinglist Archive: opensuse-buildservice (193 mails)

< Previous Next >
Re: [opensuse-buildservice] Conditional %include?
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Sat, 14 Apr 2007 14:05:50 +0200
  • Message-id: <20070414120550.GA3992@xxxxxxxxxxxxxxxxxxx>
On 2007-04-14 00:03:17 +0200, Marcus Rueckert wrote:
> %if "%_vendor" == "suse"
> Source1: redhat.init
> %else
> Source1: suse.init
> %endif
> 
Well.. this works of course but it's not a good idea to do something like this
IMHO. Imagine you will grab the suse src.rpm and try to rebuild it on a redhat
system. So it's better to include _all_ sources and put the %if's into the
%install section.


Marcus
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups