head 1.107;
access;
symbols
OPENPKG_E1_MP_HEAD:1.32
OPENPKG_E1_MP:1.32
OPENPKG_E1_MP_2_STABLE:1.30.2.2
OPENPKG_E1_FP:1.30.2.2
OPENPKG_2_STABLE_MP:1.36
OPENPKG_2_STABLE_20061018:1.30.2.2
OPENPKG_2_STABLE:1.30.0.2
OPENPKG_CW_FP:1.4;
locks; strict;
comment @-- @;
1.107
date 2009.12.02.18.22.34; author rse; state Exp;
branches;
next 1.106;
commitid b0EmNCsZn9oLrPdu;
1.106
date 2009.11.09.18.34.06; author rse; state Exp;
branches;
next 1.105;
commitid sOEzL6M6JXqyfSau;
1.105
date 2009.11.02.18.31.34; author rse; state Exp;
branches;
next 1.104;
commitid mqWLIrQqvqhDsY9u;
1.104
date 2009.10.28.09.26.45; author rse; state Exp;
branches;
next 1.103;
commitid ktyVM9KrsYqHBh9u;
1.103
date 2009.10.19.20.18.39; author rse; state Exp;
branches;
next 1.102;
commitid Lb1Fk35bjkthvb8u;
1.102
date 2009.10.10.17.58.20; author rse; state Exp;
branches;
next 1.101;
commitid g6g11KZSsEb5117u;
1.101
date 2009.09.19.09.56.47; author rse; state Exp;
branches;
next 1.100;
commitid IaT71oVvm74J1h4u;
1.100
date 2009.09.14.20.04.28; author rse; state Exp;
branches;
next 1.99;
commitid 4wxmVBUeTrI9yG3u;
1.99
date 2009.08.29.08.05.19; author rse; state Exp;
branches;
next 1.98;
commitid Kbd1Dku86wll5z1u;
1.98
date 2009.08.26.17.49.15; author rse; state Exp;
branches;
next 1.97;
commitid J2TiF9kVK1fEpe1u;
1.97
date 2009.06.30.20.20.44; author rse; state Exp;
branches;
next 1.96;
commitid mW7f5wxeUG4f4VTt;
1.96
date 2009.06.25.18.32.35; author rse; state Exp;
branches;
next 1.95;
commitid hCtS3Wgvh0p4EgTt;
1.95
date 2009.06.08.08.13.18; author rse; state Exp;
branches;
next 1.94;
commitid lSqXlF6yjCPuL1Rt;
1.94
date 2009.04.18.13.11.31; author rse; state Exp;
branches;
next 1.93;
commitid 4pHXU27WTIGCZuKt;
1.93
date 2009.04.05.13.07.47; author rse; state Exp;
branches;
next 1.92;
commitid 4QPeE9pwFWu4sPIt;
1.92
date 2009.04.04.07.55.38; author rse; state Exp;
branches;
next 1.91;
commitid EDfyRLOutdJYKFIt;
1.91
date 2009.03.27.10.35.09; author rse; state Exp;
branches;
next 1.90;
commitid LjbAUyy0yFnDTEHt;
1.90
date 2009.03.04.22.01.41; author rse; state Exp;
branches;
next 1.89;
commitid tT4LZbtCef20rLEt;
1.89
date 2008.10.18.18.30.26; author rse; state Exp;
branches;
next 1.88;
commitid kDbUYiOKDAOyF8nt;
1.88
date 2008.10.18.18.26.47; author rse; state Exp;
branches;
next 1.87;
commitid Ti5VNmbihKFiE8nt;
1.87
date 2008.10.02.17.07.22; author rse; state Exp;
branches;
next 1.86;
commitid iymTEQ5DR8qWI4lt;
1.86
date 2008.09.30.21.22.33; author rse; state Exp;
branches;
next 1.85;
commitid eaN64swHZrDtcQkt;
1.85
date 2008.09.25.15.59.55; author rse; state Exp;
branches;
next 1.84;
commitid DGLs4wca7XMKzakt;
1.84
date 2008.09.22.11.45.27; author rse; state Exp;
branches;
next 1.83;
commitid 0Ve3L0TS753rgLjt;
1.83
date 2008.09.16.18.30.25; author rse; state Exp;
branches;
next 1.82;
commitid fiRMAMmtrhlkH1jt;
1.82
date 2008.09.08.18.03.47; author rse; state Exp;
branches;
next 1.81;
commitid sjfWbNYBN2P7OZht;
1.81
date 2008.09.02.17.13.09; author rse; state Exp;
branches;
next 1.80;
commitid S3z5QDJYJ3oIIdht;
1.80
date 2008.08.25.09.48.51; author rse; state Exp;
branches;
next 1.79;
commitid dYVkBclyIcQew9gt;
1.79
date 2008.08.24.07.23.11; author rse; state Exp;
branches;
next 1.78;
commitid QlpCA6p05yMfK0gt;
1.78
date 2008.08.23.21.24.49; author rse; state Exp;
branches;
next 1.77;
commitid tnS6RRXrp0JYqXft;
1.77
date 2008.08.12.15.35.24; author rse; state Exp;
branches;
next 1.76;
commitid SEArNMGBZOG1Rvet;
1.76
date 2008.08.04.17.15.22; author rse; state Exp;
branches;
next 1.75;
commitid 0fhs4LzJ5bHgFudt;
1.75
date 2008.08.02.07.53.55; author rse; state Exp;
branches;
next 1.74;
commitid S5Y8mPt31nPDCbdt;
1.74
date 2008.07.30.16.56.55; author rse; state Exp;
branches;
next 1.73;
commitid D99p0BNm3X5UIQct;
1.73
date 2008.07.26.07.05.22; author rse; state Exp;
branches;
next 1.72;
commitid FIy9UiaKSh7Wzhct;
1.72
date 2008.07.24.20.58.20; author rse; state Exp;
branches;
next 1.71;
commitid 7KSPcAutAioGf6ct;
1.71
date 2008.05.09.05.02.06; author rse; state Exp;
branches;
next 1.70;
commitid GTlSccp0zi95pf2t;
1.70
date 2008.05.08.12.02.37; author rse; state Exp;
branches;
next 1.69;
commitid 4GnlDwIHRvglL92t;
1.69
date 2008.05.07.07.24.00; author rse; state Exp;
branches;
next 1.68;
commitid flyS7olAwlcLf02t;
1.68
date 2008.04.19.08.33.25; author rse; state Exp;
branches;
next 1.67;
commitid Tx78bh2CQ62rdHZs;
1.67
date 2008.04.03.07.47.38; author rse; state Exp;
branches;
next 1.66;
commitid j3qyMXDhKBCCtDXs;
1.66
date 2008.04.02.08.13.16; author rse; state Exp;
branches;
next 1.65;
commitid cOB3BA4v2eLpEvXs;
1.65
date 2008.03.17.09.43.48; author rse; state Exp;
branches;
next 1.64;
commitid D01VVo4JXaamFsVs;
1.64
date 2008.02.09.08.26.19; author rse; state Exp;
branches;
next 1.63;
commitid mDnRsPwIZeSvqHQs;
1.63
date 2008.01.01.14.56.12; author rse; state Exp;
branches;
next 1.62;
commitid B8esaHJHoduuKILs;
1.62
date 2007.12.24.09.10.20; author rse; state Exp;
branches;
next 1.61;
commitid 3kikdwWKL8JgbFKs;
1.61
date 2007.12.22.12.58.42; author rse; state Exp;
branches;
next 1.60;
commitid RRZsQZlNb9LBvqKs;
1.60
date 2007.11.24.18.38.54; author rse; state Exp;
branches;
next 1.59;
commitid 0tijdne5Vlz7iRGs;
1.59
date 2007.11.18.01.57.51; author cs; state Exp;
branches;
next 1.58;
commitid NbUKwxRdRIZEWZFs;
1.58
date 2007.11.06.15.50.47; author cs; state Exp;
branches;
next 1.57;
commitid x7QJp7rrI7YjWwEs;
1.57
date 2007.09.10.05.39.21; author rse; state Exp;
branches;
next 1.56;
commitid mG8l8eBR2Y4ao9xs;
1.56
date 2007.09.05.18.44.49; author rse; state Exp;
branches;
next 1.55;
commitid D2wcdGlK1xcATzws;
1.55
date 2007.08.09.18.07.55; author rse; state Exp;
branches;
next 1.54;
commitid 9f5Gg0PGzFjJy6ts;
1.54
date 2007.07.23.14.52.25; author cs; state Exp;
branches;
next 1.53;
commitid klE30YuWda8y1Uqs;
1.53
date 2007.07.20.20.17.00; author thl; state Exp;
branches;
next 1.52;
commitid yCyWfcoNSNOaUxqs;
1.52
date 2007.06.11.17.40.36; author cs; state Exp;
branches;
next 1.51;
commitid g3Xq0hL8lyZWiwls;
1.51
date 2007.06.09.08.07.44; author rse; state Exp;
branches;
next 1.50;
commitid wdcga3B1pPfpcdls;
1.50
date 2007.06.03.08.16.07; author rse; state Exp;
branches;
next 1.49;
commitid EST6b6X1vlaerrks;
1.49
date 2007.05.28.09.29.05; author rse; state Exp;
branches;
next 1.48;
commitid s8ElCIX4ZGne2Gjs;
1.48
date 2007.05.21.15.54.21; author cs; state Exp;
branches;
next 1.47;
commitid pqJOwsDn6B9loOis;
1.47
date 2007.05.14.17.49.21; author rse; state Exp;
branches;
next 1.46;
commitid hEwgnOHwRJhKfVhs;
1.46
date 2007.05.11.15.00.10; author thl; state Exp;
branches;
next 1.45;
commitid IddRh8WKxvoGpwhs;
1.45
date 2007.05.10.05.54.56; author rse; state Exp;
branches;
next 1.44;
commitid 6c8PbcShvRcDqlhs;
1.44
date 2007.05.09.05.46.32; author rse; state Exp;
branches;
next 1.43;
commitid JxO0DV1ryWHJpdhs;
1.43
date 2007.04.28.20.16.06; author rse; state Exp;
branches;
next 1.42;
commitid YvMGP3Plfp1YzSfs;
1.42
date 2007.04.23.06.58.42; author rse; state Exp;
branches;
next 1.41;
commitid u9KeO35O7ZYnkafs;
1.41
date 2007.04.02.14.51.44; author cs; state Exp;
branches;
next 1.40;
commitid rSew6Z9oiDMvCvcs;
1.40
date 2007.03.30.16.55.10; author rse; state Exp;
branches;
next 1.39;
commitid UnkWPl2kak2Qo8cs;
1.39
date 2007.03.12.14.06.38; author rse; state Exp;
branches;
next 1.38;
commitid avLWVKxGWAwT2O9s;
1.38
date 2007.02.24.16.12.38; author rse; state Exp;
branches;
next 1.37;
commitid Q7Y9dixC4jE0gL7s;
1.37
date 2007.02.22.06.25.45; author cs; state Exp;
branches;
next 1.36;
commitid cdJRZLAJojLE4s7s;
1.36
date 2007.02.13.07.28.22; author cs; state Exp;
branches;
next 1.35;
commitid cCsQNkDRh2q4Ii6s;
1.35
date 2007.02.12.16.20.05; author cs; state Exp;
branches;
next 1.34;
commitid O5cQ5Aeo44TtGd6s;
1.34
date 2007.02.08.15.01.02; author rse; state Exp;
branches;
next 1.33;
commitid ei4rMflku4SinH5s;
1.33
date 2007.02.08.09.45.05; author rse; state Exp;
branches;
next 1.32;
commitid O3t8o8wGL1oWCF5s;
1.32
date 2007.01.01.17.38.53; author rse; state Exp;
branches;
next 1.31;
commitid BicZD6VUl7GuqP0s;
1.31
date 2006.11.09.16.46.44; author rse; state Exp;
branches;
next 1.30;
commitid ver9sMAs6cbWS0Ur;
1.30
date 2006.10.13.17.29.08; author thl; state Exp;
branches
1.30.2.1;
next 1.29;
commitid q5GSxzsSDX29XxQr;
1.29
date 2006.10.12.19.54.30; author rse; state Exp;
branches;
next 1.28;
commitid BLdmxGQ0kCO9PqQr;
1.28
date 2006.08.22.06.33.04; author rse; state Exp;
branches;
next 1.27;
commitid iLJ5b2sAGonQ1OJr;
1.27
date 2006.08.20.16.02.37; author rse; state Exp;
branches;
next 1.26;
commitid x2uXg1nZ89TcfBJr;
1.26
date 2006.08.20.15.42.27; author rse; state Exp;
branches;
next 1.25;
commitid mIbak5hm9wIj8BJr;
1.25
date 2006.08.03.13.33.05; author rse; state Exp;
branches;
next 1.24;
commitid W4sVsoHQsL7OXoHr;
1.24
date 2006.07.31.18.17.50; author rse; state Exp;
branches;
next 1.23;
commitid Xu5CKv7cdDDsD2Hr;
1.23
date 2006.07.30.08.14.51; author rse; state Exp;
branches;
next 1.22;
commitid uyieN8nGdulCkRGr;
1.22
date 2006.07.29.18.15.14; author rse; state Exp;
branches;
next 1.21;
commitid MMvWIUsWhypzGMGr;
1.21
date 2006.07.29.12.31.18; author rse; state Exp;
branches;
next 1.20;
commitid 1DfBNLA0a4BzMKGr;
1.20
date 2006.07.28.14.28.44; author rse; state Exp;
branches;
next 1.19;
commitid 5WZNxoUsqyoRsDGr;
1.19
date 2006.07.24.20.42.11; author rse; state Exp;
branches;
next 1.18;
commitid 6Wtv1RJdKVZWE9Gr;
1.18
date 2006.07.23.13.14.38; author rse; state Exp;
branches;
next 1.17;
commitid iX0NNfSLKkkpdZFr;
1.17
date 2006.07.23.12.39.31; author rse; state Exp;
branches;
next 1.16;
commitid LCFCsk8Soplm1ZFr;
1.16
date 2006.07.16.07.31.55; author rse; state Exp;
branches;
next 1.15;
commitid Pdc37xMLe6KMx3Fr;
1.15
date 2006.06.29.17.36.18; author rse; state Exp;
branches;
next 1.14;
commitid rJiM7lj8usQZqVCr;
1.14
date 2006.06.29.07.19.25; author rse; state Exp;
branches;
next 1.13;
commitid kHxRMxB9HCsn1SCr;
1.13
date 2006.06.29.07.04.10; author rse; state Exp;
branches;
next 1.12;
commitid KsGMwIDYCgt8WRCr;
1.12
date 2006.06.14.07.17.03; author rse; state Exp;
branches;
next 1.11;
commitid 74qKZ7HUtjDruWAr;
1.11
date 2006.06.06.13.08.14; author rse; state Exp;
branches;
next 1.10;
commitid JSPwiDYlNWmRGWzr;
1.10
date 2006.03.06.21.51.48; author rse; state Exp;
branches;
next 1.9;
commitid I4Ex2OMglUlQxaor;
1.9
date 2006.01.29.21.19.32; author rse; state Exp;
branches;
next 1.8;
commitid inWAMM0ihx0wwxjr;
1.8
date 2006.01.01.13.15.07; author rse; state Exp;
branches;
next 1.7;
commitid otZG8yKMCw1JFTfr;
1.7
date 2005.10.25.16.20.26; author rse; state Exp;
branches;
next 1.6;
commitid WihhQubX6w1eXa7r;
1.6
date 2005.10.25.06.39.40; author rse; state Exp;
branches;
next 1.5;
1.5
date 2005.03.24.11.19.09; author rse; state Exp;
branches;
next 1.4;
1.4
date 2005.01.01.10.50.54; author rse; state Exp;
branches;
next 1.3;
1.3
date 2004.06.27.12.01.11; author rse; state Exp;
branches;
next 1.2;
1.2
date 2004.06.27.11.07.41; author rse; state Exp;
branches;
next 1.1;
1.1
date 2004.06.27.10.25.40; author rse; state Exp;
branches;
next ;
1.30.2.1
date 2006.10.13.17.29.08; author rse; state dead;
branches;
next 1.30.2.2;
commitid iZxwRSmmWscPXUQr;
1.30.2.2
date 2006.10.16.14.51.28; author rse; state Exp;
branches;
next 1.30.2.3;
commitid iZxwRSmmWscPXUQr;
1.30.2.3
date 2007.02.21.18.19.15; author rse; state Exp;
branches;
next ;
commitid is9oAElvmOXp3o7s;
desc
@@
1.107
log
@modifying package: js-1.6.20070208 20091109 -> 20091202
@
text
@##
## js.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2009 OpenPKG Foundation e.V.
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package version
%define V_js 1.6.20070208
%define V_javascript 1.14
%define V_javascript_spidermonkey 0.19
%define V_javascript_squish 0.07
%define V_javascript_code 0.08
%define V_javascript_jslint 0.06
%define V_javascript_engine 0.042
%define V_jsmin 20080803
%define V_jsapigen 0.4
# package information
Name: js
Summary: Mozilla JavaScript (JS)
URL: http://www.mozilla.org/js/
Vendor: Brendan Eich et al.
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: PLUS
Group: Language
License: MPL/GPL/LGPL
Version: %{V_js}
Release: 20091202
# package options
%option with_file yes
%option with_dso yes
%option with_jsapigen no
%option with_perl no
%option with_editline no
%option with_utf8 no
# list of sources
Source0: ftp://ftp.ossp.org/pkg/lib/js/js-%{V_js}.tar.gz
Source1: http://www.cpan.org/modules/by-authors/id/C/CL/CLAESJAC/JavaScript-%{V_javascript}.tar.gz
Source2: http://www.cpan.org/modules/by-module/JavaScript/JavaScript-SpiderMonkey-%{V_javascript_spidermonkey}.tar.gz
Source3: http://www.cpan.org/modules/by-module/JavaScript/JavaScript-Squish-%{V_javascript_squish}.tar.gz
Source4: http://www.cpan.org/modules/by-module/JavaScript/JavaScript-Code-%{V_javascript_code}.tar.gz
Source5: http://www.cpan.org/modules/by-module/JavaScript/JavaScript-JSLint-%{V_javascript_jslint}.tar.gz
Source6: http://www.cpan.org/modules/by-module/JavaScript/JE-%{V_javascript_engine}.tar.gz
Source7: http://switch.dl.sourceforge.net/jsapigen/jsapigen-%{V_jsapigen}.tar.gz
Source8: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/jsmin/jsmin-%{V_jsmin}.c
Patch0: js.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make
PreReq: OpenPKG, openpkg >= 20040130
%if "%{with_perl}" == "yes"
BuildPreReq: perl, perl-openpkg
PreReq: perl
%endif
%if "%{with_editline}" == "yes"
BuildPreReq: editline
PreReq: editline
%endif
%if "%{with_jsapigen}" == "yes"
BuildPreReq: flex, bison
%endif
AutoReq: no
AutoReqProv: no
%description
This is the JavaScript (JS) reference implementation in C
from Mozilla, aka JSRef or SpiderMonkey. JavaScript is the
Netscape-developed object scripting language used in millions of web
pages and server applications worldwide. Netscape's JavaScript is a
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting
language. This package is based on the OSSP js distribution of
Mozilla JavaScript and also optionally provides Perl bindings.
%track
prog js = {
version = %{V_js}
url = ftp://ftp.ossp.org/pkg/lib/js/
regex = js-(__VER__)\.tar\.gz
}
prog js:JavaScript = {
version = %{V_javascript}
url = http://www.cpan.org/modules/by-authors/id/C/CL/CLAESJAC/
regex = JavaScript-(__VER__)\.tar\.gz
}
prog js:JavaScript-SpiderMonkey = {
version = %{V_javascript_spidermonkey}
url = http://www.cpan.org/modules/by-module/JavaScript/
regex = JavaScript-SpiderMonkey-(__VER__)\.tar\.gz
}
prog js:JavaScript-Squish = {
version = %{V_javascript_squish}
url = http://www.cpan.org/modules/by-module/JavaScript/
regex = JavaScript-Squish-(__VER__)\.tar\.gz
}
prog js:JavaScript-Code = {
version = %{V_javascript_code}
url = http://www.cpan.org/modules/by-module/JavaScript/
regex = JavaScript-Code-(__VER__)\.tar\.gz
}
prog js:JavaScript-JSLint = {
version = %{V_javascript_jslint}
url = http://www.cpan.org/modules/by-module/JavaScript/
regex = JavaScript-JSLint-(__VER__)\.tar\.gz
}
prog js:JavaScript-Engine = {
version = %{V_javascript_engine}
url = http://www.cpan.org/modules/by-module/JavaScript/
regex = JE-(__VER__)\.tar\.gz
}
prog js:jsapigen = {
version = %{V_jsapigen}
url = http://sourceforge.net/projects/jsapigen/files/
regex = jsapigen-(__VER__)\.tar\.gz
}
prog js:jsmin = {
version = %{V_jsmin}
url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/jsmin/
regex = jsmin-(__VER__)\.c
}
%prep
%setup -q -c
%setup -q -D -T -a 1
%setup -q -D -T -a 2
%setup -q -D -T -a 3
%setup -q -D -T -a 4
%setup -q -D -T -a 5
%setup -q -D -T -a 6
%setup -q -D -T -a 7
%patch -p0
%build
# build components
%if "%{with_perl}" == "yes"
%{l_prefix}/bin/perl-openpkg prepare
%endif
( cd js-%{V_js}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
GREP="grep" \
./configure \
--prefix=%{l_prefix} \
--mandir=%{l_prefix}/man \
%if "%{with_perl}" == "yes"
--with-perl=%{l_prefix}/bin/perl \
%endif
%if "%{with_editline}" == "yes"
--with-editline=%{l_prefix} \
%endif
%if "%{with_file}" != "yes"
--without-file \
%endif
%if "%{with_dso}" == "yes"
--with-dso \
%endif
%if "%{with_utf8}" == "yes"
--with-utf8 \
%endif
--disable-shared
%{l_make} %{l_mflags}
) || exit $?
# build add-on tool "jsmin"
%{l_cc} -o jsmin %{SOURCE jsmin-%{V_jsmin}.c}
# build add-on tool "jsapigen"
%if "%{with_jsapigen}" == "yes"
( cd jsapigen-%{V_jsapigen}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
GREP="grep" \
./configure \
--prefix=%{l_prefix} \
--mandir=%{l_prefix}/man
%{l_make} %{l_mflags}
) || exit $?
%endif
%if "%{with_perl}" == "yes"
# build add-on Perl bindings
( cd JavaScript-%{V_javascript}
export JS_LIB="../js-%{V_js}/.libs"
export JS_INC="../js-%{V_js}/src"
%if "%{with_utf8}" == "yes"
export JS_UTF8="1"
%endif
%{l_prefix}/bin/perl-openpkg configure build
) || exit $?
( cd JavaScript-SpiderMonkey-%{V_javascript_spidermonkey}
%{l_shtool} subst \
-e 's;\.\./js/src;../js-%{V_js}/src;' \
-e 's;\.\./js/.libs;../js-%{V_js}/.libs;' \
Makefile.PL
%{l_prefix}/bin/perl-openpkg configure build
) || exit $?
( cd JavaScript-Squish-%{V_javascript_squish}
%{l_prefix}/bin/perl-openpkg configure build
) || exit $?
( cd JavaScript-Code-%{V_javascript_code}
%{l_prefix}/bin/perl-openpkg configure build
) || exit $?
( cd JavaScript-JSLint-%{V_javascript_jslint}
%{l_prefix}/bin/perl-openpkg configure build
) || exit $?
( cd JE-%{V_javascript_engine}
%{l_prefix}/bin/perl-openpkg configure build
) || exit $?
%endif
%install
# create installation hierarchy
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/include/js \
$RPM_BUILD_ROOT%{l_prefix}/lib \
$RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig
# install vendor components
( cd js-%{V_js}
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
) || exit $?
# install add-on tool "jsmin"
%{l_shtool} install -c -s -m 755 \
jsmin $RPM_BUILD_ROOT%{l_prefix}/bin/
# install add-on tool "jsapigen"
%if "%{with_jsapigen}" == "yes"
%{l_shtool} install -c -s -m 755 \
jsapigen-%{V_jsapigen}/src/jsapigen \
$RPM_BUILD_ROOT%{l_prefix}/bin/
%endif
%if "%{with_perl}" == "yes"
# install add-on Perl bindings
( cd JavaScript-%{V_javascript}
%{l_prefix}/bin/perl-openpkg install
) || exit $?
( cd JavaScript-SpiderMonkey-%{V_javascript_spidermonkey}
%{l_prefix}/bin/perl-openpkg install
) || exit $?
( cd JavaScript-Squish-%{V_javascript_squish}
%{l_prefix}/bin/perl-openpkg install
) || exit $?
( cd JavaScript-Code-%{V_javascript_code}
%{l_prefix}/bin/perl-openpkg install
) || exit $?
( cd JavaScript-JSLint-%{V_javascript_jslint}
mv $RPM_BUILD_ROOT%{l_prefix}/bin/jslint $RPM_BUILD_ROOT%{l_prefix}/bin/jslint-orig
%{l_prefix}/bin/perl-openpkg install
mv $RPM_BUILD_ROOT%{l_prefix}/bin/jslint $RPM_BUILD_ROOT%{l_prefix}/bin/jslint-perl
mv $RPM_BUILD_ROOT%{l_prefix}/bin/jslint-orig $RPM_BUILD_ROOT%{l_prefix}/bin/jslint
) || exit $?
( cd JE-%{V_javascript_engine}
%{l_prefix}/bin/perl-openpkg install
) || exit $?
%endif
%if "%{with_perl}" == "yes"
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
%else
>perl-openpkg-files
%endif
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} `cat perl-openpkg-files`
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
@
1.106
log
@modifying package: js-1.6.20070208 20091102 -> 20091109
@
text
@d26 1
a26 1
%define V_javascript 1.12
d46 1
a46 1
Release: 20091109
@
1.105
log
@modifying package: js-1.6.20070208 20091028 -> 20091102
@
text
@d31 1
a31 1
%define V_javascript_engine 0.041
d46 1
a46 1
Release: 20091102
@
1.104
log
@modifying package: js-1.6.20070208 20091019 -> 20091028
@
text
@d31 1
a31 1
%define V_javascript_engine 0.040
d46 1
a46 1
Release: 20091028
@
1.103
log
@modifying package: js-1.6.20070208 20091010 -> 20091019
@
text
@d31 1
a31 1
%define V_javascript_engine 0.039
d46 1
a46 1
Release: 20091019
@
1.102
log
@modifying package: js-1.6.20070208 20090919 -> 20091010
@
text
@d31 1
a31 1
%define V_javascript_engine 0.038
d46 1
a46 1
Release: 20091010
@
1.101
log
@modifying package: js-1.6.20070208 20090914 -> 20090919
@
text
@d31 1
a31 1
%define V_javascript_engine 0.037
d46 1
a46 1
Release: 20090919
@
1.100
log
@modifying package: js-1.6.20070208 20090829 -> 20090914
@
text
@d31 1
a31 1
%define V_javascript_engine 0.036
d46 1
a46 1
Release: 20090914
@
1.99
log
@modifying package: js-1.6.20070208 20090826 -> 20090829
@
text
@d31 1
a31 1
%define V_javascript_engine 0.035
d46 1
a46 1
Release: 20090829
@
1.98
log
@modifying package: js-1.6.20070208 20090625 -> 20090826
@
text
@d31 1
a31 1
%define V_javascript_engine 0.034
d46 1
a46 1
Release: 20090826
@
1.97
log
@switch to the new SourceForge.net website functionality where we can find all files (again)
@
text
@d31 1
a31 1
%define V_javascript_engine 0.033
d46 1
a46 1
Release: 20090625
@
1.96
log
@modifying package: js-1.6.20070208 20090608 -> 20090625
@
text
@d134 1
a134 1
url = http://prdownloads.sourceforge.net/jsapigen/
@
1.95
log
@modifying package: js-1.6.20070208 20090405 -> 20090608
@
text
@d31 1
a31 1
%define V_javascript_engine 0.032
d46 1
a46 1
Release: 20090608
@
1.94
log
@bump years in copyright messages
@
text
@d33 1
a33 1
%define V_jsapigen 0.3
d46 1
a46 1
Release: 20090405
@
1.93
log
@modifying package: js-1.6.20070208 20090404 -> 20090405
@
text
@d3 1
a3 1
## Copyright (c) 2000-2008 OpenPKG Foundation e.V.
@
1.92
log
@modifying package: js-1.6.20070208 20090327 -> 20090404
@
text
@d26 1
a26 1
%define V_javascript 1.11
d46 1
a46 1
Release: 20090404
@
1.91
log
@modifying package: js-1.6.20070208 20090304 -> 20090327
@
text
@d31 1
a31 1
%define V_javascript_engine 0.031
d46 1
a46 1
Release: 20090327
@
1.90
log
@modifying package: js-1.6.20070208 20081018 -> 20090304
@
text
@d33 1
a33 1
%define V_jsapigen 0.2.1
d46 1
a46 1
Release: 20090304
@
1.89
log
@modifying package: js-1.6.20070208 20081018 again
@
text
@d31 1
a31 1
%define V_javascript_engine 0.030
d46 1
a46 1
Release: 20081018
@
1.88
log
@modifying package: js-1.6.20070208 20081002 -> 20081018
@
text
@d31 1
a31 1
%define V_javascript_engine 0.029
@
1.87
log
@modifying package: js-1.6.20070208 20080930 -> 20081002
@
text
@d33 1
a33 1
%define V_jsapigen 0.2.0
d46 1
a46 1
Release: 20081002
@
1.86
log
@modifying package: js-1.6.20070208 20080925 -> 20080930
@
text
@d31 1
a31 1
%define V_javascript_engine 0.028
d46 1
a46 1
Release: 20080930
@
1.85
log
@modifying package: js-1.6.20070208 20080922 -> 20080925
@
text
@d31 1
a31 1
%define V_javascript_engine 0.027
d46 1
a46 1
Release: 20080925
@
1.84
log
@modifying package: js-1.6.20070208 20080916 -> 20080922
@
text
@d31 1
a31 1
%define V_javascript_engine 0.026
d46 1
a46 1
Release: 20080922
@
1.83
log
@modifying package: js-1.6.20070208 20080908 -> 20080916
@
text
@d31 1
a31 1
%define V_javascript_engine 0.025
d46 1
a46 1
Release: 20080916
@
1.82
log
@modifying package: js-1.6.20070208 20080902 -> 20080908
@
text
@d31 1
a31 1
%define V_javascript_engine 0.024
d46 1
a46 1
Release: 20080908
@
1.81
log
@modifying package: js-1.6.20070208 20080825 -> 20080902
@
text
@d33 1
a33 1
%define V_jsapigen 0.1.0
d46 1
a46 1
Release: 20080902
@
1.80
log
@optionally add jsapigen tool
@
text
@d46 1
a46 1
Release: 20080825
@
1.79
log
@modifying package: js-1.6.20070208 20080823 -> 20080824
@
text
@d33 1
d46 1
a46 1
Release: 20080824
d51 1
d64 2
a65 1
Source7: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/jsmin/jsmin-%{V_jsmin}.c
d81 3
d132 5
d151 1
d185 1
a185 1
# build add-on tool
d188 13
d247 1
a247 1
# install add-on tool
d251 7
@
1.78
log
@modifying package: js-1.6.20070208 20080812 -> 20080823
@
text
@d26 1
a26 1
%define V_javascript 1.10
d45 1
a45 1
Release: 20080823
@
1.77
log
@modifying package: js-1.6.20070208 20080804 -> 20080812
@
text
@d32 1
a32 1
%define V_jsmin 20071205
d45 1
a45 1
Release: 20080812
@
1.76
log
@modifying package: js-1.6.20070208 20080802 -> 20080804
@
text
@d26 1
a26 1
%define V_javascript 1.09
d45 1
a45 1
Release: 20080804
@
1.75
log
@do not overwrite original jslint(1)
@
text
@d26 1
a26 1
%define V_javascript 1.08
d45 1
a45 1
Release: 20080802
@
1.74
log
@modifying package: js-1.6.20070208 20080726 -> 20080730
@
text
@d45 1
a45 1
Release: 20080730
d241 1
d243 2
@
1.73
log
@modifying package: js-1.6.20070208 20080724 -> 20080726
@
text
@d31 1
a31 1
%define V_javascript_engine 0.023
d45 1
a45 1
Release: 20080726
@
1.72
log
@modifying package: js-1.6.20070208 20080509 -> 20080724
@
text
@d31 1
a31 1
%define V_javascript_engine 0.022
d45 1
a45 1
Release: 20080724
@
1.71
log
@modifying package: js-1.6.20070208 20080508 -> 20080509
@
text
@d31 1
a31 1
%define V_javascript_engine 0.021
d45 1
a45 1
Release: 20080509
@
1.70
log
@consistently use 'vendor' instead of 'site' install directory for Perl modules
@
text
@d26 1
a26 1
%define V_javascript 1.07
d45 1
a45 1
Release: 20080508
@
1.69
log
@modifying package: js-1.6.20070208 20080419 -> 20080507
@
text
@d45 1
a45 1
Release: 20080507
@
1.68
log
@modifying package: js-1.6.20070208 20080403 -> 20080419
@
text
@d26 1
a26 1
%define V_javascript 1.06
d45 1
a45 1
Release: 20080419
@
1.67
log
@fix building Perl modules
@
text
@d26 1
a26 1
%define V_javascript 1.05
d45 1
a45 1
Release: 20080403
@
1.66
log
@modifying package: js-1.6.20070208 20080317 -> 20080402
@
text
@d45 1
a45 1
Release: 20080402
@
1.65
log
@modifying package: js-1.6.20070208 20080209 -> 20080317
@
text
@d26 1
a26 1
%define V_javascript 1.04
d45 1
a45 1
Release: 20080317
@
1.64
log
@modifying package: js-1.6.20070208 20080101 -> 20080209
@
text
@d28 1
a28 1
%define V_javascript_squish 0.05
d45 1
a45 1
Release: 20080209
@
1.63
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d31 1
a31 1
%define V_javascript_engine 0.020
d45 1
a45 1
Release: 20080101
@
1.62
log
@modifying package: js-1.6.20070208 20071222 -> 20071224
@
text
@d3 1
a3 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d45 1
a45 1
Release: 20071224
@
1.61
log
@modifying package: js-1.6.20070208 20071124 -> 20071222
@
text
@d32 1
a32 1
%define V_javascript_engine 0.019
d46 1
a46 1
Release: 20071222
@
1.60
log
@modifying package: js-1.6.20070208 20071118 -> 20071124
@
text
@d33 1
a33 1
%define V_jsmin 20070522
d46 1
a46 1
Release: 20071124
@
1.59
log
@modifying package: js-1.6.20070208 20071106 -> 20071118
@
text
@d32 1
a32 1
%define V_javascript_engine 0.018
d46 1
a46 1
Release: 20071118
@
1.58
log
@modifying package: js-1.6.20070208 20070910 -> 20071106
@
text
@d27 1
a27 1
%define V_javascript 1.03
d46 1
a46 1
Release: 20071106
@
1.57
log
@modifying package: js-1.6.20070208 20070905 -> 20070910
@
text
@d32 1
a32 1
%define V_javascript_engine 0.017
d46 1
a46 1
Release: 20070910
@
1.56
log
@modifying package: js-1.6.20070208 20070809 -> 20070905
@
text
@d32 1
a32 1
%define V_javascript_engine 0.016
d46 1
a46 1
Release: 20070905
@
1.55
log
@strip executables
@
text
@d28 1
a28 1
%define V_javascript_spidermonkey 0.18
d46 1
a46 1
Release: 20070809
@
1.54
log
@modifying package: js-1.6.20070208 20070720 -> 20070723
@
text
@d46 1
a46 1
Release: 20070723
d220 1
@
1.53
log
@remove "%not %dir" construct, allowing proper directory ownership tracking and removal when erasing last provider
@
text
@d32 1
a32 1
%define V_javascript_engine 0.015
d46 1
a46 1
Release: 20070720
@
1.52
log
@modifying package: js-1.6.20070208 20070609 -> 20070611
@
text
@d46 1
a46 1
Release: 20070611
d256 1
a256 2
%{l_files_std} `cat perl-openpkg-files` \
'%not %dir %{l_prefix}/lib/pkgconfig'
@
1.51
log
@modifying package: js-1.6.20070208 20070603 -> 20070609
@
text
@d32 1
a32 1
%define V_javascript_engine 0.014
d46 1
a46 1
Release: 20070609
@
1.50
log
@modifying package: js-1.6.20070208 20070528 -> 20070603
@
text
@d28 1
a28 1
%define V_javascript_spidermonkey 0.17
d46 1
a46 1
Release: 20070603
@
1.49
log
@modifying package: js-1.6.20070208 20070521 -> 20070528
@
text
@d32 1
a32 1
%define V_javascript_engine 0.013
d46 1
a46 1
Release: 20070528
@
1.48
log
@modifying package: js-1.6.20070208 20070514 -> 20070521
@
text
@d33 1
a33 1
%define V_jsmin 20070108
d46 1
a46 1
Release: 20070521
@
1.47
log
@modifying package: js-1.6.20070208 20070511 -> 20070514
@
text
@d32 1
a32 1
%define V_javascript_engine 0.012
d46 1
a46 1
Release: 20070514
@
1.46
log
@modifying package: js-1.6.20070208 20070510 -> 20070511
@
text
@d32 1
a32 1
%define V_javascript_engine 0.011
d46 1
a46 1
Release: 20070511
@
1.45
log
@modifying package: js-1.6.20070208 20070509 -> 20070510
@
text
@d32 1
a32 1
%define V_javascript_engine 0.010
d46 1
a46 1
Release: 20070510
@
1.44
log
@modifying package: js-1.6.20070208 20070428 -> 20070509
@
text
@d32 1
a32 1
%define V_javascript_engine 0.009
d46 1
a46 1
Release: 20070509
@
1.43
log
@modifying package: js-1.6.20070208 20070423 -> 20070428
@
text
@d32 1
a32 1
%define V_javascript_engine 0.008
d46 1
a46 1
Release: 20070428
@
1.42
log
@modifying package: js-1.6.20070208 20070402 -> 20070423
@
text
@d31 1
a31 1
%define V_javascript_jslint 0.04
d46 1
a46 1
Release: 20070423
@
1.41
log
@modifying package: js-1.6.20070208 20070330 -> 20070402
@
text
@d32 1
a32 1
%define V_javascript_engine 0.007
d46 1
a46 1
Release: 20070402
@
1.40
log
@modifying package: js-1.6.20070208 20070312 -> 20070330
@
text
@d32 1
a32 1
%define V_javascript_engine 0.006
d46 1
a46 1
Release: 20070330
@
1.39
log
@add the new JE (JavaScript Engine) Perl module which is a Perl-only JS implementation
@
text
@d32 1
a32 1
%define V_javascript_engine 0.005
d46 1
a46 1
Release: 20070312
@
1.38
log
@repair patch
@
text
@d32 1
d46 1
a46 1
Release: 20070224
d62 2
a63 1
Source6: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/jsmin/jsmin-%{V_jsmin}.c
d122 5
d140 1
d203 3
d243 3
@
1.37
log
@modifying package: js-1.6.20070208 20070213 -> 20070222
@
text
@d45 1
a45 1
Release: 20070222
@
1.36
log
@modifying package: js-1.6.20070208 20070212 -> 20070213
@
text
@d27 1
a27 1
%define V_javascript 1.02
d45 1
a45 1
Release: 20070213
d175 1
a175 1
export JS_C_STRINGS_ARE_UTF8=1
@
1.35
log
@modifying package: js-1.6.20070208 20070208 -> 20070212
@
text
@d27 1
a27 1
%define V_javascript 1.01
d45 1
a45 1
Release: 20070212
@
1.34
log
@add jsmin utility
@
text
@d27 1
a27 1
%define V_javascript 1.00_02
d45 1
a45 1
Release: 20070208
@
1.33
log
@upgrading package: js 1.6.20060820 -> 1.6.20070208
@
text
@d32 1
d61 1
d120 5
d166 3
d211 4
@
1.32
log
@Welcome Year 2007!
@
text
@d26 1
a26 1
%define V_js 1.6.20060820
d44 1
a44 1
Release: 20061109
@
1.31
log
@modifying package: js-1.6.20060820 20061013 -> 20061109
@
text
@d3 2
a4 2
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
@
1.30
log
@new world order for "Packager" and "Distribution" headers
@
text
@d30 1
a30 1
%define V_javascript_code 0.05
d44 1
a44 1
Release: 20061013
@
1.30.2.1
log
@file js.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:51:28 +0000
@
text
@d1 235
@
1.30.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 235
##
## js.spec -- OpenPKG RPM Package Specification
## Copyright (c) 2000-2006 OpenPKG Foundation e.V.
## Copyright (c) 2000-2006 Ralf S. Engelschall
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# package version
%define V_js 1.6.20060820
%define V_javascript 1.00_02
%define V_javascript_spidermonkey 0.17
%define V_javascript_squish 0.05
%define V_javascript_code 0.05
%define V_javascript_jslint 0.04
# package information
Name: js
Summary: Mozilla JavaScript (JS)
URL: http://www.mozilla.org/js/
Vendor: Brendan Eich et al.
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class: PLUS
Group: Language
License: MPL/GPL/LGPL
Version: %{V_js}
Release: 2.20061018
# package options
%option with_file yes
%option with_dso yes
%option with_perl no
%option with_editline no
%option with_utf8 no
# list of sources
Source0: ftp://ftp.ossp.org/pkg/lib/js/js-%{V_js}.tar.gz
Source1: http://www.cpan.org/modules/by-authors/id/C/CL/CLAESJAC/JavaScript-%{V_javascript}.tar.gz
Source2: http://www.cpan.org/modules/by-module/JavaScript/JavaScript-SpiderMonkey-%{V_javascript_spidermonkey}.tar.gz
Source3: http://www.cpan.org/modules/by-module/JavaScript/JavaScript-Squish-%{V_javascript_squish}.tar.gz
Source4: http://www.cpan.org/modules/by-module/JavaScript/JavaScript-Code-%{V_javascript_code}.tar.gz
Source5: http://www.cpan.org/modules/by-module/JavaScript/JavaScript-JSLint-%{V_javascript_jslint}.tar.gz
Patch0: js.patch
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
BuildPreReq: OpenPKG, openpkg >= 2.20061018, gcc, make
PreReq: OpenPKG, openpkg >= 2.20061018
%if "%{with_perl}" == "yes"
BuildPreReq: perl, perl-openpkg
PreReq: perl
%endif
%if "%{with_editline}" == "yes"
BuildPreReq: editline
PreReq: editline
%endif
AutoReq: no
AutoReqProv: no
%description
This is the JavaScript (JS) reference implementation in C
from Mozilla, aka JSRef or SpiderMonkey. JavaScript is the
Netscape-developed object scripting language used in millions of web
pages and server applications worldwide. Netscape's JavaScript is a
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting
language. This package is based on the OSSP js distribution of
Mozilla JavaScript and also optionally provides Perl bindings.
%track
prog js = {
version = %{V_js}
url = ftp://ftp.ossp.org/pkg/lib/js/
regex = js-(__VER__)\.tar\.gz
}
prog js:JavaScript = {
version = %{V_javascript}
url = http://www.cpan.org/modules/by-authors/id/C/CL/CLAESJAC/
regex = JavaScript-(__VER__)\.tar\.gz
}
prog js:JavaScript-SpiderMonkey = {
version = %{V_javascript_spidermonkey}
url = http://www.cpan.org/modules/by-module/JavaScript/
regex = JavaScript-SpiderMonkey-(__VER__)\.tar\.gz
}
prog js:JavaScript-Squish = {
version = %{V_javascript_squish}
url = http://www.cpan.org/modules/by-module/JavaScript/
regex = JavaScript-Squish-(__VER__)\.tar\.gz
}
prog js:JavaScript-Code = {
version = %{V_javascript_code}
url = http://www.cpan.org/modules/by-module/JavaScript/
regex = JavaScript-Code-(__VER__)\.tar\.gz
}
prog js:JavaScript-JSLint = {
version = %{V_javascript_jslint}
url = http://www.cpan.org/modules/by-module/JavaScript/
regex = JavaScript-JSLint-(__VER__)\.tar\.gz
}
%prep
%setup -q -c
%setup -q -D -T -a 1
%setup -q -D -T -a 2
%setup -q -D -T -a 3
%setup -q -D -T -a 4
%setup -q -D -T -a 5
%patch -p0
%build
# build components
%if "%{with_perl}" == "yes"
%{l_prefix}/bin/perl-openpkg prepare
%endif
( cd js-%{V_js}
CC="%{l_cc}" \
CFLAGS="%{l_cflags -O}" \
GREP="grep" \
./configure \
--prefix=%{l_prefix} \
--mandir=%{l_prefix}/man \
%if "%{with_perl}" == "yes"
--with-perl=%{l_prefix}/bin/perl \
%endif
%if "%{with_editline}" == "yes"
--with-editline=%{l_prefix} \
%endif
%if "%{with_file}" != "yes"
--without-file \
%endif
%if "%{with_dso}" == "yes"
--with-dso \
%endif
%if "%{with_utf8}" == "yes"
--with-utf8 \
%endif
--disable-shared
%{l_make} %{l_mflags}
) || exit $?
%if "%{with_perl}" == "yes"
# build add-on Perl bindings
( cd JavaScript-%{V_javascript}
export JS_LIB="../js-%{V_js}/.libs"
export JS_INC="../js-%{V_js}/src"
%if "%{with_utf8}" == "yes"
export JS_C_STRINGS_ARE_UTF8=1
%endif
%{l_prefix}/bin/perl-openpkg configure build
) || exit $?
( cd JavaScript-SpiderMonkey-%{V_javascript_spidermonkey}
%{l_shtool} subst \
-e 's;\.\./js/src;../js-%{V_js}/src;' \
-e 's;\.\./js/.libs;../js-%{V_js}/.libs;' \
Makefile.PL
%{l_prefix}/bin/perl-openpkg configure build
) || exit $?
( cd JavaScript-Squish-%{V_javascript_squish}
%{l_prefix}/bin/perl-openpkg configure build
) || exit $?
( cd JavaScript-Code-%{V_javascript_code}
%{l_prefix}/bin/perl-openpkg configure build
) || exit $?
( cd JavaScript-JSLint-%{V_javascript_jslint}
%{l_prefix}/bin/perl-openpkg configure build
) || exit $?
%endif
%install
# create installation hierarchy
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/include/js \
$RPM_BUILD_ROOT%{l_prefix}/lib \
$RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig
# install vendor components
( cd js-%{V_js}
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
) || exit $?
%if "%{with_perl}" == "yes"
# install add-on Perl bindings
( cd JavaScript-%{V_javascript}
%{l_prefix}/bin/perl-openpkg install
) || exit $?
( cd JavaScript-SpiderMonkey-%{V_javascript_spidermonkey}
%{l_prefix}/bin/perl-openpkg install
) || exit $?
( cd JavaScript-Squish-%{V_javascript_squish}
%{l_prefix}/bin/perl-openpkg install
) || exit $?
( cd JavaScript-Code-%{V_javascript_code}
%{l_prefix}/bin/perl-openpkg install
) || exit $?
( cd JavaScript-JSLint-%{V_javascript_jslint}
%{l_prefix}/bin/perl-openpkg install
) || exit $?
%endif
%if "%{with_perl}" == "yes"
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
%else
>perl-openpkg-files
%endif
# determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
%{l_files_std} `cat perl-openpkg-files` \
'%not %dir %{l_prefix}/lib/pkgconfig'
%files -f files
%clean
rm -rf $RPM_BUILD_ROOT
@
1.30.2.3
log
@MFC: recent changes
@
text
@d3 2
a4 2
## Copyright (c) 2000-2007 OpenPKG Foundation e.V.
## Copyright (c) 2000-2007 Ralf S. Engelschall
d26 2
a27 2
%define V_js 1.6.20070208
%define V_javascript 1.02
d30 1
a30 1
%define V_javascript_code 0.08
a31 1
%define V_jsmin 20070108
d44 1
a44 1
Release: 2.20070221
a59 1
Source6: ftp://ftp.openpkg.org/sources/CPY/VERSIONED/jsmin/jsmin-%{V_jsmin}.c
a117 5
prog js:jsmin = {
version = %{V_jsmin}
url = ftp://ftp.openpkg.org/sources/CPY/VERSIONED/jsmin/
regex = jsmin-(__VER__)\.c
}
a158 3
# build add-on tool
%{l_cc} -o jsmin %{SOURCE jsmin-%{V_jsmin}.c}
a200 4
# install add-on tool
%{l_shtool} install -c -s -m 755 \
jsmin $RPM_BUILD_ROOT%{l_prefix}/bin/
@
1.29
log
@bless for PLUS class
@
text
@d38 2
a39 2
Packager: OpenPKG
Distribution: OpenPKG
d44 1
a44 1
Release: 20061012
@
1.28
log
@fix tracking
@
text
@d40 1
a40 1
Class: EVAL
d44 1
a44 1
Release: 20060822
@
1.27
log
@upgrade to our new upstream OSSP version and add build option for the new UTF-8 support
@
text
@d44 1
a44 1
Release: 20060820
d95 1
a95 1
url = http://www.cpan.org/modules/by-module/JavaScript/
@
1.26
log
@upgrade to newer module
@
text
@d26 1
a26 1
%define V_js 1.6.20060803
d51 1
d152 3
d164 3
@
1.25
log
@upgrading package: js 1.6.20060731 -> 1.6.20060803
@
text
@d27 1
a27 1
%define V_javascript 0.55
d44 1
a44 1
Release: 20060803
d54 1
a54 1
Source1: http://www.cpan.org/modules/by-module/JavaScript/JavaScript-%{V_javascript}.tar.gz
d158 2
a159 4
%{l_shtool} subst \
-e 's;-I\.\./js/src;-I../js-%{V_js}/src;' \
-e 's;-L\.\./js/src;-L../js-%{V_js}/.libs;' \
Makefile.PL
@
1.24
log
@upgrading package: js 1.6.20060730 -> 1.6.20060731
@
text
@d26 1
a26 1
%define V_js 1.6.20060731
d44 1
a44 1
Release: 20060731
d48 1
d148 3
@
1.23
log
@upgrading package: js 1.6.20060729 -> 1.6.20060730
@
text
@d26 1
a26 1
%define V_js 1.6.20060730
d44 1
a44 1
Release: 20060730
@
1.22
log
@the file object is enabled by default now
@
text
@d26 1
a26 1
%define V_js 1.6.20060729
d44 1
a44 1
Release: 20060729
@
1.21
log
@upgrading package: js 1.6.20060724 -> 1.6.20060729
@
text
@d47 1
a49 1
%option with_file no
d144 2
a145 2
%if "%{with_file}" == "yes"
--with-file \
@
1.20
log
@modifying package: js-1.6.20060724 20060724 -> 20060728
@
text
@d26 1
a26 1
%define V_js 1.6.20060724
d44 1
a44 1
Release: 20060728
@
1.19
log
@upgrading package: js 1.6.20060722 -> 1.6.20060724
@
text
@d28 1
a28 1
%define V_javascript_spidermonkey 0.16
d44 1
a44 1
Release: 20060724
@
1.18
log
@who the hell told GNU that manual pages now go into share/man/ instead of man?!
@
text
@d26 1
a26 1
%define V_js 1.6.20060722
d44 1
a44 1
Release: 20060723
@
1.17
log
@finally switch to OSSP js, a brand-new stand-alone distribution of the Mozilla JavaScript engine
@
text
@d137 1
@
1.16
log
@fix tracking
@
text
@d26 1
a26 2
%define V_js 1.6
%define V_js_snapshot firefox-1.5.0.5
d44 1
a44 1
Release: 20060716
d47 3
a49 1
%option with_perl no
d52 1
a52 1
Source0: ftp://ftp.openpkg.org/sources/CPY/mozilla/js-%{V_js}-%{V_js_snapshot}.tar.gz
a57 1
Source6: js.pc
d69 4
d82 2
a83 1
language. This package also optionally provides Perl bindings.
d87 3
a89 3
version = %{V_js}-%{V_js_snapshot}
url = ftp://ftp.openpkg.org/sources/CPY/mozilla/
regex = js-(__VER__-firefox-__VER__)\.tar\.gz
d131 14
a144 32
( cd js/src
cp Makefile.ref Makefile
case "%{l_platform -t}" in
*-freebsd* )
%{l_shtool} install -c -m 644 \
-e 's;x86_64;amd64;g' \
config/Linux_All.mk config/`uname -s``uname -r`.mk
;;
sun*-sunos5.1[01] )
cp config/SunOS5.9.mk config/`uname -s``uname -r`.mk
;;
ix86*-sunos* )
rm -f lock_SunOS.s
;;
esac
touch config/`uname -s``uname -r`.mk
%{l_make} %{l_mflags} \
CC="%{l_cc}" \
XCFLAGS="%{l_cppflags} %{l_cflags -O}" \
XLDFLAGS="%{l_ldflags}" \
BUILD_OPT=1 \
JS_EDITLINE=1
%if "%{with_perl}" == "yes"
# build Perl API
objdir="`echo *.OBJ`"
%{l_shtool} subst \
-e "s:\\(\$inc.=.\"\\).*\\(\";\\):\\1-I../$objdir -I..\\2:g" \
-e "s:\\(\$libpath.=.\"\\).*\\(\";\\):\\1-L../$objdir\\2:g" \
perlconnect/Makefile.PL
%{l_prefix}/bin/perl-openpkg -d perlconnect -A "-c" configure
%{l_prefix}/bin/perl-openpkg -d perlconnect build
d146 2
d153 4
a156 2
ln ../js/src/`uname -s``uname -r`_OPT.OBJ/libjs.a ../js/src/
ln ../js/src/`uname -s``uname -r`_OPT.OBJ/jsautocfg.h ../js/src/
a157 2
rm -f ../js/src/libjs.a
rm -f ../js/src/jsautocfg.h
d160 4
d187 2
a188 17
( cd js/src
%{l_shtool} install -c -s -m 755 \
*.OBJ/js $RPM_BUILD_ROOT%{l_prefix}/bin/
%{l_shtool} install -c -m 644 \
*.OBJ/libjs.a $RPM_BUILD_ROOT%{l_prefix}/lib/
for h in *.OBJ/jsautocfg.h jsapi.h jscompat.h \
jslong.h jsosdep.h jsotypes.h jspubtd.h jstypes.h; do
%{l_shtool} install -c -m 644 \
$h $RPM_BUILD_ROOT%{l_prefix}/include/js/
done
%{l_shtool} install -c -m 644 \
fdlibm/*.OBJ/libfdm.a $RPM_BUILD_ROOT%{l_prefix}/lib/libjsfdlibm.a
%{l_shtool} install -c -m 644 \
fdlibm/fdlibm.h $RPM_BUILD_ROOT%{l_prefix}/include/js/
%if "%{with_perl}" == "yes"
%{l_prefix}/bin/perl-openpkg -d perlconnect install
%endif
a215 5
# install pkgconfig(1) file
%{l_shtool} install -c -m 644 %{l_value -s -a} \
-e 's;@@version@@;%{version};' \
%{SOURCE js.pc} $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig/
@
1.15
log
@upgrade to JavaScript 1.6 as contained in Mozilla Firefox 1.5.0.5
@
text
@d45 1
a45 1
Release: 20060629
d84 1
a84 1
regex = js-(__VER__)\.tar\.gz
@
1.14
log
@fix building under FreeBSD/amd64
@
text
@d26 2
a27 1
%define V_js 1.5
d51 1
a51 1
Source0: http://ftp.mozilla.org/pub/mozilla.org/js/js-%{V_js}.tar.gz
d82 2
a83 2
version = %{V_js}
url = http://ftp.mozilla.org/pub/mozilla.org/js/
@
1.13
log
@add a bunch of useful Perl modules related to JavaScript: a compressor, a code generator and a code linter
@
text
@d128 11
a138 3
*-freebsd* ) cp config/Linux_All.mk config/`uname -s``uname -r`.mk ;;
sun*-sunos5.1[01] ) cp config/SunOS5.9.mk config/`uname -s``uname -r`.mk ;;
ix86*-sunos* ) rm -f lock_SunOS.s ;;
@
1.12
log
@modifying package: js-1.5 20060606 -> 20060614
@
text
@d29 3
d44 1
a44 1
Release: 20060614
d53 4
a56 1
Source3: js.pc
d95 15
d115 3
d164 9
d212 9
@
1.11
log
@port to Solaris 10/x86 and get rid of 'whoami' related warnings under Solaris
@
text
@d28 1
a28 1
%define V_javascript_spidermonkey 0.15
d41 1
a41 1
Release: 20060606
@
1.10
log
@add two additional Perl bindings
@
text
@d41 1
a41 1
Release: 20060306
d104 3
a106 1
*-freebsd* ) cp config/Linux_All.mk config/`uname -s``uname -r`.mk ;;
@
1.9
log
@add a bunch of patches from the FreeBSD ports tree (fixes 64-bit architectures and warnings)
@
text
@d25 5
d40 2
a41 2
Version: 1.5
Release: 20060129
d47 4
a50 2
Source0: http://ftp.mozilla.org/pub/mozilla.org/js/js-%{version}.tar.gz
Source1: js.pc
d71 1
a71 1
language.
d75 1
a75 1
version = %{version}
d79 10
d92 3
a94 1
%patch -p0 -d js/src
a96 2
cd js/src
d98 1
a98 19
cp Makefile.ref Makefile
case "%{l_platform -t}" in
*-freebsd* ) cp config/Linux_All.mk config/`uname -s``uname -r`.mk ;;
esac
touch config/`uname -s``uname -r`.mk
%{l_make} %{l_mflags} \
CC="%{l_cc}" \
XCFLAGS="%{l_cppflags} %{l_cflags -O}" \
XLDFLAGS="%{l_ldflags}" \
BUILD_OPT=1 \
JS_EDITLINE=1
%if "%{with_perl}" == "yes"
# build Perl API
objdir="`echo *.OBJ`"
%{l_shtool} subst \
-e "s:\\(\$inc.=.\"\\).*\\(\";\\):\\1-I../$objdir -I..\\2:g" \
-e "s:\\(\$libpath.=.\"\\).*\\(\";\\):\\1-L../$objdir\\2:g" \
perlconnect/Makefile.PL
d100 38
a137 2
%{l_prefix}/bin/perl-openpkg -d perlconnect -A "-c" configure
%{l_prefix}/bin/perl-openpkg -d perlconnect build
d168 11
@
1.8
log
@adjust copyrights for new year 2006
@
text
@d36 1
a36 1
Release: 20051025
@
1.7
log
@fix indent
@
text
@d3 2
a4 2
## Copyright (c) 2000-2005 OpenPKG Foundation e.V.
## Copyright (c) 2000-2005 Ralf S. Engelschall
@
1.6
log
@upgrading package: js 1.5rc6a -> 1.5
@
text
@d121 1
a121 1
jslong.h jsosdep.h jsotypes.h jspubtd.h jstypes.h; do
@
1.5
log
@Adjust the copyright declaration in this (RSE's) copy of the OpenPKG
source code now that the fork point for C&W was established (CVS tag
OPENPKG_CW_FP), the shared copyright agreement between RSE and C&W is
no longer active (as C&W no longer officially sponsors OpenPKG) and the
new shared copyright from RSE can be taken over by the newly established
juristic entity OpenPKG Foundation e.V. (instead of the non-juristic
entity OpenPKG Project).
@
text
@a24 4
# package version
%define V_major 1.5
%define V_minor rc6a
d35 2
a36 2
Version: %{V_major}%{V_minor}
Release: 20040627
d42 1
a42 1
Source0: http://ftp.mozilla.org/pub/mozilla.org/js/js-%{V_major}-%{V_minor}.tar.gz
d68 1
a68 1
version = %{V_major}-%{V_minor}
d78 15
a92 14
( cd js/src
# prepare build environment
cp Makefile.ref Makefile
case "%{l_platform -t}" in
*-freebsd* ) cp config/Linux_All.mk config/`uname -s``uname -r`.mk ;;
esac
# build components
%{l_make} %{l_mflags} \
CC="%{l_cc}" \
XCFLAGS="%{l_cppflags} %{l_cflags -O}" \
XLDFLAGS="%{l_ldflags}" \
BUILD_OPT=1 \
JS_EDITLINE=1
d94 9
a102 8
objdir="`echo *.OBJ`"
%{l_shtool} subst \
-e "s:\\(\$inc.=.\"\\).*\\(\";\\):\\1-I../$objdir -I..\\2:g" \
-e "s:\\(\$libpath.=.\"\\).*\\(\";\\):\\1-L../$objdir\\2:g" \
perlconnect/Makefile.PL
%{l_prefix}/bin/perl-openpkg prepare
%{l_prefix}/bin/perl-openpkg -d perlconnect -A "-c" configure
%{l_prefix}/bin/perl-openpkg -d perlconnect build
a103 1
) || exit $?
@
1.4
log
@Happy New Year 2005
@
text
@d2 3
a4 4
## js.spec -- OpenPKG RPM Specification
## Copyright (c) 2000-2005 The OpenPKG Project
## Copyright (c) 2000-2005 Ralf S. Engelschall
## Copyright (c) 2000-2005 Cable & Wireless
d34 1
a34 1
Packager: The OpenPKG Project
@
1.3
log
@add optional Perl binding (allowing to execute JS code from within Perl) and refactor substs into a separate patch file
@
text
@d3 3
a5 3
## Copyright (c) 2000-2004 The OpenPKG Project
## Copyright (c) 2000-2004 Ralf S. Engelschall
## Copyright (c) 2000-2004 Cable & Wireless
@
1.2
log
@add fdlibm part and provide pkgconfig glue
@
text
@d43 3
d49 1
d56 4
d80 1
a88 3
%{l_shtool} subst \
-e 's;^\(TARGETS.*\)$(SHARED_LIBRARY)\(.*\)$;\1\2;' \
rules.mk
d97 10
d133 3
d137 5
d150 1
a150 1
%{l_files_std} \
@
1.1
log
@new package: js 1.5rc6a (Mozilla JavaScript (JS))
@
text
@d45 1
d75 1
d83 2
d94 1
d99 4
a102 1
$RPM_BUILD_ROOT%{l_prefix}/lib
d113 4
d118 10
a127 1
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
@