# # spec file for package ossp-js # %define pkgname js Name: ossp-js Version: 1.6.20070208 Release: 1.1 Url: ftp://ftp.ossp.org/pkg/lib/js Summary: Mozilla JavaScriptEngine License: BSD-3-Clause Group: Java Source1: ftp://ftp.ossp.org/pkg/lib/js/%{pkgname}-%{version}.tar.gz BuildRequires: libedit-dev BuildRequires: perl BuildRoot: %{_tmppath}/%{name}-%{version}-build %description OSSP js is a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla -- aka JSRef or SpiderMonkey. This distribution provides a smart, stand-alone and portable distribution of Mozilla JavaScript through a build environment based on GNU autoconf, GNU libtool and GNU shtool, including support for easy JavaScript build-time feature set selection (ECMA-3, JS-1.5, JS-1.6), optional CLI line editing support, optional "stdio" based File object support, optional Dynamic Shared Object (DSO) based C extension loading support and JS/Perl bindings. Additionally, the C API in "libjs" contains both the JavaScript engine and the required Sun math library ("fdlibm") and with all internal symbols carefully protected under the "js" namespace. Finally, a js-config(1) utility and a pkg-config(1) specification is provided to allow applications to easily build with the JavaScript C API. %package devel Summary: Library and header file for ossp-js Group: Development/Libraries/Other Requires: %{name} %description devel OSSP js is a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla -- aka JSRef or SpiderMonkey. This distribution provides a smart, stand-alone and portable distribution of Mozilla JavaScript through a build environment based on GNU autoconf, GNU libtool and GNU shtool, including support for easy JavaScript build-time feature set selection (ECMA-3, JS-1.5, JS-1.6), optional CLI line editing support, optional "stdio" based File object support, optional Dynamic Shared Object (DSO) based C extension loading support and JS/Perl bindings. Additionally, the C API in "libjs" contains both the JavaScript engine and the required Sun math library ("fdlibm") and with all internal symbols carefully protected under the "js" namespace. Finally, a js-config(1) utility and a pkg-config(1) specification is provided to allow applications to easily build with the JavaScript C API. %prep %setup -cTq -n %{name}-%{version} -a 1 %build pushd %{pkgname}-%{version} %configure \ CPPFLAGS='-I%{perl_installarchlib}/CORE' \ --prefix=/usr \ --with-editline \ --with-perl make %{?_smp_mflags} popd %install pushd %{pkgname}-%{version} %make_install popd # clean unwanted files %{__rm} -f %{buildroot}%{_libdir}/lib*.la find %{buildroot} -name '.packlist' -exec rm 2>/dev/null {} \; find %{buildroot} -name 'perllocal.pod' -exec rm 2>/dev/null {} \; # delete empty perl folder for _dirname in $(find %{buildroot}%{_libdir}/perl5/%{perl_version} -type d -print | LANG=C sort -r -b -k 1.16 ) do rmdir --ignore-fail-on-non-empty ${_dirname} done %fdupes %{buildroot}%{_prefix} %files %defattr(-,root,root,-) %{_bindir}/js %{_libdir}/libjs.so.1* %{_libdir}/perl5 %files devel %defattr(-,root,root) %{_includedir}/js %{_libdir}/pkgconfig %{_libdir}/libjs.so %{_libdir}/libjs.a %{_bindir}/js-config %{_bindir}/jslint %{_bindir}/jspack %{_datadir} %changelog * Wed Jan 06 2016 holgerbruenjes@gmx.net - first version 1.6-20070208