Name: xforms Version: _VERSION_ Serial: _SERIAL_ Release: _RELEASE_ Copyright: Copyright (c) 1996-2000 by T.C. Zhao and Mark Overmars, ALL RIGHTS RESERVED. URL: http://world.std.com/~xforms Source0: ftp://ncmir.ucsd.edu/pub/xforms/linux-i386/elf/_SOURCE_ Packager: Clive Stubbings Group: X11/Libraries BuildRoot: /tmp/xforms-root ExclusiveArch: i386 ExclusiveOS: Linux Summary: Graphical user interface toolkit for X Window Systems %changelog * Sat Jan 6 2001 CLive Stubbings - Added a defattr to ensure files have root ownership (thanks to Pavel Roskin) * Sun Jun 18 2000 Clive Stubbings - Update for 0.89 * Sat Nov 22 1997 Ximenes Zalteca 0.88-3 - Took a wayward contrib package and mended it; it looks like the i386 package was being built from the SPARC libraries and all sorts of strange things. - Reinstated RedHat's subpackages - Added support for BuildRoot and RPM_OPT_FLAGS %description XForms is a GUI toolkit based on Xlib for X Window Systems. It features a rich set of objects, such as buttons, sliders, and menus etc. integrated into an easy and efficient object/event callback execution model that allows fast and easy construction of X-applications. In addition, the library is extensible and new objects can easily be created and added to the library. %package devel Summary: Header files and libraries needed for development Group: Development/Libraries %description devel Header files and libraries needed to develop applications for the XForms GUI toolkit. %package demos Summary: Demo programs for XForms Group: Development %description demos Demo programs and source for XForms. %prep %setup -n xforms %build _MAKEFLAG_make CCFLAGS="${RPM_OPT_FLAGS}" LDFLAGS="${RPM_OPT_FLAGS} -s" %install mkdir -p "${RPM_BUILD_ROOT}"/usr/lib/xforms/DEMOS/ mkdir -p "${RPM_BUILD_ROOT}"/usr/lib/xforms/FORMS/ mkdir -p "${RPM_BUILD_ROOT}"/usr/X11R6/lib/ mkdir -p "${RPM_BUILD_ROOT}"/usr/X11R6/include/ mkdir -p "${RPM_BUILD_ROOT}"/usr/X11R6/bin/ for i in 1 5 ; do mkdir -p "${RPM_BUILD_ROOT}"/usr/X11R6/man/man$i/ ; done cp -aprf DEMOS/ "${RPM_BUILD_ROOT}"/usr/lib/xforms/ sed -e 's@../FORMS@/usr/X11R6/lib@' -e 's@../IMAGE@/usr/X11R6/lib@' "${RPM_BUILD_ROOT}"/usr/lib/xforms/DEMOS/Imakefile # cp -pf mkconfig.h "${RPM_BUILD_ROOT}"/usr/lib/xforms/ # cp -pf Makefile "${RPM_BUILD_ROOT}"/usr/lib/xforms/ cp -pf fd2ps/fd2ps "${RPM_BUILD_ROOT}"/usr/X11R6/bin/ cp -pf fd2ps/fd2ps.1 "${RPM_BUILD_ROOT}"/usr/X11R6/man/man1/ cp -pf DESIGN/fdesign "${RPM_BUILD_ROOT}"/usr/X11R6/bin/ cp -pf DESIGN/fdesign.1 "${RPM_BUILD_ROOT}"/usr/X11R6/man/man1/ cp -pf FORMS/forms.h "${RPM_BUILD_ROOT}"/usr/X11R6/include/ cp -pf IMAGE/flimage.h "${RPM_BUILD_ROOT}"/usr/X11R6/include/ cp -pf FORMS/libforms.a "${RPM_BUILD_ROOT}"/usr/X11R6/lib/ cp -pf IMAGE/libflimage.a "${RPM_BUILD_ROOT}"/usr/X11R6/lib/ cp -pf FORMS/xforms.5 "${RPM_BUILD_ROOT}"/usr/X11R6/man/man5/ cp -pf FORMS/libforms.so._VERSION_ "${RPM_BUILD_ROOT}"/usr/X11R6/lib/ cp -pf IMAGE/libflimage.so._VERSION_ "${RPM_BUILD_ROOT}"/usr/X11R6/lib/ # cp -pf FORMS/glcanvas.c "${RPM_BUILD_ROOT}"/usr/lib/xforms/FORMS # cp -pf FORMS/image_jpeg.c "${RPM_BUILD_ROOT}"/usr/lib/xforms/FORMS # cp -pf FORMS/image_oquant.c "${RPM_BUILD_ROOT}"/usr/lib/xforms/FORMS ( cd "${RPM_BUILD_ROOT}"/usr/X11R6/lib/ ; ln -sf libforms.so._VERSION_ libforms.so ) ( cd "${RPM_BUILD_ROOT}"/usr/X11R6/lib/ ; ln -sf libflimage.so._VERSION_ libflimage.so ) # ( cd "${RPM_BUILD_ROOT}"/usr/X11R6/man/man5/ ; ln -sf xforms.5 forms.5 ) %post -n xforms ldconfig %postun -n xforms ldconfig %clean cd .. rm -rf xforms rm -rf ${RPM_BUILD_ROOT} %files %defattr(-, root, root) # %attr(0644, root, root) %doc Bugs Changes Copyright Readme %attr(0644, root, root) %doc Changes Copyright Readme %attr(0644, root, root) /usr/X11R6/lib/libforms.so._VERSION_ %attr(0644, root, root) /usr/X11R6/lib/libflimage.so._VERSION_ %attr(0644, root, root) /usr/X11R6/man/man5/xforms.5 /usr/X11R6/lib/libforms.so /usr/X11R6/lib/libflimage.so %files devel %attr(0755, root, root) /usr/X11R6/bin/fdesign %attr(0755, root, root) /usr/X11R6/bin/fd2ps %attr(0644, root, root) /usr/X11R6/man/man1/fd2ps.1 %attr(0644, root, root) /usr/X11R6/man/man1/fdesign.1 %attr(0644, root, root) /usr/X11R6/include/forms.h %attr(0644, root, root) /usr/X11R6/include/flimage.h %attr(0644, root, root) /usr/X11R6/lib/libforms.a %attr(0644, root, root) /usr/X11R6/lib/libflimage.a %attr(0755, root, root) %dir /usr/lib/xforms/FORMS/ # %attr(0644, root, root) /usr/lib/xforms/FORMS/* %files demos %attr(0755, root, root) %dir /usr/lib/xforms/DEMOS/ %attr(- , root, root) /usr/lib/xforms/DEMOS/* # %attr(0644, root, root) /usr/lib/xforms/Makefile # %attr(0644, root, root) /usr/lib/xforms/mkconfig.h