Hi, Here's a small diff for cookers latest cxterm rpm. It didn't compile well on both of my boxes, this should solve it (at least on x86). On the alpha however, there's still some weirdness: + exit 0 Executing: %install + umask 022 + cd /users/stefan/RPM/BUILD + cd cxterm-5.0 + make install DESTDIR=/var/tmp/cxterm installing in ./cxterm... make[1]: Entering directory `/data/users/stefan/RPM/BUILD/cxterm-5.0/cxterm' rm -f main.o gcc -c -O2 -I/usr/X11R6/include -Dlinux -D__alpha__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DHANZI -DUTMP -DUSE_TTY_GROUP -DOSMAJORVERSION=2 -DOSMINORVERSION=2 main.c main.c: In function `main': main.c:1142: invalid use of undefined type `struct ltchars' main.c:1143: invalid use of undefined type `struct ltchars' main.c:1144: invalid use of undefined type `struct ltchars' main.c:1145: invalid use of undefined type `struct ltchars' main.c:1146: invalid use of undefined type `struct ltchars' main.c:1147: invalid use of undefined type `struct ltchars' main.c: In function `spawn': main.c:1833: storage size of `ltc' isn't known main.c:1966: sizeof applied to an incomplete type main.c:2473: sizeof applied to an incomplete type main.c: At top level: main.c:389: storage size of `d_ltc' isn't known make[1]: *** [main.o] Error 1 make[1]: Leaving directory `/data/users/stefan/RPM/BUILD/cxterm-5.0/cxterm' Stefan
--- /users/stefan/RPM/SPECS/cxterm.spec Sat Feb 26 03:47:45 2000 +++ cxterm.spec Sun Feb 27 20:08:06 2000 @@ -1,7 +1,7 @@ Summary: CXterm-5.0, with color patches Name: cxterm Version: 5.0.p3 -Release: 1mdk +Release: 2mdk #Copyright: 1995 BY YONGGUANG ZHANG Copyright: GPL Group: X11/Applications @@ -30,6 +30,7 @@ %patch10 -p1 -b .rh %build +CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" xmkmf make World @@ -49,15 +50,18 @@ /usr/X11R6/bin/cxtermb5 /usr/X11R6/bin/hzimctrl /usr/X11R6/bin/tit2cit -/usr/X11R6/man/man1/cxterm.1x -/usr/X11R6/man/man1/hzimctrl.1x -/usr/X11R6/man/man1/tit2cit.1x -/usr/X11R6/man/man1/cit2tit.1x +/usr/X11R6/man/man1/cxterm.1* +/usr/X11R6/man/man1/hzimctrl.1* +/usr/X11R6/man/man1/tit2cit.1* +/usr/X11R6/man/man1/cit2tit.1* %doc Doc/* /usr/dict /usr/X11R6/lib/X11/app-defaults/CXterm %changelog +* Sun Feb 27 2000 Stefan van der Eijk <[EMAIL PROTECTED]> +- modified .spec file to build correctly + * Sat Feb 26 2000 Jesse Kuang <[EMAIL PROTECTED]> - remove chinese fonts, use zh-pcf(CJK) instead @@ -72,3 +76,6 @@ * Wed Jan 27 1999 Jesse Kuang <[EMAIL PROTECTED]> - fix path to X11R6 + +%clean +rm -rf $RPM_BUILD_ROOT
