Search
j0ke.net Open Build Service
>
Projects
>
OSSP
>
js
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 6
[-]
[+]
Added
js.spec
@@ -0,0 +1,188 @@ +# +# spec file for package js (Version 1.6.20070208) +# +# Copyright (c) 2006 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: js +Version: 1.6.20070208 +Release: 0 +# +Group: Development/Libraries/C and C++ +License: Mozilla +# +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: readline-devel +# +Url: http://www.ossp.org/pkg/lib/%{name}/ +Source: ftp://ftp.ossp.org/pkg/lib/%{name}/%{name}-%{version}.tar.gz +Patch: js-1.6.20070208_vendor_perl.patch +Patch1: js-1.6.20070208_perl_ldpath.patch +Patch2: js-1.6.20070208_uninitialized-variable.patch +# +Summary: OSSP js - Mozilla JavaScript Engine + +%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 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. + + +Authors: +-------- + Ralf S. Engelschall <rse@engelschall.com> + +%package devel +Group: Development/Libaries/C and C++ +Requires: %{name} = %{version} +# +Summary: Development files for OSSP js +%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 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. + +This package contains the development files for OSSP js. + +Authors: +-------- + Ralf S. Engelschall <rse@engelschall.com> + +%package -n libjs1 +Group: Development/Libaries/C and C++ +# +Summary: Shared libraries of the JS package +%description -n libjs1 +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 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. + +This package contains the shared libraries. + +Authors: +-------- + Ralf S. Engelschall <rse@engelschall.com> + +%package -n perl-JS +Group: Development/Libaries/Perl +Requires: perl = %{perl_version} +# +Summary: Perl bindings for OSSP js +%description -n perl-JS +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 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. + +This package contains the perl bindings for OSSP js. + +Authors: +-------- + Ralf S. Engelschall <rse@engelschall.com> + +%prep +%setup +%patch +%patch1 +%patch2 + +%build +export CFLAGS="%{optflags} -fno-strict-aliasing" +%if %suse_version > 1000 +export CFLAGS="$CFLAGS -fstack-protector" +%endif +%configure --with-editline --with-dso --with-perl --with-utf8 --disable-static +%{__make} + +%install +%makeinstall +# install missing files. +# without the files you can not build against libjs +%{__install} -m 0644 src/js*.msg src/jsopcode.tbl %{buildroot}%{_includedir}/js/ +%perl_process_packlist +%{__rm} -v %{buildroot}%{_libdir}/libjs.la + +%clean +%{__rm} -rf %{buildroot} + +%post -n libjs1 -p /sbin/ldconfig +%postun -n libjs1 -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog LINKS README THANKS TODO +%{_bindir}/js +%{_bindir}/jspack +%{_bindir}/jslint +%{_mandir}/man1/js.1* + +%files -n libjs1 +%defattr(-,root,root,-) +%{_libdir}/libjs.so.1.0.6 +%{_libdir}/libjs.so.1 + +%files devel +%defattr(-,root,root,-) +%{_bindir}/js-config +%{_includedir}/js/ +%{_libdir}/pkgconfig/js.pc +%{_libdir}/libjs.so +%{_mandir}/man1/js-config.1* +%{_mandir}/man3/js.3* + +%files -n perl-JS +%defattr(-,root,root,-) +%{perl_vendorarch}/JS.pm +%{perl_vendorarch}/PerlConnect.pm +%dir %{perl_vendorarch}/auto/JS/ +%{perl_vendorarch}/auto/JS/.packlist +%{perl_vendorarch}/auto/JS/JS.bs +%{perl_vendorarch}/auto/JS/JS.so +/var/adm/perl-modules/js + +%changelog