%define _filter_GLIBC_PRIVATE 1 Summary: The shared library for the S-Lang extension language. Name: slang Version: 1.4.9 Release: 21 License: GPL Group: System Environment/Libraries Source: ftp://space.mit.edu/pub/davis/slang/v1.4/slang-%{version}.tar.bz2 Source2: README.UTF-8 Patch: slang-debian-utf8.patch Patch2: slang-utf8-acs.patch Patch3: slang-1.4.5-utf8-segv.patch Patch4: slang-utf8-fix.patch Patch5: slang-1.4.9-gcc4.patch Patch6: slang-refresh.patch Url: http://www.s-lang.org/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libtool, libtermcap-devel Requires: libtermcap %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 = %{version} Requires: libtermcap-devel %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 -n slang-%{version} -q %patch -p1 -b .utf8 %patch2 -p1 -b .acs %patch3 -p1 -b .segv %patch4 -p1 -b .utf8-fix %patch5 -p1 -b .gcc4 %patch6 -p1 -b .refresh cp %{SOURCE2} . %build perl -p -i -e 's/(ELF_CFLAGS=\"[^\"]*)-O2([^\"]*\".*)/$1'"$RPM_OPT_FLAGS"' $2/gs' configure cp /usr/share/libtool/config.{sub,guess} autoconf %configure --includedir=%{_includedir}/slang make elf all %install rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/slang %makeinstall \ install_lib_dir=${RPM_BUILD_ROOT}%{_libdir} \ install_include_dir=${RPM_BUILD_ROOT}%{_includedir}/slang install-elf chmod 0755 ${RPM_BUILD_ROOT}%{_libdir}/libslang*.so.*.* ln -sf libslang-utf8.so.%{version} ${RPM_BUILD_ROOT}%{_libdir}/libslang-utf8.so.1 ln -sf libslang-utf8.so ${RPM_BUILD_ROOT}%{_libdir}/libslang.so ln -sf libslang-utf8.a ${RPM_BUILD_ROOT}%{_libdir}/libslang.a # remove unpackaged files from the buildroot rm -rf ${RPM_BUILD_ROOT}%{_prefix}/doc %clean rm -rf ${RPM_BUILD_ROOT} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libslang*.so.* %files devel %defattr(-,root,root) %doc doc README.UTF-8 %{_libdir}/libslang*.a %{_libdir}/libslang*.so %{_includedir}/slang %changelog * Sun Oct 16 2005 Florian La Roche - set _filter_GLIBC_PRIVATE * Sun Oct 16 2005 Florian La Roche - add exec perms to shared libs * Mon Sep 5 2005 Petr Raszyk - 1.4.9-19 - One line in the patch 'slang-utf8-acs.ptach' commented out (#138445). * Thu Aug 18 2005 Petr Raszyk - 1.4.9-18 - Patch to resolve the problem with displaying the 'x' character in the latin2 mode (#139127) * Fri Mar 18 2005 Petr Rockai - 1.4.9-17 - Patch to compile with gcc4 by Robert Scheck (#151029). (Weeird, probably on march 2nd the used buildroot wasn't updated with gcc4 yet?). * Wed Mar 02 2005 Petr Rockai - rebuild * Mon Feb 14 2005 Adrian Havill - rebuilt * Sun Aug 1 2004 Alan Cox - fixed requires so slang-devel pulls in libtermcap-devel (#125299) * Tue Jun 15 2004 Elliot Lee - rebuilt * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Fri Dec 5 2003 Jeremy Katz 1.4.9-2 - rebuild to fix libslang-utf8.so.1 symlink * Tue Oct 28 2003 Adrian Havill 1.4.9-1 - big upgrade to 1.4.9 - manually redid partially rotted utf patch for sldisply.c - no longer necessary to chmod the so files - change copyright header to license * Fri Jun 13 2003 Bill Nottingham 1.4.5-18 - fix segfault in slcurses (#97216) * Wed Jun 04 2003 Elliot Lee - rebuilt * Mon Feb 24 2003 Elliot Lee - rebuilt * Fri Feb 21 2003 Jakub Jelinek 1.4.5-15 - for ACS characters, take them as is, not through wcrtomb and assume wcwidth returns 1 for them * Wed Jan 22 2003 Tim Powers - rebuilt * Sat Jan 4 2003 Jeff Johnson 1.4.5-13 - set execute bits on library so that requires are genereted. * Wed Nov 27 2002 Tim Powers 1.4.5-12 - remove unpackaged files from the buildroot - lib64'ize * Wed Jul 24 2002 Bill Nottingham 1.4.5-11 - fix write-before-beginning-of-string in SLsmg_write_nwchars * Tue Jul 9 2002 Bill Nottingham 1.4.5-10 - fix segfault in odd environments * Mon Jul 8 2002 Bill Nottingham 1.4.5-9 - tweak UTF-8 linedrawing patch slightly; add README describing some of the changes - fix a utee/dtee typo * Wed Jun 26 2002 Bill Nottingham 1.4.5-7 - add patch to support ACS linedrawing characters in UTF-8 * Fri Jun 21 2002 Tim Powers - automated rebuild * Wed Jun 12 2002 Bill Nottingham 1.4.5-5 - removed keymap patch (#59171) - added Debian utf8 patch * Thu May 23 2002 Tim Powers - automated rebuild * Tue Mar 5 2002 Bill Nottingham - fix symlink & ia64 fubarness * Mon Mar 4 2002 Bill Nottingham - update to 1.4.5 * Tue Jun 26 2001 Florian La Roche - add link from library major version number * Mon Jun 25 2001 Bill Nottingham - added patch to fix Alt/Meta key handling (originally from mutt, ) * Fri Jun 1 2001 Oliver Paukstadt - forced to use RPM_OPT_FLAGS for ELF_CFLAGS too * Mon Mar 12 2001 Bill Nottingham - update to 1.4.4 * Tue Feb 27 2001 Bill Nottingham - have slang-devel require slang = %%{version} * Tue Aug 29 2000 Bill Nottingham - update to 1.4.2 * Wed Jul 12 2000 Prospector - automatic rebuild * Sat Jun 17 2000 Matt Wilson - added defattr * Sat Jun 10 2000 Bill Nottingham - rebuild, FHS stuff * Fri Apr 28 2000 Bill Nottingham - autoconf fix for ia64 * Mon Apr 24 2000 Bill Nottingham - update to 1.4.1 * Wed Mar 29 2000 Bill Nottingham - fix background color problem with newt * Thu Mar 2 2000 Bill Nottingham - resurrect for the devel tree * 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