diff --git a/webkitgtk.spec b/webkitgtk.spec index d9f256385f98deaf457eaa1c7ffc24243a3347ab..f985be9247fbc2d870f5ca0cc3e1ac98165aebaa 100644 --- a/webkitgtk.spec +++ b/webkitgtk.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 ## NOTE: Lots of files in various subdirectories have the same name (such as ## "LICENSE") so this short macro allows us to distinguish them by using their @@ -7,7 +7,7 @@ mkdir -p _license_files ; \ cp -p %1 _license_files/$(echo '%1' | sed -e 's!/!.!g') -%ifnarch riscv64 +%ifnarch riscv64 loongarch64 %global _lto_cflags %{nil} %endif @@ -28,7 +28,6 @@ Source1: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz.asc Patch01: riscv-use-unknown-cpu.patch Patch02: fix_code_error.patch -ExcludeArch: loongarch64 BuildRequires: bison BuildRequires: bubblewrap @@ -49,6 +48,9 @@ BuildRequires: perl(bigint) BuildRequires: perl(English) BuildRequires: perl(FindBin) BuildRequires: perl(JSON::PP) +%ifarch loongarch64 +BuildRequires: perl(File::Copy) +%endif BuildRequires: python3 BuildRequires: ruby BuildRequires: rubygems @@ -122,8 +124,10 @@ Recommends: gstreamer1-plugins-good Recommends: xdg-desktop-portal-gtk Provides: bundled(angle) Provides: bundled(pdfjs) -Provides: bundled(skia) Provides: bundled(xdgmime) +%ifnarch loongarch64 +Provides: bundled(skia) +%endif Obsoletes: webkit2gtk5.0 < %{version}-%{release} %description -n webkitgtk6.0 @@ -142,8 +146,10 @@ Recommends: gstreamer1-plugins-good Recommends: xdg-desktop-portal-gtk Provides: bundled(angle) Provides: bundled(pdfjs) -Provides: bundled(skia) Provides: bundled(xdgmime) +%ifnarch loongarch64 +Provides: bundled(skia) +%endif %description -n webkit2gtk4.1 WebKitGTK is the port of the WebKit web rendering engine to the @@ -236,6 +242,7 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 %global _dwz_max_die_limit_x86_64 250000000 %global _dwz_max_die_limit_aarch64 250000000 %global _dwz_max_die_limit_riscv64 250000000 +%global _dwz_max_die_limit_loongarch64 250000000 # Require 32 GB of RAM per vCPU for debuginfo processing. 16 GB is not enough. %global _find_debuginfo_opts %limit_build -m 32768 @@ -245,7 +252,7 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 # Cf. https://bugs.webkit.org/show_bug.cgi?id=245697 # Disable BTI until this is fixed upstream. -%ifarch %{ix86} riscv64 +%ifarch %{ix86} riscv64 loongarch64 %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif @@ -266,6 +273,9 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 %if !0%{?with_gamepad} -DENABLE_GAMEPAD=OFF \ %endif +%ifarch loongarch64 + -DUSE_SKIA=OFF \ +%endif %ifarch aarch64 -DUSE_64KB_PAGE_BLOCK=ON \ %endif @@ -285,6 +295,9 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 %if !0%{?with_gamepad} -DENABLE_GAMEPAD=OFF \ %endif +%ifarch loongarch64 + -DUSE_SKIA=OFF \ +%endif %ifarch aarch64 -DUSE_64KB_PAGE_BLOCK=ON \ %endif @@ -305,6 +318,9 @@ files for developing applications that use JavaScript engine from webkit2gtk-4.1 %if !0%{?with_gamepad} -DENABLE_GAMEPAD=OFF \ %endif +%ifarch loongarch64 + -DUSE_SKIA=OFF \ +%endif %ifarch aarch64 -DUSE_64KB_PAGE_BLOCK=ON \ %endif @@ -440,6 +456,9 @@ export NINJA_STATUS="[2/2][%f/%t %es] " %endif %changelog +* Tue Jun 24 2025 doupengda - 2.48.1-3 +- add support for loongarch64 + * Thu Jun 05 2025 Shangtong Guo - 2.48.1-2 - add support for riscv64