diff --git a/mujs-1.3.5.tar.gz b/mujs-1.3.5.tar.gz deleted file mode 100644 index 54940ed..0000000 --- a/mujs-1.3.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:78a311ae4224400774cb09ef5baa2633c26971513f8b931d3224a0eb85b13e0b -size 128938 diff --git a/mujs-1.3.7.tar.gz b/mujs-1.3.7.tar.gz new file mode 100644 index 0000000..aae57c1 --- /dev/null +++ b/mujs-1.3.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa15735edc4b3d27675d954b5703e36a158f19cfa4f265aa5388cd33aede1c70 +size 130597 diff --git a/mujs-remove-curl.patch b/mujs-remove-curl.patch new file mode 100644 index 0000000..d800560 --- /dev/null +++ b/mujs-remove-curl.patch @@ -0,0 +1,15 @@ +diff -Pdpru mujs-1.3.7.orig/Makefile mujs-1.3.7/Makefile +--- mujs-1.3.7.orig/Makefile 2025-06-23 15:15:36.000000000 +0300 ++++ mujs-1.3.7/Makefile 2025-07-12 17:45:36.932644992 +0300 +@@ -72,11 +72,6 @@ astnames.h: jsi.h + opnames.h: jsi.h + grep -E '\ $@ + +-UnicodeData.txt: +- curl -s -o $@ https://www.unicode.org/Public/16.0.0/ucd/UnicodeData.txt +-SpecialCasing.txt: +- curl -s -o $@ https://www.unicode.org/Public/16.0.0/ucd/SpecialCasing.txt +- + utfdata.h: genucd.py UnicodeData.txt SpecialCasing.txt + python3 genucd.py UnicodeData.txt SpecialCasing.txt >$@ + diff --git a/mujs.changes b/mujs.changes index a4aa885..72dc9f1 100644 --- a/mujs.changes +++ b/mujs.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sat Jul 12 16:34:12 UTC 2025 - Илья Индиго + +- Updated to 1.3.7 + * Added ucd-16.0.0.tar.xz and mujs-remove-curl.patch. + * https://github.com/ccxvii/mujs/compare/1.3.5...1.3.7 + * Updated character tables to Unicode 16. + * Used more common "stack" property for error stack trace. + ------------------------------------------------------------------- Fri Dec 13 23:56:46 UTC 2024 - Илья Индиго @@ -31,31 +40,31 @@ Sat Jan 14 11:41:55 UTC 2023 - ecsos - Update to 1.3.2 * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.2 - * 1.3.2 patch release for UAF bug fix. - * Bug 706057: Fix use-after-free in getOwnPropertyDescriptor. - * Set length of output array Array.prototype.map. + * 1.3.2 patch release for UAF bug fix. + * Bug 706057: Fix use-after-free in getOwnPropertyDescriptor. + * Set length of output array Array.prototype.map. - Update to 1.3.1 * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.1 - * Make a patch release for important iterator bug fix. - * Issue #166: Use special iterator for string and array indices. - * Enable choice of library version for shell - * Use $(@D) instead of $(dir $@) + * Make a patch release for important iterator bug fix. + * Issue #166: Use special iterator for string and array indices. + * Enable choice of library version for shell + * Use $(@D) instead of $(dir $@) - Update to 1.3.0 * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.0 - * Avoid freeing buffer twice in case of error. - * Fast path for "simple" arrays. - * Bug 705775: Fix double fclose in pretty-printing tool. - * Makefile: fix parallel builds - * Guard state initialization with try to avoid panic in initialization. - * Add js_isbooleanobject and js_isdateobject functions. - * Issue #161: Cope with empty programs in mujs-pp. - * Issue #161: Don't fclose a FILE that is NULL. - * Issue #162: Check stack overflow during regexp compilation. - * Bug 705052: Don't use private STACK/TOP macros in jsstate.c - * Add "console" object to mujs shell. - * Issue #156: Fix check for duplicate formal parameters when strict. - * Some minor optimizations to Ap_join. - * array join: avoid strcat, speedup from O(N^2) to O(N) + * Avoid freeing buffer twice in case of error. + * Fast path for "simple" arrays. + * Bug 705775: Fix double fclose in pretty-printing tool. + * Makefile: fix parallel builds + * Guard state initialization with try to avoid panic in initialization. + * Add js_isbooleanobject and js_isdateobject functions. + * Issue #161: Cope with empty programs in mujs-pp. + * Issue #161: Don't fclose a FILE that is NULL. + * Issue #162: Check stack overflow during regexp compilation. + * Bug 705052: Don't use private STACK/TOP macros in jsstate.c + * Add "console" object to mujs shell. + * Issue #156: Fix check for duplicate formal parameters when strict. + * Some minor optimizations to Ap_join. + * array join: avoid strcat, speedup from O(N^2) to O(N) - Drop mujs-1.2.0-stack-exhaustion.patch because now in upstream. ------------------------------------------------------------------- diff --git a/mujs.spec b/mujs.spec index cce8c33..e861173 100644 --- a/mujs.spec +++ b/mujs.spec @@ -1,7 +1,7 @@ # # spec file for package mujs # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,20 +16,21 @@ # +%define ucd_ver 16.0.0 Name: mujs -Version: 1.3.5 +Version: 1.3.7 Release: 0 Summary: An embeddable Javascript interpreter License: AGPL-3.0-or-later Group: Development/Languages/C and C++ -URL: https://mujs.com -Source0: https://mujs.com/downloads/%{name}-%{version}.tar.gz +URL: https://github.com/ccxvii/%{name} +Source0: https://github.com/ccxvii/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# v=16.0.0 && u=https://www.unicode.org/Public/$v/ucd && f1=SpecialCasing.txt && f2=UnicodeData.txt && f=ucd-$v.tar.xz && cd /tmp && curl -O $u/$f1 -O $u/$f2 && tar c --remove-files "$f1" "$f2" | xz -9e > "$f" +Source1: ucd-%{ucd_ver}.tar.xz +Patch0: %{name}-remove-curl.patch BuildRequires: pkgconfig -%if 0%{?suse_version} > 1500 +BuildRequires: python3 BuildRequires: pkgconfig(readline) -%else -BuildRequires: readline-devel -%endif %description MuJS is a lightweight Javascript interpreter designed for embedding in other software to extend them with scripting capabilities. @@ -43,20 +44,19 @@ Provides: %{name}-static = %{version} This package provides the MuJS static library. %prep -%autosetup -p1 +%autosetup -p1 -a1 %build %global _lto_cflags %{_lto_cflags} -ffat-lto-objects -%make_build debug CFLAGS="%{optflags} -fPIC" +%make_build CFLAGS="%{optflags}" %install -%make_install prefix="%{_prefix}" libdir="%{_libdir}" CFLAGS="%{optflags} -fPIC" +%make_install CFLAGS="%{optflags}" prefix="%{_prefix}" libdir="%{_libdir}" %files %license COPYING %doc AUTHORS README -%{_bindir}/%{name} -%{_bindir}/%{name}-pp +%{_bindir}/%{name}{,-pp} %files devel %license COPYING diff --git a/ucd-16.0.0.tar.xz b/ucd-16.0.0.tar.xz new file mode 100644 index 0000000..da16f02 --- /dev/null +++ b/ucd-16.0.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2726c49ba2230572800b37e3242e10f4f73aabdb6b06a78f45945dca87721df6 +size 186516