File slang.spec of Package slang
#
# spec file for package slang (Version 2.1.1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, 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://bugs.opensuse.org/
#
# norootforbuild
Name: slang
License: Artistic License; GPL v2 or later
Group: System/Libraries
Version: 2.1.1
Release: 57
Provides: slang%{version}
AutoReqProv: on
Summary: A Library for Display Control
Url: http://www.jedsoft.org/
Source: ftp://space.mit.edu/pub/davis/slang/v2.0/slang-%{version}.tar.bz2
Source1: slangdoc-2.0.4.tar.bz2
Patch: slang-%{version}.dif
Patch4: slang-%{version}-autoconf.dif
Patch5: slang-%{version}-fsuid.dif
Patch7: slang-%{version}-format.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%package devel
License: Artistic License; GPL v2 or later
Provides: slang:/usr/include/slang.h
Summary: 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 <davis@amy.tch.harvard.edu>
%description devel
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 <davis@amy.tch.harvard.edu>
%prep
%setup -n slang-%{version} -a 1
%patch
%patch4
%patch5
%patch7
%build
mv autoconf/configure.ac .
mv autoconf/aclocal.m4 autoconf/acinclude.m4
#autoheader -I autoconf
aclocal -I autoconf --output=autoconf/aclocal.m4
autoconf -I autoconf
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fstack-protector"
export ELF_CFLAGS="$CFLAGS"
./configure --prefix=/usr --enable-wide-chars \
--libdir=%{_libdir} \
--sysconfdir=/etc \
--mandir=%{_mandir} \
--enable-warnings
make static
make
%install
rm -rf "$RPM_BUILD_ROOT"
mkdir "$RPM_BUILD_ROOT"
make DESTDIR="$RPM_BUILD_ROOT" install install-static install-links
#make runtests
cd doc
ln -s slangdoc.html index.html
cd ../modules
make clean
cd ../slsh
make clean
cd ..
mv slsh examples/
rm -rf $RPM_BUILD_ROOT/usr/share/doc/slang
rm -f /doc/tm/tools/{solarisobjs,i686objs}
%post
%run_ldconfig
%postun
%run_ldconfig
%files
%defattr(-,root,root)
%doc README COPY* *.txt
%{_libdir}/lib*.so.*
/usr/bin/slsh
/etc/slsh.rc
%{_libdir}/slang
%{_mandir}/man1/slsh*
/usr/share/slsh
%files devel
%defattr(-,root,root)
/usr/include/*
%{_libdir}/lib*.a
%{_libdir}/lib*.so
%doc doc/* demo examples modules
%clean
rm -rf "$RPM_BUILD_ROOT"
%changelog
* Fri Jun 27 2008 schwab@suse.de
- Work around autoconf limitation.
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
* Wed Jul 11 2007 nadvornik@suse.cz
- updated to 2.1.1:
* interpreter syntax enhancements
* many bugfixes
- fixed some rpmlint warnings
* Mon May 28 2007 nadvornik@suse.cz
- do not package binaries in documentation directory
* Tue Jan 31 2006 nadvornik@suse.cz
- fixed typo in locale code [#146603]
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 12 2006 nadvornik@suse.cz
- compile with -fstack-protector
* Tue Jan 03 2006 nadvornik@suse.cz
- updated to 2.0.5
- fixed output of multibyte chars to bottom right corner [#134037]
* Mon Oct 17 2005 nadvornik@suse.cz
- fixed filelist
* Thu Oct 13 2005 nadvornik@suse.cz
- updated documentation, specfile fixes
* Tue Oct 11 2005 nadvornik@suse.cz
- updated to 2.0.4
* upstream UTF-8 support
* Wed Feb 16 2005 nadvornik@suse.cz
- fixed segfault in SLsmg_write_nwchars
* Thu Jan 06 2005 nadvornik@suse.cz
- fixed segfault on negative column value
* 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
* Thu Jan 23 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