Re: [PATCH] Small script to patch .spec for Suse
- From
- H. Peter Anvin <hpa@zytor.com>
- Date
- Nov 18, 2005, 05:11 UTC
- Message-ID
- <437D6294.8020003@zytor.com>
- In-Reply-To
- <200511160232.15162.Josef.Weidendorfer@gmx.de>
Josef Weidendorfer wrote:
Show 15 quoted lines
> On Tuesday 15 November 2005 23:22, H. Peter Anvin wrote: > >>Sure. It's called %if. There is also %ifdef and %define. > > > So by replacing @@FOR_SUSE@@ to 0 or 1 in the Makefile, this: > > %if @@FOR_SUSE@@ > BuildRequires: openssh ... > %else > BuildRequires: openssh-clients ... > %endif > > would work? >
SuSE might even have defined a distribution-specific macro that one can key off of. Some SuSE expert would have to comment.
-hpa