# # spec file for package slang (Version 1.4.9) # # Copyright (c) 2004 SuSE Linux AG, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://www.suse.de/feedback/ # # norootforbuild # neededforbuild # usedforbuild aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv kbd less libacl libattr libgcc libselinux libstdc++ libxcrypt m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch permissions popt procinfo procps psmisc pwdutils rcs readline sed sendmail strace syslogd sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel autoconf automake binutils gcc gdbm gettext libtool perl rpm Name: slang License: GPL, Artistic License Group: System/Libraries Version: 1.4.9 Release: 102 Provides: slang%{version} Autoreqprov: on Summary: A Library for Display Control URL: http://space.mit.edu/~davis/slang Source: ftp://space.mit.edu/pub/davis/slang/v1.4/slang-%{version}.tar.bz2 Source1: slang-%{version}-doc.tar.bz2 Source2: README.UTF-8 Patch: slang-%{version}.dif Patch4: slang-%{version}-autoconf.dif Patch5: slang-%{version}-fsuid.dif Patch6: slang-debian-utf8.patch Patch7: slang-utf8-acs.patch Patch8: slang-utf8-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %package devel Provides: slang:/usr/include/slang.h Summary: A library for display control - development package Group: System/Libraries Requires: %{name} = %{version} %description A library with routines for display access. It is similar to ncurses, but it has its own programming interface. Slang uses the entries in /usr/lib/terminfo. Authors: -------- John E. Davis %description devel Library with routines for display access. Similar to ncurses, but it has its own programming interface. Slang uses the entries in /usr/lib/terminfo. Authors: -------- John E. Davis %prep %setup -n slang-%{version} -a 1 %patch %patch4 %patch5 %patch6 -p1 %patch7 -p1 %patch8 -p1 cp -a %{S:2} . mv autoconf/configure.in . mv autoconf/aclocal.m4 autoconf/acinclude.m4 %{?suse_update_config:%{suse_update_config -f autoconf}} autoheader -I autoconf aclocal -I autoconf --output=autoconf/aclocal.m4 autoconf -I autoconf %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" export ELF_CFLAGS="$CFLAGS" ./configure --prefix=/usr --enable-wide-chars \ --libdir=%{_libdir} --enable-warnings make elf make %install rm -rf "$RPM_BUILD_ROOT" mkdir "$RPM_BUILD_ROOT" make DESTDIR="$RPM_BUILD_ROOT" install install-elf install-links #make runtests cd doc ln -s slangdoc.html index.html rm -rf $RPM_BUILD_ROOT/usr/doc/slang ln -s libslang-utf8.so $RPM_BUILD_ROOT/%{_libdir}/libslang.so ln -s libslang-utf8.a $RPM_BUILD_ROOT/%{_libdir}/libslang.a rm -f /doc/tm/tools/{solarisobjs,i686objs} %post %run_ldconfig %postun %run_ldconfig %files %defattr(-,root,root) %doc README README.UTF-8 COPY* *.txt %{_libdir}/lib*.so.* %files devel %defattr(-,root,root) /usr/include/* %{_libdir}/lib*.*a %{_libdir}/lib*.so %doc doc/* demo examples modules slsh %clean rm -rf "$RPM_BUILD_ROOT" %changelog -n slang * Wed Mar 10 2004 - nadvornik@suse.cz - removed symlinks pointing nowhere [#34927] * Fri Feb 20 2004 - nadvornik@suse.cz - used libdir macro * Wed Feb 18 2004 - sbrabec@suse.cz - Added all available UTF-8 patches from Debian and Redhat. * Tue Feb 10 2004 - nadvornik@suse.cz - compiled with -fno-strict-aliasing * Sat Jan 10 2004 - adrian@suse.de - add %%defattr and %%run_ldconfig * Fri Jul 25 2003 - nadvornik@suse.cz - updated to 1.4.9 * Wed May 28 2003 - nadvornik@suse.cz - remove unpackaged files from buildroot * Thu Feb 13 2003 - nadvornik@suse.cz - updated to 1.4.8 * Mon Jan 13 2003 - nadvornik@suse.cz - updated to 1.4.7 * Mon Sep 23 2002 - nadvornik@suse.cz - removed the utf8 patch [#19941] * Mon Sep 16 2002 - pthomas@suse.de - Check for availability of setfsuid/setfsgid and abort configuration if not found. Include sys/fsuid.h to get setfsuid/setfsgid declared. - Redo the utf8 patch to also define _GNU_SOURCE to get wcwidth declared. - Change configure.in to make the use of autoheader possible. - Make configure use a passed in ELF_CFLAGS. - Remove the unneeded -fno-strength-reduce from CFLAGS and ELF_CFLAGS. - devel package requires base package of same version. * Tue Jul 09 2002 - nadvornik@suse.cz - fixed macro SLSMG_BUILD_CHAR in utf8 patch, it fixes the crash of xjed [bug #16823] * Fri May 31 2002 - nadvornik@suse.cz - updated to 1.4.5 - created devel subpackage [bug #16241] - added html doc * Wed Feb 20 2002 - nadvornik@suse.cz - fixed color handling for tab character * Wed Jan 30 2002 - nadvornik@suse.cz - fixed conversion of control characters to printable form in UTF-8 patch [bug #12894] * Thu Jan 10 2002 - nadvornik@suse.cz - used macros %%{_lib} and %%{_libdir} * Fri Oct 26 2001 - pmladek@suse.cz - fixed displaying of long lines (#11919) * the begin of the visible part of the line is tested now * Wed Jun 13 2001 - schwab@suse.de - Fix use of %%suse_update_config. * Thu Jun 07 2001 - bjacke@suse.de - apply UTF-8 patch from http://www.rano.org/mutt/ * Wed Jun 06 2001 - nadvornik@suse.cz - fixed to compile with new autoconf * Mon Feb 26 2001 - nadvornik@suse.cz - update to 1.4.4 * Mon Oct 09 2000 - nadvornik@suse.cz - fixed Copyright * Fri Sep 15 2000 - nadvornik@suse.cz - update to 1.4.2 - used suse_update_config * Wed Jul 19 2000 - nadvornik@suse.cz - added libslang.so.1 symlink (Bug#: 3545) * Thu May 18 2000 - nadvornik@suse.cz - changed Group tag * Fri Mar 24 2000 - nadvornik@suse.cz - added URL * Mon Mar 13 2000 - nadvornik@suse.cz - upgrade to version 1.4.0 - removed Makefile.Linux - added BuildRoot * Thu Oct 07 1999 - fehr@suse.de - recognize alternat xterm cursor sequences when doing line editing * Mon Sep 13 1999 - bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Wed Jul 21 1999 - fehr@suse.de - changed one patch slightly * Tue Jun 30 1998 - fehr@suse.de - integrate setuid security patches from Alan Cox in dif-file - change to version 1.2.2 * Tue Jun 30 1998 - fehr@suse.de - add security patches from Alan Cox (overflow, setuid, termdir) - add dynamic version of slang library - install documentation to /usr/doc/packages/slang * Wed Jan 22 1997 - florian@suse.de - update to version 0.99-38 * Thu Jan 02 1997 - florian@suse.de - update to version 0.99-37 * Thu Jan 02 1997 - florian@suse.de - update to version 0.99-36 and add bug-fixes from mutt * Thu Jan 02 1997 - florian@suse.de - update to new version 0.99-35