[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] spec: Guess rhel/fedora macros from dist



On 03/16/2011 11:53 AM, Jiri Denemark wrote:
>>
>> # If neither fedora nor rhel was defined, try to guess them from %{dist}
>> %if !0%{?rhel} && !0%{?fedora}
>> %{expand:%(echo "%{?dist}" | sed -ne 's/^\.el\([0-9]\+\).*/%%define rhel
>> \1/p')}
>> %{expand:%(echo "%{?dist}" | sed -ne 's/^\.fc\?\([0-9]\+\).*/%%define
>> fedora \1/p')}
>> %endif
>>
>> Works on RHEL 5, too, since it doesn't use lua.
> 
> Ah, nice. I played with %{expand:} a bit but didn't dedicate it enough time to
> get this far.
> 
> ACK to this version

Pushed.

-- 
Eric Blake   eblake redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]