From: Andrea Righi [mailto:[EMAIL PROTECTED]
Sent: Fri 17/03/2006 05:57
To: Bernard Li
Cc: sisuite-devel@lists.sourceforge.net
Subject: Re: [Sisuite-devel] python-xml in systemimager.spec (trunk)
Bernard Li wrote:
> Andrea:
>
> Red
Hat/Fedora does not provide python-xml RPM, what subrountines do you
>
need from this package and is it the same as PyXML for Red
Hat/Fedora?
>
> It is unfortunate that for RPM, Python does
not have a similar requires
> like Perl, where you can do something like
require Perl(XML::Simple).
>
> Thanks,
>
>
Bernard
Unfortunately it's very hard to detect python modules... we
could
explicitly set a requirement on the path:
BuildRequires: python,
python-devel, %{_libdir}/python/site-packages/xml
but also that doesn't
work, since this is valid for RH only... SuSE puts
the module under
%{_libdir}/python/xml...
Is there a way to implement this check with a
%pre section? in this way
should be easy to check it directly with the python
interpreter...
-Andrea