[PyKDE] ANNOUNCE: SIP v2.4pre2
John Ross Hunt
bigboote at mediaone.net
Mon Mar 12 14:24:27 GMT 2001
I put the following at the top of my PyQt.spec to determine python's version
on the fly:
%{expand: %%define pyver %(python -c 'import sys; print sys.version' |
cut -c -3)}
And replaced every instance of:
%attr(-,root,root) /usr/lib/python2.0/site-packages/...
with
%attr(-,root,root) /usr/lib/python%{pyver}/site-packages/...
I'm using RPM 3.0.5, but it should work with any RPM 3.x and higher.
Enjoy,
--
John Ross Hunt
bigboote at mediaone.net <mailto:bigboote at mediaone.net>
> On Fri, 9 Mar 2001, Phil Thompson wrote:
>
> >SIP v2.4pre2 is at
> http://www.river-bank.demon.co.uk/software/private/.
> >Apparantly v2.4pre1 wouldn't compile unless you were using Python
> >v2.1b1.
> >
> >PyQt stays at v2.4pre1.
>
> Thanks.
>
> sip compiles and installs just fine. The included file
> 'sip.spec' works ok
> for me too, and creates working rpm files, which is really
> nice. I noticed
> that PyQt does have a PyQt.spec too, and I tried to use it,
> as I prefer to
> have rpm:s if possible.
>
> It compiles ok now (but takes a while on my older P2-333) using the
> 'PyQt.spec' file, but the installation part fails. It assumes
> Python is
> installed in /usr, but the older BeOpen-Python-2.0 rpm:s are
> installed in
> /usr/local. Thus the rpm-making fails in the end at:
>
> + /usr/lib/rpm/brp-compress
> + /usr/lib/rpm/brp-strip
> + /usr/lib/rpm/brp-strip-comment-note
> Processing files: PyQt-2.4pre1-1
> File not found:
> /tmp/PyQt-2.4pre1-root/usr/lib/python2.0/site-packages/eric
> File not found:
> /tmp/PyQt-2.4pre1-root/usr/lib/python2.0/site-packages/libqtcm
> odule-2.4.so
> File not found:
> /tmp/PyQt-2.4pre1-root/usr/lib/python2.0/site-packages/libqtcmodule.la
> File not found:
> /tmp/PyQt-2.4pre1-root/usr/lib/python2.0/site-packages/libqtcmodule.so
> File not found:
> /tmp/PyQt-2.4pre1-root/usr/lib/python2.0/site-packages/qt.py
> File not found:
> /tmp/PyQt-2.4pre1-root/usr/lib/python2.0/site-packages/qt.pyc
> Requires: sip = 2.4pre1
> Processing files: PyQt-devel-2.4pre1-1
> Finding Provides: (using /usr/lib/rpm/find-provides)...
> Finding Requires: (using /usr/lib/rpm/find-requires)...
>
> Apparently the build process will install the files in the
> proper places
> (for me), but the PyQt.spec uses the hardcoded paths. I'll change the
> prefix in PyQt.spec and see what it does. Apparently the
> %files section in
> PyQt.spec should be dynamically generated based on the Python path.
>
> Anyway, thanks for the fixes!
>
> Regards,
> Chakie
>
> --------------------+-----------------------------------------
> ---------------
> Jan 'Chakie' Ekholm | Balrog New Media http://www.balrog.fi/
> Linux Inside | I'm the blue screen of death, nobody
> hears your screams
More information about the PyQt
mailing list