MinGW provides and requires automatic generation with RPM 4.9

Panu Matilainen pmatilai at laiskiainen.org
Fri Aug 19 05:26:18 UTC 2011


On 05/19/2011 08:25 PM, Kalev Lember wrote:
> On 05/19/2011 02:19 PM, Panu Matilainen wrote:
>> On 05/19/2011 01:49 PM, Kalev Lember wrote:
>>> This is the contents of the mingw32.attr file:
>>> %__mingw32_provides     %{_rpmconfigdir}/mingw32-find-provides.sh
>>> %__mingw32_requires     %{_rpmconfigdir}/mingw32-find-requires.sh
>>> %__mingw32_magic        ^PE32 executable.* Intel 80386.*, for MS Windows$
>>> %__mingw32_path         ^%{_mingw32_prefix}/.*$
>>
>> Note that this doesn't work quite as you want it to, just yet: in rpm
>> 4.9.0 path and magic are handled as an inclusive or, whereas this (and
>> various other things) needs an and-rule. Adding support for this is
>> technically trivial, just the naming is under consideration:
>> http://lists.rpm.org/pipermail/rpm-maint/2011-May/003022.html
>
> Ah, good catch. I would love to see the "and-rule" in RPM, it would
> certainly make things easier.

Just FWIW, rpm >= 4.9.1.1 (currently in rawhide, updates submitted for 
F15 and F16) supports the magic_and_path flag. Whether you need it or 
not is a another question and up to you, but just thought to let you 
know now that I happened to remember this discussion :)

	- Panu -


More information about the mingw mailing list