[packages/quickjs-ng] - updated to 0.11.0 - build static library
witekfl
witekfl at pld-linux.org
Tue Nov 4 18:44:05 CET 2025
commit f9a3370f72824e6281d1c3d84a614e9ac606358f
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date: Tue Nov 4 18:43:25 2025 +0100
- updated to 0.11.0
- build static library
quickjs-ng.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 44 insertions(+), 2 deletions(-)
---
diff --git a/quickjs-ng.spec b/quickjs-ng.spec
index a1b181d..557b50b 100644
--- a/quickjs-ng.spec
+++ b/quickjs-ng.spec
@@ -1,11 +1,15 @@
+#
+# Conditional build:
+%bcond_without static_libs # don't build static libraries
+#
Summary: QuickJS - A mighty JavaScript engine
Name: quickjs-ng
-Version: 0.10.1
+Version: 0.11.0
Release: 1
License: MIT
Group: Libraries
Source0: https://github.com/quickjs-ng/quickjs/archive/refs/tags/v%{version}.tar.gz
-# Source0-md5: 22b84e47c5c55fad7e8cbc9b5dad6944
+# Source0-md5: 3807493185e8aa5265e67d954b6f18e0
URL: https://quickjs-ng.github.io/quickjs/
BuildRequires: cmake >= 3.16
BuildRequires: ninja
@@ -20,6 +24,14 @@ This project is a fork of the original QuickJS project by Fabrice
Bellard and Charlie Gordon, after it went dormant, with the intent of
reigniting its development.
+%description -l pl.UTF-8
+QuickJS jest małym i osadzalnym silnikiem JavaScriptu. Stara się
+był zgodnym z najnowszą specyfikacją ECMAScriptu.
+
+Ten projekt jest forkiem oryginalnego QuickJS napisanego przez
+Fabrice'a Bellarda i Charlie Gordona, po tym jak był zastój
+w rozwoju QuickJS-a, z myślą przyspieszenia jego rozwoju.
+
%package devel
Summary: Header files for %{name} development
Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{name}
@@ -44,10 +56,29 @@ qjs and qjsc programs.
%description progs -l pl.UTF-8
Programy qjs and qjsc.
+%package static
+Summary: Static quickjs-ng library
+Summary(pl.UTF-8): Statyczna biblioteka quickjs-ng
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static quickjs-ng library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka quickjs-ng.
+
%prep
%setup -q -n quickjs-%{version}
%build
+%if %{with static_libs}
+%cmake -B build-static \
+ -G Ninja \
+ -DBUILD_SHARED_LIBS=OFF
+%ninja_build -C build-static
+%endif
+
%cmake -B build \
-G Ninja
@@ -55,6 +86,11 @@ Programy qjs and qjsc.
%install
rm -rf $RPM_BUILD_ROOT
+
+%if %{with static_libs}
+%ninja_install -C build-static
+%endif
+
%ninja_install -C build
%clean
@@ -79,3 +115,9 @@ rm -rf $RPM_BUILD_ROOT
%doc examples
%attr(755,root,root) %{_bindir}/qjs
%attr(755,root,root) %{_bindir}/qjsc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libqjs.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/quickjs-ng.git/commitdiff/f9a3370f72824e6281d1c3d84a614e9ac606358f
More information about the pld-cvs-commit
mailing list