forked from javascript/quickjs
Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| ee3ba39263 | |||
| 2a8f79a0d0 | |||
| d9be3f3f2a |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:3c4bf8f895bfa54beb486c8d1218112771ecfc5ac3be1036851ef41568212e03
|
|
||||||
size 765800
|
|
||||||
BIN
quickjs-2025-09-13-2.tar.xz
LFS
Normal file
BIN
quickjs-2025-09-13-2.tar.xz
LFS
Normal file
Binary file not shown.
@@ -1,4 +0,0 @@
|
|||||||
#
|
|
||||||
# static binary that qjsc currently depends on
|
|
||||||
addFilter("devel-file-in-non-devel-package .*/usr/lib/quickjs/libquickjs.a")
|
|
||||||
|
|
||||||
@@ -1,3 +1,48 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 6 01:23:13 UTC 2026 - Avindra Goolcharan <avindra@opensuse.org>
|
||||||
|
|
||||||
|
- ship libquickjs in devel, qjsc works now
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 18 01:35:26 UTC 2025 - Avindra Goolcharan <avindra@opensuse.org>
|
||||||
|
|
||||||
|
- update to 2025-09-13:
|
||||||
|
* added JSON modules and import attributes
|
||||||
|
* added JS_PrintValue() API
|
||||||
|
* qjs: pretty print objects in print() and console.log()
|
||||||
|
* qjs: better promise rejection tracker heuristics
|
||||||
|
* added RegExp v flag
|
||||||
|
* added RegExp modifiers
|
||||||
|
* added RegExp.escape
|
||||||
|
* added Float16Array
|
||||||
|
* added Promise.try
|
||||||
|
* improved JSON parser spec conformance
|
||||||
|
* qjs: improved compatibility of std.parseExtJSON() with JSON5 and
|
||||||
|
accept JSON5 modules
|
||||||
|
* added JS_FreePropertyEnum() and JS_AtomToCStringLen() API
|
||||||
|
* added Error.isError()
|
||||||
|
* misc bug fixes
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 18 00:26:00 UTC 2025 - Avindra Goolcharan <avindra@opensuse.org>
|
||||||
|
|
||||||
|
- update to 2025-04-26:
|
||||||
|
* removed the bignum extensions and qjscalc to simplify the code.
|
||||||
|
The BFCalc calculator (web version) can be used as a
|
||||||
|
replacement for qjscalc.
|
||||||
|
* new BigInt implementation optimized for small numbers
|
||||||
|
* added WeakRef, FinalizationRegistry and symbols as weakrefs
|
||||||
|
* added builtin float64 printing and parsing functions for more correctness
|
||||||
|
* faster repeated string concatenation
|
||||||
|
* qjs: promise unhandled rejections are fatal errors by default
|
||||||
|
* added column number in debug information
|
||||||
|
* removed the "use strip" extension
|
||||||
|
* qjs: added -s and --strip-source options
|
||||||
|
* qjsc: added -s and --keep-source options
|
||||||
|
* added JS_GetAnyOpaque()
|
||||||
|
* added more callbacks for exotic objects in JSClassExoticMethods
|
||||||
|
* misc bug fixes
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 9 23:22:54 UTC 2024 - Avindra Goolcharan <avindra@opensuse.org>
|
Fri Feb 9 23:22:54 UTC 2024 - Avindra Goolcharan <avindra@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
32
quickjs.spec
32
quickjs.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package quickjs
|
# spec file for package quickjs
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2026 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,28 +16,29 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define ver 2024-01-13
|
%define ver 2025-09-13-2
|
||||||
|
%define ver2 2025-09-13
|
||||||
|
%if 0%{?suse_version} && 0%{?suse_version} < 1500
|
||||||
|
%define compiler CC=gcc-7
|
||||||
|
# /usr/include/c++/12/stdatomic.h
|
||||||
|
BuildRequires: gcc7-c++
|
||||||
|
%else
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
%endif
|
||||||
Name: quickjs
|
Name: quickjs
|
||||||
Version: 20240113
|
Version: 20250913
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Small and embeddable Javascript engine
|
Summary: Small and embeddable Javascript engine
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://bellard.org/quickjs/
|
URL: https://bellard.org/quickjs/
|
||||||
Source0: https://bellard.org/quickjs/%{name}-%{ver}.tar.xz
|
Source0: https://bellard.org/quickjs/%{name}-%{ver}.tar.xz
|
||||||
Source10: quickjs-rpmlintrc
|
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} < 1500
|
|
||||||
# /usr/include/c++/12/stdatomic.h
|
|
||||||
BuildRequires: gcc7-c++
|
|
||||||
%define compiler CC=gcc-7
|
|
||||||
%else
|
|
||||||
BuildRequires: gcc-c++
|
|
||||||
%endif
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
|
||||||
%description
|
%description
|
||||||
QuickJS is a small and embeddable JavaScript engine and compiler that supports reference ES2020.
|
QuickJS is a small and embeddable JavaScript engine and compiler that supports reference ES2020.
|
||||||
|
|
||||||
%package docs
|
%package docs
|
||||||
|
BuildArch: noarch
|
||||||
Summary: Documentation for quickjs
|
Summary: Documentation for quickjs
|
||||||
|
|
||||||
%description docs
|
%description docs
|
||||||
@@ -50,10 +51,10 @@ Summary: Development headers for quickjs
|
|||||||
Development headers for quickjs
|
Development headers for quickjs
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{ver}
|
%setup -q -n %{name}-%{ver2}
|
||||||
# inject optflags (cannot be passed normally to build)
|
# inject optflags (cannot be passed normally to build)
|
||||||
cat >> "./Makefile" <<-EOF
|
cat >> "./Makefile" <<-EOF
|
||||||
CFLAGS += %{optflags}
|
CFLAGS += %{optflags} -ffat-lto-objects
|
||||||
LDFLAGS += %{optflags}
|
LDFLAGS += %{optflags}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@@ -66,15 +67,14 @@ EOF
|
|||||||
rm -f %{buildroot}%{_prefix}/lib/quickjs/libquickjs.lto.a
|
rm -f %{buildroot}%{_prefix}/lib/quickjs/libquickjs.lto.a
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
%license LICENSE
|
||||||
%{_bindir}/qjs
|
%{_bindir}/qjs
|
||||||
%{_bindir}/qjsc
|
%{_bindir}/qjsc
|
||||||
%{_bindir}/qjscalc
|
|
||||||
%dir %{_prefix}/lib/%{name}
|
%dir %{_prefix}/lib/%{name}
|
||||||
# qjsc relies on it
|
|
||||||
%{_prefix}/lib/%{name}/lib%{name}.a
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/%{name}
|
%{_includedir}/%{name}
|
||||||
|
%{_prefix}/lib/quickjs/libquickjs.a
|
||||||
|
|
||||||
%files docs
|
%files docs
|
||||||
%doc doc
|
%doc doc
|
||||||
|
|||||||
Reference in New Issue
Block a user