From: Jan Rękorajski Date: Tue, 18 Oct 2016 18:17:54 +0000 (+0200) Subject: - fix syntax in version extraction script X-Git-Tag: auto/th/mozjs17-17.0.0-3 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?p=packages%2Fmozjs17.git;a=commitdiff_plain;h=ea23c7b6695199ca48842abe49facd6a3444e18f - fix syntax in version extraction script - rel 3 --- diff --git a/mozjs17.spec b/mozjs17.spec index fdf558f..6f01d91 100644 --- a/mozjs17.spec +++ b/mozjs17.spec @@ -3,11 +3,12 @@ Summary: SpiderMonkey 17 - JavaScript 1.8.6 implementation Summary(pl.UTF-8): SpiderMonkey 17 - implementacja języka JavaScript 1.8.6 Name: mozjs17 Version: 17.0.0 -Release: 2 +Release: 3 License: MPL 1.1 or GPL v2+ or LGPL v2.1+ Group: Libraries Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs%{version}.tar.gz # Source0-md5: 20b6f8f1140ef6e47daa3b16965c9202 +Patch0: perl.patch URL: http://www.mozilla.org/js/ BuildRequires: libffi-devel >= 5:3.0.9 BuildRequires: libstdc++-devel @@ -66,6 +67,7 @@ Statyczna wersja biblioteki JavaScript. %prep %setup -q -n mozjs%{version} +%patch0 -p1 %build cd js/src diff --git a/perl.patch b/perl.patch new file mode 100644 index 0000000..0115168 --- /dev/null +++ b/perl.patch @@ -0,0 +1,11 @@ +--- mozjs17.0.0/js/src/config/milestone.pl~ 2013-02-11 23:33:22.000000000 +0100 ++++ mozjs17.0.0/js/src/config/milestone.pl 2016-10-18 20:12:20.567112653 +0200 +@@ -55,7 +55,7 @@ + # + my $milestone = Moz::Milestone::getOfficialMilestone($MILESTONE_FILE); + +-if (defined(@TEMPLATE_FILE)) { ++if (@TEMPLATE_FILE) { + my $TFILE; + + foreach $TFILE (@TEMPLATE_FILE) {