diff --git a/quickjs-rpmlintrc b/quickjs-rpmlintrc deleted file mode 100644 index 644a820..0000000 --- a/quickjs-rpmlintrc +++ /dev/null @@ -1,4 +0,0 @@ -# -# static binary that qjsc currently depends on -addFilter("devel-file-in-non-devel-package .*/usr/lib/quickjs/libquickjs.a") - diff --git a/quickjs.changes b/quickjs.changes index 5646308..4387f53 100644 --- a/quickjs.changes +++ b/quickjs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Feb 6 01:23:13 UTC 2026 - Avindra Goolcharan + +- ship libquickjs in devel, qjsc works now + ------------------------------------------------------------------- Tue Nov 18 01:35:26 UTC 2025 - Avindra Goolcharan diff --git a/quickjs.spec b/quickjs.spec index 714d447..9a827f3 100644 --- a/quickjs.spec +++ b/quickjs.spec @@ -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