%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: 19a Group: System Environment/Libraries Source: ftp://ftp.x.org/contrib/widgets/Xaw3d/R6.3/Xaw3d-%{version}.tar.gz Source1: ftp://ftp.x.org/contrib/widgets/Xaw3d/R6/Xaw3d-1.3.tar.gz Source2: Imakefile 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-static.patch Patch5: Xaw3d-ia64.patch Patch6: Xaw3d-1.5-i18n.patch License: MIT Prefix: /usr %ifnos darwin Prereq: fileutils /sbin/ldconfig %endif BuildRoot: %{_tmppath}/%{name}-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: %{name} = %{version} %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 %ifnarch ia64 mkdir old cd old tar xzf %{SOURCE1} cd .. mv old/xc/lib/Xaw3d xc/lib/Xaw3d6 rm -rf old %endif cd xc/lib/Xaw3d %patch -p0 ln -s .. X11 %patch1 -p4 %patch3 -p4 %patch4 -p0 %patch5 -p4 %patch6 -p4 %ifnarch ia64 cd ../Xaw3d6 %patch -p0 ln -s .. X11 %patch1 -p4 %patch2 -p3 %patch3 -p4 %patch4 -p0 %patch6 -p4 %endif %build cp %{SOURCE2} xc/lib/Xaw3d6 cd xc/lib/Xaw3d export PATH=/usr/X11R6/bin:$PATH xmkmf make CDEBUGFLAGS="${RPM_OPT_FLAGS} -DARROW_SCROLLBAR" %ifnarch ia64 # compat libs cd ../Xaw3d6 xmkmf make %endif %install rm -rf $RPM_BUILD_ROOT cd xc/lib/Xaw3d make install DESTDIR=$RPM_BUILD_ROOT %ifnarch ia64 cd ../Xaw3d6 %ifnos darwin cp -aR libXaw*%{__soext}.* $RPM_BUILD_ROOT/usr/X11R6/%{_lib} %else cp -RPp libXaw*.*.%{__soext} $RPM_BUILD_ROOT/usr/X11R6/%{_lib} %endif %endif ln -s X11/Xaw3d $RPM_BUILD_ROOT/usr/X11R6/include %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel if [ ! -d /usr/X11R6/include/Xaw3d ] ; then rm -f /usr/X11R6/include/Xaw3d ln -sf X11/Xaw3d /usr/X11R6/include fi %pre devel if [ -L /usr/X11R6/include/X11/Xaw3d ] ; then rm -f /usr/X11R6/include/X11/Xaw3d fi %triggerpostun -- Xaw3d-devel < 1.5-5 if [ -d /usr/X11R6/include/Xaw3d ] ; then rm -rf /usr/X11R6/include/Xaw3d ln -sf X11/Xaw3d /usr/X11R6/include fi %files %{__defattr} %ifnos darwin /usr/X11R6/%{_lib}/*.%{__soext}.* %else /usr/X11R6/%{_lib}/*.*.%{__soext} %endif %files devel %{__defattr} /usr/X11R6/%{_lib}/libXaw3d.a /usr/X11R6/%{_lib}/libXaw3d.%{__soext} /usr/X11R6/include/X11/Xaw3d %ghost /usr/X11R6/include/Xaw3d %changelog * Fri Jan 2 2004 Keisuke Fujii 1.5-19a - 1st release on MacOSX 10.3. * Wed Jun 04 2003 Elliot Lee - rebuilt * Wed Jan 22 2003 Tim Powers - rebuilt * Thu Nov 7 2002 han Ngo 1.5-17 - fix some building problems * Thu Sep 5 2002 Preston Brown 1.5-16 - -DARROW_SCROLLBAR for rms * Thu Aug 8 2002 Than Ngo 1.5-15 - Added patch file to fix i18n issue, ynakai@redhat.com * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Tue Feb 26 2002 Than Ngo 1.5-12 - rebuild in new enviroment * Wed Jan 09 2002 Tim Powers - automated rebuild * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Wed Feb 28 2001 Than Ngo - add requires Xaw3d = %%{version} - add prereq /sbin/ldconfig * Tue Oct 10 2000 Than Ngo - fix link which causes faulty update (Bug #17895) * Mon Jul 24 2000 Bill Nottingham - ia64 tweaks * Wed Jul 12 2000 Prospector - automatic rebuild * Mon Jul 10 2000 Bernhard Rosenkraenzer - Restore Xaw3d 1.5 - the addition of the backward compatibility library killed the current one. - get rid of the CDEBUGFLAGS="" hack, the current gcc fixes it * Mon Jul 03 2000 Than Ngo - fix Imakefile to static Xawd3d * Sat Jun 17 2000 Than Ngo - add backward compatibility libXaw3d.so.6 (Bug# 12261) * 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