git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Small script to patch .spec for Suse

From
HAH. 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
Previous: Josef WeidendorferNext: A Large Angry SCM
Message 9 of 11 in “Small script to patch .spec for Suse”
  1. Small script to patch .spec for SuseJosef Weidendorfer, Nov 15, 2005
  2. Junio C HamanoNov 15, 2005
  3. H. Peter AnvinNov 15, 2005
  4. Junio C HamanoNov 15, 2005
  5. Andreas EricssonNov 15, 2005
  6. Petr BaudisNov 15, 2005
  7. H. Peter AnvinNov 15, 2005
  8. Josef WeidendorferNov 16, 2005
  9. H. Peter AnvinNov 18, 2005
  10. A Large Angry SCMNov 18, 2005
  11. H. Peter AnvinNov 18, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.