Hi, Rex -

After I downloaded several of the PyQt-related source RPMs last night, I
ran into problems building them on an x86_64 system.

Here are patches against the RPM spec files for sip3, sip, qscintilla,
and PyQt that cause them all to build, install and run correctly on a
Fedora Core 2 system with an AMD64 CPU.  I've tested the results with a
PyQt-based application I'm working on, and it runs correctly.

(I won't be trying out builds of the rest of kde-redhat, since I don't
use KDE.)

Regards,

        <b
--- PyQt.spec~	2004-09-22 21:47:59.000000000 -0700
+++ PyQt.spec	2004-09-22 22:18:57.000000000 -0700
@@ -87,14 +87,16 @@
 make -C qt %{?_smp_mflags}
 make %{?_smp_mflags}
 
-
 %install
 rm -rf $RPM_BUILD_ROOT
 
 make install DESTDIR=$RPM_BUILD_ROOT
 
 mv examples3 examples
-
+if [ %{_lib} != lib ]; then
+    mkdir -p %{buildroot}/%{_libdir}
+    mv %{buildroot}/usr/lib/python%{python_ver} %{buildroot}/%{_libdir}
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
--- qscintilla.spec~	2004-09-22 21:19:17.000000000 -0700
+++ qscintilla.spec	2004-09-22 21:22:10.000000000 -0700
@@ -18,7 +18,7 @@
 BuildRequires: sed >= 4.0
 BuildRequires: qt-devel >= 1:3.2
 %define qt_ver %(rpm -q --qf '%%{version}' qt-devel | cut -d. -f1,2)
-%define qtdir %(unset QTDIR ||:; source /etc/profile.d/qt.sh 2>/dev/null; echo ${QTDIR:-/usr/lib/qt-3.3} )
+%define qtdir %(unset QTDIR ||:; source /etc/profile.d/qt.sh 2>/dev/null; echo ${QTDIR:-/usr/%{_lib}/qt-3.3} )
 # Redundant?  a little, so what.  -- Rex
 Requires: qt >= 1:%{qt_ver}
 Prereq: %{qtdir}/lib
--- sip3.spec~	2004-09-22 21:17:52.000000000 -0700
+++ sip3.spec	2004-09-22 21:18:09.000000000 -0700
@@ -49,7 +49,7 @@
 %build
 unset QTDIR || : ; . /etc/profile.d/qt.sh
 
-python2 configure.py -l qt-mt 
+python2 configure.py -l qt-mt -d %{python_sitearch}
 
 make %{?_smp_mflags} 
 
--- sip.spec~	2004-09-20 13:27:08.000000000 -0700
+++ sip.spec	2004-09-22 21:16:13.000000000 -0700
@@ -50,7 +50,7 @@
 %build
 unset QTDIR || : ; . /etc/profile.d/qt.sh
 
-python2 configure.py -l qt-mt 
+python2 configure.py -l qt-mt -d %{python_sitearch}
 
 make %{?_smp_mflags} 
 
_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to