shibboleth-dev - Re: Apache version detection
Subject: Shibboleth Developers
List archive
- From: Ian Young <>
- To:
- Subject: Re: Apache version detection
- Date: Thu, 29 Mar 2007 17:11:04 +0100
- Openpgp: id=EA2882BB
Scott Cantor wrote:
> The issue I had was that whatever it is you do, it affects the spec
> *content*, the "BuildRequires" line. I wasn't sure how much scripting I
> could do for that, so I didn't try. Macros work, but I don't know if you can
> run shell commands.
Poking around it seems that you can, at least in Fedora land. For example:
%define day %(date | cut -c 1-3 -)
BuildRequires: %{day} >= 17
This fails the build saying that that "Thu >= 17 is needed by ...".
Inside the %() it seems to be possible to have a pipe chain and nested
commands using back-ticks. Here's an example I found by googling around:
http://kmymoney2.sourceforge.net/phb/rpm-example.html
The 'distver' macro looks about the level of complexity we'd need,
excluding the need to override it.
-- Ian
- RE: RHEL5 RPM's, (continued)
- RE: RHEL5 RPM's, Scott Cantor, 03/27/2007
- Re: RHEL5 RPM's, Velpi, 03/28/2007
- Apache version detection, Jim Fox, 03/28/2007
- RE: Apache version detection, Scott Cantor, 03/28/2007
- RE: Apache version detection, Jim Fox, 03/28/2007
- RE: Apache version detection, Scott Cantor, 03/28/2007
- RE: Apache version detection, Jim Fox, 03/28/2007
- RE: Apache version detection, Scott Cantor, 03/28/2007
- RE: Apache version detection, Jim Fox, 03/28/2007
- Re: Apache version detection, Ian Young, 03/28/2007
- RE: Apache version detection, Scott Cantor, 03/29/2007
- Re: Apache version detection, Ian Young, 03/29/2007
- RE: Apache version detection, Scott Cantor, 03/29/2007
- RE: Apache version detection, Scott Cantor, 03/28/2007
- RE: RHEL5 RPM's, Scott Cantor, 03/27/2007
Archive powered by MHonArc 2.6.16.