Summary: The shared library for the S-Lang extension language. Name: slang %define version 1.4.4 %define majver 1.4 Version: %{version} Release: 2 Copyright: Artistic Group: System Environment/Libraries Source0: ftp://space.mit.edu/pub/davis/slang/v%{majver}/slang-%{version}.tar.bz2 Source1: ftp://space.mit.edu/pub/davis/slang/v%{majver}/slang%{majver}.3-doc.tar.bz2 Url: ftp://space.mit.edu/pub/davis/slang/ Buildroot: /var/tmp/slang-root Prefix: %{_prefix} %ifarch ia64 %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define DEFCC cc %endif %ifarch ia64 %define stdlib lib/ia64l32 %define liblink ../../.. %else %define stdlib lib %define liblink ../.. %endif %description S-Lang is an interpreted language and a programming library. The S-Lang language was designed so that it can be easily embedded into a program to provide the program with a powerful extension language. The S-Lang library, provided in this package, provides the S-Lang extension language. S-Lang's syntax resembles C, which makes it easy to recode S-Lang procedures in C if you need to. %package devel Summary: The static library and header files for development using S-Lang. Group: Development/Libraries Requires: slang %description devel This package contains the S-Lang extension language static libraries and header files which you'll need if you want to develop S-Lang based applications. Documentation which may help you write S-Lang based applications is also included. Install the slang-devel package if you want to develop applications based on the S-Lang extension language. %prep %setup -q -a 1 %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export CFLAGS="$RPM_OPT_FLAGS" %ifarch ia64 if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS="" fi %endif fi CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=%{_prefix} --includedir=%{_prefix}/include/slang make all %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/include/slang make prefix=$RPM_BUILD_ROOT%{_prefix} install_include_dir=$RPM_BUILD_ROOT%{_prefix}/include/slang install ( cd $RPM_BUILD_ROOT mkdir -p usr/include cd usr/include ln -sf ../..%{prefix}/include/* . cd - mkdir -p usr/%{stdlib} cd usr/%{stdlib} ln -sf %{liblink}%{prefix}/lib/* . ) %clean rm -rf $RPM_BUILD_ROOT %files %{_prefix}/lib/libslang.a /usr/%{stdlib}/libslang.a %files devel %defattr(-,root,root) %doc doc %{_prefix}/include/slang /usr/include/slang %changelog * Mon May 21 2001 Marc Stephenson - Version 1.4.4 * Tue Feb 20 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Tue Mar 7 2000 Jeff Johnson - rebuild for sparc baud rates > 38400. * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 4) * Wed Oct 21 1998 Bill Nottingham - libslang.so goes in -devel * Sun Jun 07 1998 Prospector System - translations modified for de * Sat Jun 6 1998 Jeff Johnson - updated to 1.2.2 with buildroot. * Tue May 05 1998 Prospector System - translations modified for de, fr, tr * Sat Apr 18 1998 Erik Troan - rebuilt to find terminfo in /usr/share * Tue Oct 14 1997 Donnie Barnes - spec file cleanups * Mon Sep 1 1997 Donnie Barnes - upgraded to 0.99.38 (will it EVER go 1.0???) - all patches removed (all appear to be in this version) * Thu Jun 19 1997 Erik Troan - built against glibc