qjsc fixes

This commit is contained in:
2026-02-05 20:23:54 -05:00
parent 2a8f79a0d0
commit ee3ba39263
3 changed files with 10 additions and 9 deletions

View File

@@ -1,4 +0,0 @@
#
# static binary that qjsc currently depends on
addFilter("devel-file-in-non-devel-package .*/usr/lib/quickjs/libquickjs.a")

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# spec file for package quickjs
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -32,13 +32,13 @@ Summary: Small and embeddable Javascript engine
License: MIT
URL: https://bellard.org/quickjs/
Source0: https://bellard.org/quickjs/%{name}-%{ver}.tar.xz
Source10: quickjs-rpmlintrc
BuildRequires: make
%description
QuickJS is a small and embeddable JavaScript engine and compiler that supports reference ES2020.
%package docs
BuildArch: noarch
Summary: Documentation for quickjs
%description docs
@@ -54,7 +54,7 @@ Development headers for quickjs
%setup -q -n %{name}-%{ver2}
# inject optflags (cannot be passed normally to build)
cat >> "./Makefile" <<-EOF
CFLAGS += %{optflags}
CFLAGS += %{optflags} -ffat-lto-objects
LDFLAGS += %{optflags}
EOF
@@ -63,9 +63,8 @@ EOF
%install
%make_install PREFIX=%{_prefix}
#remove extraneous binaries
#remove extraneous binary
rm -f %{buildroot}%{_prefix}/lib/quickjs/libquickjs.lto.a
rm -f %{buildroot}%{_prefix}/lib/quickjs/libquickjs.a
%files
%license LICENSE
@@ -75,6 +74,7 @@ rm -f %{buildroot}%{_prefix}/lib/quickjs/libquickjs.a
%files devel
%{_includedir}/%{name}
%{_prefix}/lib/quickjs/libquickjs.a
%files docs
%doc doc