8b5cb8b1 |
Summary: An interpreted language that may be embedded into an application to make the application extensible.
Name: slang |
e8aa7b81 |
Version: 2.3.1a |
4f38b7f4 |
Release: 2%{?dist} |
8b5cb8b1 |
License: GNU General Public License
URL: http://www.jedsoft.org/slang/index.html
Group: Development/Languages |
e8aa7b81 |
Source0: http://www.jedsoft.org/releases/%{name}/old/%{name}-%{version}.tar.bz2
%define sha1 slang=a8ea7f1b5736160a94efb67b137a0f5b9916bdf2 |
8b5cb8b1 |
Vendor: VMware, Inc.
Distribution: Photon |
e8aa7b81 |
BuildRequires: readline-devel |
8b5cb8b1 |
%description
S-Lang is a multi-platform programmer's library designed to allow a developer to create robust multi-platform software. It provides facilities required by interactive applications such as display/screen management, keyboard input, keymaps, and so on. The most exciting feature of the library is the slang interpreter that may be easily embedded into a program to make it extensible. While the emphasis has always been on the embedded nature of the interpreter, it may also be used in a stand-alone fashion through the use of slsh, which is part of the S-Lang distribution.
Unlike many interpreters, the S-Lang interpreter supports all of the native C integer types (signed and unsigned versions of char, short, int, long, and long long), and both single and double precision types, as well as a double precision complex type. Other data types supported by the interpreter include strings, lists, associative arrays (hashes), user-defined structures, and multi-dimensional arrays of any data-type.
The S-Lang interpreter has very strong support for array-based operations making it ideal for numerical applications.
%package devel
Summary: Header and development files for ncurses
Requires: %{name} = %{version}
%description devel
It contains the libraries and header files to create applications
%prep
%setup -q -n %{name}-%{version}
%build
./configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir} \
--with-readline=gnu
make -j1
%install |
e8aa7b81 |
make DESTDIR=%{buildroot} install_doc_dir=%{_docdir}/slang-%{version} \
SLSH_DOC_DIR=%{_docdir}/slang-%{version}/slsh \ |
8b5cb8b1 |
install-all
|
e8aa7b81 |
chmod -v 755 %{buildroot}%{_libdir}/libslang.so.2.3.1 \ |
8b5cb8b1 |
%{buildroot}%{_libdir}/slang/v2/modules/*.so
|
85c433d7 |
%check |
4f38b7f4 |
sed -i "s|test_misc ();|%test_misc ();|g" src/test/posixio.sl
make check |
85c433d7 |
|
8b5cb8b1 |
%files
%defattr(-,root,root)
%{_sysconfdir}/*
%{_libdir}/slang/*
%{_libdir}/libslang.so.2*
%{_bindir}/*
%{_datadir}/*
%files devel
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/libslang.so
%{_libdir}/pkgconfig/*.pc
%changelog |
4f38b7f4 |
* Wed Aug 02 2017 Chang Lee <changlee@vmware.com> 2.3.1a-2
- Skipped %check test cases for pseudo terminal-/dev/pts/* |
e8aa7b81 |
* Thu Apr 13 2017 Vinay Kulkarni <kulkarniv@vmware.com> 2.3.1a-1
- Update to version 2.3.1a
* Tue Oct 04 2016 ChangLee <changlee@vmware.com> 2.3.0-3 |
85c433d7 |
- Modified %check |
c3a3fd12 |
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.3.0-2
- GA - Bump release of all rpms |
82353903 |
* Wed Jan 20 2016 Anish Swaminathan <anishs@vmware.com> 2.3.0-1
- Upgrade version.
* Tue Oct 27 2015 Mahmoud Bassiouny <mbassiouny@vmware.com> 2.2.4-1 |
8b5cb8b1 |
- Initial build. First version |