# # spec file for package ossp-js # # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # %define pkgname js Name: ossp-js Version: 1.6.20070208 Release: 2.33 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros %{perl_requires} %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 the interface of ossp-js Group: Development/Libraries/Other %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} sed -i "s/Makefile.PL/Makefile.PL INSTALLDIRS=vendor OPTIMIZE=\"%{optflags}\"/" Makefile.in %configure \ CPPFLAGS="-I%{perl_archlib}/CORE" \ --with-editline \ --with-perl \ --disable-static make %{?_smp_mflags} popd %install pushd %{pkgname}-%{version} %make_install #%perl_make_install %perl_process_packlist %perl_gen_filelist popd # lean unwanted filew %{__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 {} \; # leere Verzeichnisse entfernen # delete empty perl folder for _dirname in $(find %{buildroot}%{perl_vendorlib}/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* %{perl_vendorlib} %files devel %defattr(-,root,root) %{_includedir}/js %{_libdir}/pkgconfig %{_libdir}/libjs.so %{_bindir}/js-config %{_bindir}/jslint %{_bindir}/jspack %{_datadir} %changelog * Sat Aug 18 2018 holgerbruenjes@gmx.net - rebuild for perl 5.24.1 * Wed Jan 06 2016 holgerbruenjes@gmx.net - first version 1.6-20