diff --git a/mozjs115.spec b/mozjs115.spec index 3c4a99d..fc106d2 100644 --- a/mozjs115.spec +++ b/mozjs115.spec @@ -1,10 +1,18 @@ %global major 115 # LTO - Enable in Release builds, but consider disabling for development as it increases compile time +%ifnarch riscv64 %global build_with_lto 1 +%else +%global build_with_lto 0 +%endif # Require tests to pass? +%ifnarch riscv64 %global require_tests 1 +%else +%global require_tests 0 +%endif %if 0%{?build_with_lto} # LTO is the default @@ -19,7 +27,7 @@ Name: mozjs%{major} Version: 115.4.0 -Release: %autorelease +Release: %autorelease -e 0.riscv64 Summary: SpiderMonkey JavaScript library License: MPL-2.0 AND Apache-2.0 AND BSD-3-Clause AND BSD-2-Clause AND MIT AND GPL-3.0-or-later