%ifos darwin %define __defattr %defattr(-,root,wheel) %define __soext dylib %else %define __defattr %defattr(-,root,root) %define __soext so %endif Summary: A version of the MIT Athena widget set for X. Name: Xaw3d Version: 1.5 Release: 4b Group: System Environment/Libraries Source: ftp://ftp.x.org/contrib/widgets/Xaw3d/R6.3/Xaw3d-1.3.tar.gz Url: ftp://ftp.x.org/contrib/widgets/Xaw3d/ Patch: Xaw3d-1.1-shlib.patch Patch1: Xaw3d-1.3-glibc.patch Patch2: Xaw3d-1.3-X11R6.3.patch Patch3: xaw3d.patch Patch4: Xaw3d-1.3-multisrc.patch Copyright: MIT Prefix: /usr %ifnos darwin Prereq: fileutils %endif BuildRoot: /var/tmp/Xaw3d-root %description Xaw3d is an enhanced version of the MIT Athena Widget set for the X Window System. Xaw3d adds a three-dimensional look to applications with minimal or no source code changes. You should install Xaw3d if you are using applications which incorporate the MIT Athena widget set and you'd like to incorporate a 3D look into those applications. %package devel Summary: Header files and static libraries for development using Xaw3d. Group: Development/Libraries Requires: Xaw3d %description devel Xaw3d is an enhanced version of the MIT Athena widget set for the X Window System. Xaw3d adds a three-dimensional look to those applications with minimal or no source code changes. Xaw3d-devel includes the header files and static libraries for developing programs that take full advantage of Xaw3d's features. You should install Xaw3d-devel if you are going to develop applications using the Xaw3d widget set. You'll also need to install the Xaw3d package. %prep %setup -q -c cd xc/lib/Xaw3d %patch -p0 ln -s .. X11 %patch1 -p4 %patch2 -p3 %patch3 -p4 %patch4 -p4 %build cd xc/lib/Xaw3d export PATH=/usr/X11R6/bin:$PATH xmkmf %ifarch alpha # alpha was giving internal compiler errors... make CDEBUGFLAGS="" %else make EXTRA_DEFINES='-DARROW_SCROLLBAR -DUSEGRAY' CC='gcc -g' %endif %install rm -rf $RPM_BUILD_ROOT cp -p xc/lib/Xaw3d/README.XAW3D . cd xc/lib/Xaw3d make install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/X11R6/include/X11 ln -s ../Xaw3d $RPM_BUILD_ROOT/usr/X11R6/include/X11 %clean rm -rf $RPM_BUILD_ROOT %ifnos darwin %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %endif %post devel if [ ! -d /usr/X11R6/include/X11/Xaw3d ] ; then rm -f /usr/X11R6/include/X11/Xaw3d ln -sf ../Xaw3d /usr/X11R6/include/X11 fi %triggerpostun -- Xaw3d-devel < 1.3-17 rm -rf /usr/X11R6/include/X11/Xaw3d ln -sf ../Xaw3d /usr/X11R6/include/X11 %files %{__defattr} %doc README.XAW3D %ifos darwin /usr/X11R6/lib/libXaw3d.*.%{__soext} %else /usr/X11R6/lib/libXaw3d.%{__soext}.* %endif %files devel %{__defattr} %doc README.XAW3D /usr/X11R6/lib/libXaw3d.a /usr/X11R6/lib/libXaw3d.%{__soext} /usr/X11R6/include/Xaw3d %ghost /usr/X11R6/include/X11/Xaw3d %changelog * Thu Oct 10 2002 Keisuke Fujii - Release 4b with dylib support built with XFree86-4.1.0.1 - Built on MacOS X Release 10.2 * Thu Oct 11 2001 Keisuke Fujii - Release 4a with dylib support built with XFree86-4.1.0 - Built on MacOS X Release 10.1 * Wed Jun 6 2001 Keisuke Fujii - Release 3a with dylib support built with XFree86-4.1.0 * Sun Apr 22 2001 Keisuke Fujii - 1st release on MacOS X Release 10.0.01 - No dylib yet. * Mon May 22 2000 Keisuke Fujii - fix a bug in MultiSrc.c (multi_src.string held in stack not on heap) - added README.XAW3D to both base and devel packages * Mon May 15 2000 Bill Nottingham - fix unaligned traps on ia64 * Mon May 8 2000 Bernhard Rosenkraenzer - 1.5 * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 21) * Wed Feb 24 1999 Preston Brown - Injected new description and group. * Fri Dec 18 1998 Preston Brown - bumped spec number for initial rh 6.0 build * Fri Nov 06 1998 Preston Brown - added security/update patch from debian (the X11R6.3 patch). Thanks guys. :) * Wed Oct 14 1998 Cristian Gafton - handle the symlink with triggers instead of getting rid of it * Mon Oct 5 1998 Jeff Johnson - remove backward compatible symlink. * Wed May 06 1998 Cristian Gafton - fixed the bad symlink - BuildRoot * Mon Apr 27 1998 Prospector System - translations modified for de, fr, tr * Tue Nov 04 1997 Erik Troan - don't lave an improper return code from %pre * Mon Nov 03 1997 Cristian Gafton - take care of the old location of the Xaw3d includes in case that one exist - updated Prereq: field * Mon Oct 26 1997 Cristian Gafton - minor spec file cleanups * Wed Oct 01 1997 Erik Troan - i18n widec.h patch needs to be applied on all systems * Sun Sep 14 1997 Erik Troan - changed axp check to alpha * Mon Jun 16 1997 Erik Troan - built against glibc