Title: Re: [Sisuite-devel] python-xml in systemimager.spec (trunk)
I think the "easiest" way in this case is just to have different requires depending on the distro.  It's ugly, but I think that's almost your only option if you want to build one RPM that fits all...
 
Cheers,
 
Bernard


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

Reply via email to