Changes of Revision 6
[-] | Added | js.spec |
x 1
2 +# 3 +# spec file for package js (Version 1.6.20070208) 4 +# 5 +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 10 +# 11 + 12 +# norootforbuild 13 + 14 +Name: js 15 +Version: 1.6.20070208 16 +Release: 0 17 +# 18 +Group: Development/Libraries/C and C++ 19 +License: Mozilla 20 +# 21 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 22 +BuildRequires: readline-devel 23 +# 24 +Url: http://www.ossp.org/pkg/lib/%{name}/ 25 +Source: ftp://ftp.ossp.org/pkg/lib/%{name}/%{name}-%{version}.tar.gz 26 +Patch: js-1.6.20070208_vendor_perl.patch 27 +Patch1: js-1.6.20070208_perl_ldpath.patch 28 +Patch2: js-1.6.20070208_uninitialized-variable.patch 29 +# 30 +Summary: OSSP js - Mozilla JavaScript Engine 31 + 32 +%description 33 +OSSP js is a stand-alone distribution of the JavaScript (JS) 34 +programming language reference implementation from Mozilla -- aka 35 +"JSRef" or "SpiderMonkey". This distribution provides a smart, 36 +stand-alone and portable distribution of Mozilla JavaScript through a 37 +build environment based on GNU autoconf, GNU libtool and GNU shtool, 38 +including support for easy JavaScript build-time feature set selection 39 +(ECMA-3, JS-1.5, JS-1.6), optional CLI line editing support, optional 40 +"stdio" based File object support and JS/Perl bindings. Additionally, 41 +the C API in "libjs" contains both the JavaScript engine and the 42 +required Sun math library ("fdlibm") and with all internal symbols 43 +carefully protected under the "js" namespace. Finally, a js-config(1) 44 +utility and a pkg-config(1) specification is provided to allow 45 +applications to easily build with the JavaScript C API. 46 + 47 + 48 +Authors: 49 +-------- 50 + Ralf S. Engelschall <rse@engelschall.com> 51 + 52 +%package devel 53 +Group: Development/Libaries/C and C++ 54 +Requires: %{name} = %{version} 55 +# 56 +Summary: Development files for OSSP js 57 +%description devel 58 +OSSP js is a stand-alone distribution of the JavaScript (JS) 59 +programming language reference implementation from Mozilla -- aka 60 +"JSRef" or "SpiderMonkey". This distribution provides a smart, 61 +stand-alone and portable distribution of Mozilla JavaScript through a 62 +build environment based on GNU autoconf, GNU libtool and GNU shtool, 63 +including support for easy JavaScript build-time feature set selection 64 +(ECMA-3, JS-1.5, JS-1.6), optional CLI line editing support, optional 65 +"stdio" based File object support and JS/Perl bindings. Additionally, 66 +the C API in "libjs" contains both the JavaScript engine and the 67 +required Sun math library ("fdlibm") and with all internal symbols 68 +carefully protected under the "js" namespace. Finally, a js-config(1) 69 +utility and a pkg-config(1) specification is provided to allow 70 +applications to easily build with the JavaScript C API. 71 + 72 +This package contains the development files for OSSP js. 73 + 74 +Authors: 75 +-------- 76 + Ralf S. Engelschall <rse@engelschall.com> 77 + 78 +%package -n libjs1 79 +Group: Development/Libaries/C and C++ 80 +# 81 +Summary: Shared libraries of the JS package 82 +%description -n libjs1 83 +OSSP js is a stand-alone distribution of the JavaScript (JS) 84 +programming language reference implementation from Mozilla -- aka 85 +"JSRef" or "SpiderMonkey". This distribution provides a smart, 86 +stand-alone and portable distribution of Mozilla JavaScript through a 87 +build environment based on GNU autoconf, GNU libtool and GNU shtool, 88 +including support for easy JavaScript build-time feature set selection 89 +(ECMA-3, JS-1.5, JS-1.6), optional CLI line editing support, optional 90 +"stdio" based File object support and JS/Perl bindings. Additionally, 91 +the C API in "libjs" contains both the JavaScript engine and the 92 +required Sun math library ("fdlibm") and with all internal symbols 93 +carefully protected under the "js" namespace. Finally, a js-config(1) 94 +utility and a pkg-config(1) specification is provided to allow 95 +applications to easily build with the JavaScript C API. 96 + 97 +This package contains the shared libraries. 98 + 99 +Authors: 100 +-------- 101 + Ralf S. Engelschall <rse@engelschall.com> 102 + 103 +%package -n perl-JS 104 +Group: Development/Libaries/Perl 105 +Requires: perl = %{perl_version} 106 +# 107 +Summary: Perl bindings for OSSP js 108 +%description -n perl-JS 109 +OSSP js is a stand-alone distribution of the JavaScript (JS) 110 +programming language reference implementation from Mozilla -- aka 111 +"JSRef" or "SpiderMonkey". This distribution provides a smart, 112 +stand-alone and portable distribution of Mozilla JavaScript through a 113 +build environment based on GNU autoconf, GNU libtool and GNU shtool, 114 +including support for easy JavaScript build-time feature set selection 115 +(ECMA-3, JS-1.5, JS-1.6), optional CLI line editing support, optional 116 +"stdio" based File object support and JS/Perl bindings. Additionally, 117 +the C API in "libjs" contains both the JavaScript engine and the 118 +required Sun math library ("fdlibm") and with all internal symbols 119 +carefully protected under the "js" namespace. Finally, a js-config(1) 120 +utility and a pkg-config(1) specification is provided to allow 121 +applications to easily build with the JavaScript C API. 122 + 123 +This package contains the perl bindings for OSSP js. 124 + 125 +Authors: 126 +-------- 127 + Ralf S. Engelschall <rse@engelschall.com> 128 + 129 +%prep 130 +%setup 131 +%patch 132 +%patch1 133 +%patch2 134 + 135 +%build 136 +export CFLAGS="%{optflags} -fno-strict-aliasing" 137 +%if %suse_version > 1000 138 +export CFLAGS="$CFLAGS -fstack-protector" 139 +%endif 140 +%configure --with-editline --with-dso --with-perl --with-utf8 --disable-static 141 +%{__make} 142 + 143 +%install 144 +%makeinstall 145 +# install missing files. 146 +# without the files you can not build against libjs 147 +%{__install} -m 0644 src/js*.msg src/jsopcode.tbl %{buildroot}%{_includedir}/js/ 148 +%perl_process_packlist 149 +%{__rm} -v %{buildroot}%{_libdir}/libjs.la 150 + 151 +%clean 152 +%{__rm} -rf %{buildroot} 153 + 154 +%post -n libjs1 -p /sbin/ldconfig 155 +%postun -n libjs1 -p /sbin/ldconfig 156 + 157 +%files 158 +%defattr(-,root,root,-) 159 +%doc AUTHORS ChangeLog LINKS README THANKS TODO 160 +%{_bindir}/js 161 +%{_bindir}/jspack 162 +%{_bindir}/jslint 163 +%{_mandir}/man1/js.1* 164 + 165 +%files -n libjs1 166 +%defattr(-,root,root,-) 167 +%{_libdir}/libjs.so.1.0.6 168 +%{_libdir}/libjs.so.1 169 + 170 +%files devel 171 +%defattr(-,root,root,-) 172 +%{_bindir}/js-config 173 +%{_includedir}/js/ 174 +%{_libdir}/pkgconfig/js.pc 175 +%{_libdir}/libjs.so 176 +%{_mandir}/man1/js-config.1* 177 +%{_mandir}/man3/js.3* 178 + 179 +%files -n perl-JS 180 +%defattr(-,root,root,-) 181 +%{perl_vendorarch}/JS.pm 182 +%{perl_vendorarch}/PerlConnect.pm 183 +%dir %{perl_vendorarch}/auto/JS/ 184 +%{perl_vendorarch}/auto/JS/.packlist 185 +%{perl_vendorarch}/auto/JS/JS.bs 186 +%{perl_vendorarch}/auto/JS/JS.so 187 +/var/adm/perl-modules/js 188 + 189 +%changelog 190 |