Sisyphus repository
Last update: 3 july 2020 | SRPMs: 17679 | Visits: 18828975
en ru br
ALT Linux repos
S:2.3.2-alt4
5.0: 2.1.3-alt2
4.1: 2.1.3-alt2
4.0: 2.1.3-alt0.M40.2

Group :: System/Libraries
RPM: slang2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: slang2
Version: 2.1.3
Release: alt0.M40.2

Summary: The shared library for the S-Lang extension language
License: GPL
Group: System/Libraries
Url: http://www.s-lang.org/

Source: ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v2.1/slang-%version.tar.bz2
Source1: README.UTF-8

Patch1: slang-2.1.3-alt-makefile.patch
Patch2: slang-1.4.7-owl-alt-fixes.patch
Patch3: slang-1.4.7-alt-doc.patch
Patch4: slang-1.4.4-deb-utf8.patch.bz2
Patch5: slang-1.4.5-utf8-acs.patch.bz2
Patch6: slang-1.4.5-utf8-fix.patch
Patch7: slang-1.4.5-utf8-segv.patch
Patch8: slang-1.4.9-mdk-utf8-revert_soname.patch.bz2

### debian patches

Patch110: 010_demos_make.patch
Patch120: 020_termcap_emulation.patch
Patch150: 050_add_pseudograhics_chars.patch
Patch190: 090_install_prefix.patch

# Automatically added by buildreq on Wed Mar 26 2008

BuildRequires: libICE-devel libncurses-devel libpcre-devel libpng-devel libX11-devel

%package slsh
Summary: S-Lang shell
Group: System/Libraries

%package -n lib%name
Summary: The shared library for the S-Lang extension language
Group: System/Libraries

%package -n lib%name-devel
Summary: The development environment for S-Lang
Group: Development/C
Requires: lib%name = %version-%release

%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.

%description slsh
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.

This package contains a stand-alone interpreter for scripts written
in the S-Lang language.

%description -n lib%name
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.

%description -n lib%name-devel
This package contains the S-Lang extension language development libraries
and header files which you'll need if you want to develop S-Lang based
applications.

%prep
%setup -q -n slang-%version
%patch1 -p1
#patch2 -p1 ## obsoleted
%patch3 -p1
#patch4 -p1 -b .utf8
#patch5 -p1 -b .utf8-acs
#patch6 -p1 -b .utf8-fix
#patch7 -p1 -b .utf8-segv
#patch8 -p1 -b .utf8-soname

%patch110 -p1
%patch120 -p1
%patch150 -p1
%patch190 -p1
%__subst 's/\(ELF_CFLAGS="[^"]*\)-O2\([^"]*".*\)/\1'"$RPM_OPT_FLAGS"'\2/g' configure

##grep -l -R 'libslang' . | xargs sed -i 's,libslang,libslang2,g'

##grep -l -R '\-lslang' . | xargs sed -i 's,-lslang,-lslang2,g'
##sed -ri '/^THIS_LIB\t/ s,slang,slang2,' src/Makefile.in

%build
export ac_cv_func_snprintf=yes ac_cv_func_vsnprintf=yes
%configure --includedir=%_includedir/slang
%make -C src elf

%install
%__mkdir_p $RPM_BUILD_ROOT%_includedir
%make DESTDIR=$RPM_BUILD_ROOT install-elf

%__chmod a+x $RPM_BUILD_ROOT%_libdir/*.so.*

%files slsh
%doc slsh/doc/html/*
%_sysconfdir/slsh.rc
%_bindir/slsh
%_datadir/slsh
%_man1dir/*

%files -n lib%name
%doc changes.txt COPYING NEWS doc/{README,grammar.txt,text,internal}
%_libdir/*.so.*

%files -n lib%name-devel
%_libdir/*.so
%_includedir/slang

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin