Hi,

When rebuilding qt-1.44-27mdk.src.rpm on my alpha I got the following
error:

======
line 176: Package does not exist: %post qgl -p /sbin/ldconfig

Installing /mirrors/SRPMS/qt-1.44-27mdk.src.rpm
======

I thought I'd check it out, and found a lot of ifarch stuff in the .spec
file. I seems that back in January qgl didn't build correctly on the
alpha.

I decided to remove all the ifarch stuff (except one, for specifying
compiler options) and rebuilt the rpm. I compiled without problems.

How can I test the qgl functionality?

anyway, here is the .diff of the .spec file...

Stefan
--- qt-1.44.spec.orig   Mon Sep  4 21:18:41 2000
+++ qt-1.44.spec        Fri Sep  8 22:05:13 2000
@@ -1,5 +1,5 @@
 %define version 1.44
-%define release 27mdk
+%define release 28mdk
 
 Name: qt
 Summary: Shared library for the Qt GUI toolkit
@@ -29,11 +29,9 @@
 Summary: Development files and documentation for the Qt GUI toolkit
 Group: Development/KDE and QT
 
-%ifarch i386 i486 i586 i686 k6 k7 sparc sparc64
 %package qgl
 Summary: OpenGL extension for Qt
 Group: System/Libraries
-%endif
 
 %package qimgio
 Summary: ImageIO extension for Qt
@@ -61,11 +59,9 @@
 example programs.  See http://www.troll.no for more information about
 Qt, or file:/usr/lib/qt/html/index.html for Qt documentation in HTML.
 
-%ifarch i386 i486 i586 i686 k6 k7 sparc sparc64
 %description qgl
 This package contains OpenGL extension for Qt
 OpenGL extension for Qt
-%endif
 
 %description qimgio
 This package contains ImageIO extension for Qt
@@ -79,12 +75,10 @@
 # (fg) 20000522 i18n patches makes all programs using QPainter::drawText method
 # core dump on Alpha... %ifnarch'ed out for now until the problem is fixed
 #
-%ifnarch alpha
 %patch3 -p1 
 %patch4 -p1
 %patch5 -p1 
 %patch6 -p0
-%endif
 %patch7 -p1
 rm -f include/qt_gif.h.rej
 
@@ -99,7 +93,6 @@
 QTDIR=`/bin/pwd` export QTDIR
 make linux-g++-shared
 make CXX="$CXX"
-%ifarch i386 i486 i586 i686 k6 k7 sparc sparc64
 cd extensions/opengl/src
 # lazy to do patch.
 perl -p -i -e 's|-lMesaGL -lMesaGLU|-lGL -lGLU|g' Makefile
@@ -110,12 +103,6 @@
 #cd ../../xt/src
 #make
 cd ../../..
-%else
-# xt and nsplugin don't compile
-for d in imageio; do
-   (cd extensions/$d/src; make QTDIR=../../..)
-done
-%endif
 
 %install
 rm -fr $RPM_BUILD_ROOT
@@ -129,11 +116,9 @@
 cp lib/libqimgio.so.0.1 $RPM_BUILD_ROOT%{_libdir}
 ln -sf libqimgio.so.0.1 $RPM_BUILD_ROOT%{_libdir}/libqimgio.so.0
 ln -sf libqimgio.so.0 $RPM_BUILD_ROOT%{_libdir}/libqimgio.so
-%ifarch i386 i486 i586 i686 k6 k7 sparc sparc64
 cp lib/libqgl.so.1.0 $RPM_BUILD_ROOT%{_libdir}
 ln -sf libqgl.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libqgl.so.1
 ln -sf libqgl.so.1 $RPM_BUILD_ROOT%{_libdir}/libqgl.so
-%endif
 
 cp -fR man/. $RPM_BUILD_ROOT/%{_mandir}
 mkdir -p $RPM_BUILD_ROOT%{_libdir}/qt $RPM_BUILD_ROOT%{_includedir}/qt 
@@ -198,12 +183,10 @@
 %{_includedir}/qt/
 %{_libdir}/qt/include
 
-%ifarch i386 i486 i586 i686 k6 k7 sparc sparc64
 %files qgl
 %defattr(-,root,root)
 %{_libdir}/libqgl.so*
 %{_libdir}/qt/lib/libqgl.so*
-%endif
 
 %files qimgio
 %defattr(-,root,root)
@@ -211,6 +194,9 @@
 %{_libdir}/qt/lib/libqimgio.so*
 
 %changelog
+* Fri Sep  8 2000 Stefan van der Eijk <[EMAIL PROTECTED]> 1.44-28mdk
+- remove alpha discrimination ;-) (honnestly, it _does_ build)
+
 * Mon Sep  4 2000 Guillaume Cottenceau <[EMAIL PROTECTED]> 1.44-27mdk
 - BM [at last.. maintainer sucks]
 - some symlinks in order to use QTDIR=%{_libdir}/qt in application

Reply via email to