7
0
Files
nodejs-electron/nodejs-electron.spec

1157 lines
38 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nodejs-electron
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2021-2022 Andreas Schneider <asn@cryptomilk.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%undefine _package_note_file
# https://fedoraproject.org/wiki/Changes/SetBuildFlagsBuildCheck
%undefine _auto_set_build_flags
%define mod_name electron
# Do not provide libEGL.so, etc…
%define __provides_exclude ^lib.*\\.so.*$
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
# Double DWZ memory limits
%define _dwz_low_mem_die_limit 20000000
%define _dwz_max_die_limit 100000000
#x86 requires SSE2
%ifarch %ix86
ExclusiveArch: i586 i686
BuildArch: i686
%{expand:%%global optflags %(echo "%optflags") -march=pentium4 -mtune=generic}
%endif
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
#Electron built with LTO crashes on selecting any text.
#See https://gist.github.com/brjsp/80620a5a0be9efbee6b9154cb127879d for the stack trace.
%bcond_with lto
%bcond_without pipewire
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%ifarch x86_64 %arm
#Use subzero as swiftshader backend instead of LLVM
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
#ix86 is also supposed to support subzero, but as of 19.0.9 we're getting linker error
#undefined symbol: void Ice::X8632::emitIASRegOpTyGPR<true, true>(Ice::Cfg const*, Ice::Type, Ice::Variable const*, Ice::Operand const*, Ice::X8632::AssemblerX8632::GPREmitterRegOp const&)
%bcond_without subzero
%else
%bcond_with subzero
%endif
%bcond_without systemicu
%ifarch x86_64 %ix86 aarch64
%bcond_without vaapi
%else
%bcond_with vaapi
%endif
%if %{with vaapi}
#vaapi still requires bundled libvpx
%bcond_with system_vpx
%else
%bcond_without system_vpx
%endif
%bcond_with clang
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
# Linker selection. GCC only. Default is BFD.
# arm64 reports relocation errors with BFD.
%ifarch x86_64 aarch64
%bcond_without gold
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%else
%bcond_with gold
%endif
# Both BFD and Gold run out of memory on 32-bit.
%ifarch %ix86 %arm
%bcond_without lld
%else
%bcond_with lld
%endif
#Mold succeeds on ix86 but seems to produce corrupt binaries (no build-id)
%bcond_with mold
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400 || 0%{?fedora}
%bcond_without system_harfbuzz
%else
%bcond_with system_harfbuzz
%endif
%bcond_without system_freetype
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150500 || 0%{?fedora} >= 37
%bcond_without system_aom
%else
%bcond_with system_aom
%endif
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150500 || 0%{?fedora_version}
%bcond_without system_crc32c
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%bcond_without system_nghttp2
%bcond_without system_nvctrl
%else
%bcond_with system_crc32c
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%bcond_with system_nghttp2
%bcond_with system_nvctrl
%endif
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600 || 0%{?fedora_version}
%bcond_without system_jxl
%else
%bcond_with system_jxl
%endif
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600 || 0%{?fedora} >= 37
%bcond_without system_dav1d
%else
%bcond_with system_dav1d
%endif
%bcond_without system_double_conversion
%bcond_without system_jsoncpp
%bcond_without system_woff2
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600 || 0%{?fedora} >= 37
%bcond_without system_spirv
%else
%bcond_with system_spirv
%endif
%if %{without subzero}
%bcond_without system_llvm
%else
%bcond_with system_llvm
%endif
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150500
%bcond_without system_yuv
%else
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%bcond_with system_yuv
%endif
%bcond_without system_tiff
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%if 0%{?fedora}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%bcond_without system_llhttp
%bcond_without system_histogram
%else
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%bcond_with system_llhttp
%bcond_with system_histogram
%endif
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400 || 0%{?fedora}
%bcond_without system_avif
%else
%bcond_with system_avif
%endif
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150500 || 0%{?fedora} >= 37
%if %{without clang}
# Clang has several problems with std::optional used by system abseil
%bcond_without system_abseil
%else
%bcond_with system_abseil
%endif
%else
%bcond_with system_abseil
%endif
# We always ship the following bundled libraries as part of Electron despite a system version being available in either openSUSE or Fedora:
# Name | Path in tarball | Reason
# -------------+-----------------------------------+---------------------------------------
# boringssl | third_party/boringssl | The openSUSE package is unmaintained.
# flatbuffers | third_party/flatbuffers | The static library is only used during build, only header code is present in the Chromium binary.
# hunspell | third_party/hunspell/src | Fork.
# leveldb | third_party/leveldatabase/src | Internal api use.
# protobuf | third_party/protobuf | Fork.
# rnnoise | third_party/rnnoise | Internal api use.
# sqlite | third_party/sqlite | Fork.
# srtp / srtp2 | third_party/libsrtp | Api matches neither version 1 nor 2 of this library.
# uv | third_party/electron_node/deps/uv | Heavily modified version which is exposed as part of Electron's public ABI.
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
Name: nodejs-electron
Version: 19.0.15
Release: 0
Summary: Build cross platform desktop apps with JavaScript, HTML, and CSS
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
License: MIT AND BSD-3-Clause AND LGPL-2.1-or-later
Group: Productivity/Networking/Web/Browsers
URL: https://github.com/electron/electron
Source0: %{mod_name}-%{version}.tar.xz
Source1: create_tarball.sh
Source10: electron-launcher.sh
Source11: electron.desktop
Source12: electron-logo-symbolic.svg
# Shim generators for unbundling libraries
Source20: absl_algorithm.gn
Source21: absl_base.gn
Source22: absl_cleanup.gn
Source23: absl_container.gn
Source24: absl_debugging.gn
Source25: absl_flags.gn
Source26: absl_functional.gn
Source27: absl_hash.gn
Source28: absl_memory.gn
Source29: absl_meta.gn
Source30: absl_numeric.gn
Source31: absl_random.gn
Source32: absl_status.gn
Source33: absl_strings.gn
Source34: absl_synchronization.gn
Source35: absl_time.gn
Source36: absl_types.gn
Source37: brotli.gn
Source38: crc32c.gn
# https://svnweb.mageia.org/packages/cauldron/chromium-browser-stable/current/SOURCES/chromium-79-system-dav1d.patch
Source39: dav1d.gn
Source40: double-conversion.gn
# https://svnweb.mageia.org/packages/cauldron/chromium-browser-stable/current/SOURCES/chromium-79-system-libaom.patch
Source41: libaom.gn
Source42: libavif.gn
Source43: libjxl.gn
Source44: libXNVCtrl.gn
Source45: swiftshader-SPIRV-Headers.gn
Source46: swiftshader-SPIRV-Tools.gn
Source47: vulkan-SPIRV-Headers.gn
Source48: vulkan-SPIRV-Tools.gn
Source49: woff2.gn
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
Source50: flatbuffers.gn
Source51: libsecret.gn
Source52: libyuv.gn
# Reverse upstream changes to be able to build against system ffmpeg
Source400: ffmpeg-new-channel-layout.patch
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
# PATCHES for openSUSE-specific things
Patch0: chromium-102-compiler.patch
Patch3: gcc-enable-lto.patch
Patch5: chromium-norar.patch
Patch6: chromium-vaapi.patch
Patch7: chromium-91-java-only-allowed-in-android-builds.patch
Patch9: chromium-86-fix-vaapi-on-intel.patch
# Always disable use_thin_lto which is an lld feature
Patch21: electron-13-fix-use-thin-lto.patch
# Fix common.gypi to include /usr/include/electron
Patch25: electron-16-system-node-headers.patch
# https://sources.debian.org/patches/chromium/102.0.5005.115-1/debianization/support-i386.patch/
Patch39: support-i386.patch
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
Patch49: abseil-remove-unused-targets.patch
# from https://sources.debian.org/patches/chromium/103.0.5060.53-1/disable/catapult.patch/
Patch67: disable-catapult.patch
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
Patch68: do-not-build-libvulkan.so.patch
Patch69: nasm-generate-debuginfo.patch
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
# PATCHES to use system libs
Patch1002: chromium-system-libusb.patch
Patch1017: system-libdrm.patch
Patch1036: chromium-101-libxml-unbundle.patch
# http://svnweb.mageia.org/packages/updates/7/chromium-browser-stable/current/SOURCES/chromium-74-pdfium-system-libopenjpeg2.patch?view=markup
Patch1038: pdfium-fix-system-libs.patch
%if %{with system_jsoncpp}
# https://sources.debian.org/patches/chromium/102.0.5005.115-1/system/jsoncpp.patch/
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
Patch1040: system-jsoncpp.patch
%endif
# https://sources.debian.org/patches/chromium/102.0.5005.115-1/system/zlib.patch/
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
Patch1041: system-zlib.patch
Patch1043: node-system-libs.patch
Patch1044: replace_gn_files-system-libs.patch
Patch1045: angle-system-xxhash.patch
%if %{with system_tiff}
# https://svnweb.mageia.org/packages/cauldron/chromium-browser-stable/current/SOURCES/chromium-99-pdfium-system-libtiff-libpng.patch
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
Patch1046: chromium-99-pdfium-system-libtiff.patch
%endif
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
Patch1047: cares_public_headers.patch
Patch1048: chromium-remove-bundled-roboto-font.patch
%if %{with system_llvm}
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
Patch1053: swiftshader-use-system-llvm.patch
%endif
%if %{with system_abseil}
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
Patch1054: thread_annotations-fix-build-with-system-abseil.patch
%endif
Patch1063: system-libbsd.patch
Patch1065: base-system-nspr.patch
Patch1066: system-gtest.patch
Patch1067: breakpad-system-curl.patch
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
Patch1068: system-six.patch
Patch1069: system-usb_ids.patch
Patch1070: skia-system-vulkan-headers.patch
Patch1071: system-pydeps.patch
Patch1072: node-system-icu.patch
Patch1073: system-nasm.patch
Patch1074: no-zlib-headers.patch
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
# PATCHES to fix interaction with third-party software
Patch2004: chromium-gcc11.patch
Patch2010: chromium-93-ffmpeg-4.4.patch
Patch2011: chromium-ffmpeg-first-dts.patch
# Fix building sql recover_module
Patch2020: electron-13-fix-sql-virtualcursor-type.patch
# Fixe builds with older clang versions that do not allow
# nomerge attributes on declaration. Otherwise, the following error
# is produced:
# 'nomerge' attribute cannot be applied to a declaration
# See https://reviews.llvm.org/D92800
Patch2022: electron-13-fix-base-check-nomerge.patch
# Fix electron patched code
Patch2024: electron-16-std-vector-non-const.patch
Patch2029: electron-16-webpack-fix-openssl-3.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=2052228
Patch2030: electron-16-fix-swiftshader-template.patch
# PATCHES that should be submitted upstream verbatim or near-verbatim
Patch3016: chromium-98-EnumTable-crash.patch
# Fix blink nodestructor
Patch3023: electron-13-blink-gcc-ambiguous-nodestructor.patch
Patch3027: electron-16-freetype-visibility-list.patch
Patch3028: electron-16-third_party-symbolize-missing-include.patch
# From https://git.droidware.info/wchen342/ungoogled-chromium-fedora
Patch3033: chromium-94.0.4606.71-InkDropHost-crash.patch
# https://sources.debian.org/patches/chromium/102.0.5005.115-1/upstream/byteswap-constexpr.patch/
Patch3034: byteswap-constexpr.patch
# https://sources.debian.org/patches/chromium/102.0.5005.115-1/bullseye/byteswap-constexpr2.patch/
Patch3035: byteswap-constexpr2.patch
Patch3037: chromium-102-fenced_frame_utils-include.patch
Patch3042: chromium-fix-pac-with-gcc.patch
Patch3050: abseil_string_number_conversions-do-not-assume-ABI.patch
Patch3051: multi_channel_content_detector-missing-unique_ptr.patch
Patch3055: json_generation-missing-unique_ptr.patch
Patch3056: async_shared_storage_database_impl-missing-absl-WrapUnique.patch
Patch3057: metrics_recorder-missing-string.patch
Patch3058: skia_utils-missing-uint64_t.patch
Patch3059: device_perf_info-missing-uint32_t.patch
Patch3060: dark_mode_types-uint8_t.patch
Patch3061: ax_property_node-missing-unique_ptr-forward.patch
Patch3062: attribution_manager_impl-missing-absl-WrapUnique.patch
# https://salsa.debian.org/chromium-team/chromium/-/blob/456851fc808b2a5b5c762921699994e957645917/debian/patches/upstream/nested-nested-nested-nested-nested-nested-regex-patterns.patch
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
Patch3064: nested-nested-nested-nested-nested-nested-regex-patterns.patch
# Fedora patch to fix build with python3.11
Patch3066: chromium-103.0.5060.53-python3-do-not-use-deprecated-mode-U.patch
Patch3067: reproducible-config.gypi.patch
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
%if %{with clang}
BuildRequires: clang
BuildRequires: lld
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
BuildRequires: llvm
%endif
%if %{with gold}
BuildRequires: binutils-gold
%endif
BuildRequires: brotli
%if %{with system_cares}
BuildRequires: c-ares-devel
%endif
%if %{with system_crc32c}
BuildRequires: cmake(Crc32c)
%endif
BuildRequires: cups-devel
%if %{with system_double_conversion}
BuildRequires: double-conversion-devel
%endif
BuildRequires: desktop-file-utils
BuildRequires: fdupes
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%if 0%{?fedora}
BuildRequires: flatbuffers-compiler
%endif
BuildRequires: flatbuffers-devel
BuildRequires: git-core
BuildRequires: gn >= 0.1807
BuildRequires: gperf
%if %{with system_histogram}
BuildRequires: HdrHistogram_c-devel
%endif
BuildRequires: hicolor-icon-theme
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
BuildRequires: hwdata
%if 0%{?fedora}
BuildRequires: libatomic
%endif
%if %{with system_aom}
BuildRequires: libaom-devel >= 3.4
%endif
BuildRequires: libbsd-devel
BuildRequires: libpng-devel
%if %{with system_tiff}
BuildRequires: libtiff-devel
%endif
%if %{with system_nvctrl}
BuildRequires: libXNVCtrl-devel
%endif
%if %{with system_llhttp}
BuildRequires: llhttp-devel
%endif
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%if %{with lld}
BuildRequires: lld
%endif
%if %{with system_llvm}
BuildRequires: llvm-devel
%endif
BuildRequires: memory-constraints
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%if %{with mold}
BuildRequires: mold
%endif
BuildRequires: nasm
%if 0%{?suse_version}
BuildRequires: ninja >= 1.7.2
%else
BuildRequires: ninja-build >= 1.7.2
%endif
%if 0%{?sle_version} == 150300
BuildRequires: nodejs16
BuildRequires: npm16
%else
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
BuildRequires: nodejs >= 16
BuildRequires: npm
%endif
BuildRequires: pkgconfig
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
BuildRequires: plasma-wayland-protocols
BuildRequires: python3-json5
BuildRequires: python3-mako
BuildRequires: python3-ply
BuildRequires: python3-six
BuildRequires: rsync
BuildRequires: snappy-devel
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
BuildRequires: util-linux
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
BuildRequires: vulkan-headers
%if %{with system_abseil}
BuildRequires: pkgconfig(absl_algorithm_container) >= 20211000
BuildRequires: pkgconfig(absl_base)
BuildRequires: pkgconfig(absl_bind_front)
BuildRequires: pkgconfig(absl_bits)
BuildRequires: pkgconfig(absl_btree)
BuildRequires: pkgconfig(absl_cleanup)
BuildRequires: pkgconfig(absl_config)
BuildRequires: pkgconfig(absl_cord)
BuildRequires: pkgconfig(absl_core_headers)
BuildRequires: pkgconfig(absl_failure_signal_handler)
BuildRequires: pkgconfig(absl_fixed_array)
BuildRequires: pkgconfig(absl_flags)
BuildRequires: pkgconfig(absl_flags_parse)
BuildRequires: pkgconfig(absl_flags_usage)
BuildRequires: pkgconfig(absl_flat_hash_map)
BuildRequires: pkgconfig(absl_flat_hash_set)
BuildRequires: pkgconfig(absl_hash)
BuildRequires: pkgconfig(absl_inlined_vector)
BuildRequires: pkgconfig(absl_int128)
BuildRequires: pkgconfig(absl_memory)
BuildRequires: pkgconfig(absl_node_hash_map)
BuildRequires: pkgconfig(absl_node_hash_set)
BuildRequires: pkgconfig(absl_optional)
BuildRequires: pkgconfig(absl_random_random)
BuildRequires: pkgconfig(absl_span)
BuildRequires: pkgconfig(absl_stacktrace)
BuildRequires: pkgconfig(absl_status)
BuildRequires: pkgconfig(absl_statusor)
BuildRequires: pkgconfig(absl_strings)
BuildRequires: pkgconfig(absl_str_format)
BuildRequires: pkgconfig(absl_symbolize)
BuildRequires: pkgconfig(absl_synchronization)
BuildRequires: pkgconfig(absl_time)
BuildRequires: pkgconfig(absl_type_traits)
BuildRequires: pkgconfig(absl_variant)
%endif
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(cairo) >= 1.6
%if %{with system_dav1d}
BuildRequires: pkgconfig(dav1d) >= 1
%endif
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dri)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(flac++)
%if %{with system_freetype}
BuildRequires: pkgconfig(freetype2)
%endif
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(glproto)
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
BuildRequires: pkgconfig(gtest)
BuildRequires: pkgconfig(gtk+-3.0)
%if %{with system_harfbuzz}
BuildRequires: pkgconfig(harfbuzz) >= 3
%endif
%if %{with systemicu}
BuildRequires: pkgconfig(icu-i18n) >= 68.0
%else
Provides: bundled(icu) = 68.0
%endif
%if %{with system_jsoncpp}
BuildRequires: pkgconfig(jsoncpp)
%endif
BuildRequires: pkgconfig(krb5)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat) >= 58
BuildRequires: pkgconfig(libavutil)
%if %{with system_avif}
BuildRequires: pkgconfig(libavif)
%endif
BuildRequires: pkgconfig(libbrotlidec)
BuildRequires: pkgconfig(libbrotlienc)
BuildRequires: pkgconfig(libcares)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libevent)
BuildRequires: pkgconfig(libffi)
%if %{with system_jxl}
BuildRequires: pkgconfig(libjxl)
%endif
%if %{with system_nghttp2}
BuildRequires: pkgconfig(libnghttp2)
%endif
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libopenjp2)
BuildRequires: pkgconfig(libpci)
BuildRequires: pkgconfig(libpulse)
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(libva)
BuildRequires: pkgconfig(libwebp) >= 0.4.0
%if %{with system_woff2}
BuildRequires: pkgconfig(libwoff2dec)
%endif
BuildRequires: pkgconfig(libxml-2.0) >= 2.9.5
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(libxxhash)
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%if %{with system_yuv}
BuildRequires: pkgconfig(libyuv)
%endif
%if 0%{?fedora}
BuildRequires: minizip-compat-devel
%else
BuildRequires: pkgconfig(minizip)
%endif
BuildRequires: pkgconfig(nspr) >= 4.9.5
BuildRequires: pkgconfig(nss) >= 3.26
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(opus) >= 1.3.1
BuildRequires: pkgconfig(pangocairo)
BuildRequires: pkgconfig(re2)
%if %{with system_spirv}
%if 0%{?suse_version}
BuildRequires: spirv-headers
%else
BuildRequires: spirv-headers-devel
%endif
BuildRequires: pkgconfig(SPIRV-Tools) >= 2022.2
%endif
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xshmfence)
BuildRequires: pkgconfig(zlib)
%if 0%{?suse_version}
BuildRequires: libjpeg-devel >= 8.1
%else
BuildRequires: libjpeg-turbo-devel
%endif
%if %{with system_vpx}
BuildRequires: pkgconfig(vpx) >= 1.8.2
%endif
%if %{without clang}
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600 || 0%{?fedora}
BuildRequires: gcc >= 10
BuildRequires: gcc-c++ >= 10
%else
BuildRequires: gcc10
BuildRequires: gcc10-c++
%endif
%endif
%if %{with pipewire}
BuildRequires: pkgconfig(libpipewire-0.3)
BuildRequires: pkgconfig(libspa-0.2)
%endif
Requires: hicolor-icon-theme
Requires: google-roboto-fonts
Recommends: noto-coloremoji-fonts
# This required library is dlopened
%ifarch %ix86 %arm
Requires: libvulkan.so.1
%else
Requires: libvulkan.so.1()(64bit)
%endif
Provides: electron
Obsoletes: nodejs-electron-prebuilt < %{version}
Provides: nodejs-electron-prebuilt = %{version}
%description
Nodejs application: Build cross platform desktop apps with JavaScript, HTML, and CSS
%package devel
Summary: Electron development headers
Group: Development/Libraries/C and C++
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
Requires: nodejs-electron%{?_isa} = %{version}
Requires: pkgconfig(zlib)
%description devel
Development headers for Electron projects.
%prep
# Use stable path to source to make use of ccache
%autosetup -n src -p1
patch -R -p1 < %{SOURCE400}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
# Link system wayland-protocols-devel into where chrome expects them
mkdir -p third_party/wayland-protocols/kde/src
#ln -svfT %{_datadir}/wayland-protocols third_party/wayland-protocols/src
ln -svfT %{_datadir}/plasma-wayland-protocols third_party/wayland-protocols/kde/src/protocols
# Shim generators for replace_gn_files.py
cp -lv %{_sourcedir}/*.gn build/linux/unbundle/
# Fix the path to nodejs binary
mkdir -p third_party/node/linux/node-linux-x64/bin
ln -sf %{_bindir}/node third_party/node/linux/node-linux-x64/bin/node
# Fix eu-strip
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
mkdir -p buildtools/third_party/eu-strip/bin
ln -sf %{_bindir}/eu-strip buildtools/third_party/eu-strip/bin/eu-strip
# Fix shim header generation
sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \
tools/generate_shim_headers/generate_shim_headers.py
%if %{with systemicu}
find third_party/icu -type f ! -name "*.gn" -a ! -name "*.gni" -delete
%endif
%build
# GN sets lto on its own and we need just ldflag options, not cflags
%define _lto_cflags %{nil}
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
# Make sure python is python3
install -d -m 0755 python3-path
ln -sf %{_bindir}/python3 "$(pwd)/python3-path/python"
export PATH="$(pwd)/python3-path:${PATH}"
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
#some Fedora ports still try to build with LTO
ARCH_FLAGS=$(echo "%optflags"|sed 's/-f[^ ]*lto[^ ]*//g' )
%if 0%{?fedora}
# Fix base/allocator/allocator_shim.cc:408:2: error: #error This code cannot be
# used when exceptions are turned on.
ARCH_FLAGS="$(echo $ARCH_FLAGS | sed -e 's/ -fexceptions / /g')"
%endif
# for wayland
export CXXFLAGS="${ARCH_FLAGS} -I/usr/include/wayland -I/usr/include/libxkbcommon"
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
export CFLAGS="${CXXFLAGS}"
# Google has a bad coding style, using a macro `NOTREACHED()` that is not properly detected by GCC
# multiple times throughout the codebase. It is not possible to redefine the macro to __builtin_unreachable,
# as it has an astonishing syntax, behaving like an ostream (in debug builds it is supposed to trap and print an error message)
export CXXFLAGS="${CXXFLAGS} -Wno-error=return-type"
# As of 19.0.8, export_gin_v8platform_pageallocator_for_usage_outside_of_the_gin.patch
# introduces non-conformant C++ code (redefinition of PageAllocator)
# This is an Electron-specific problem that does not appear in Chromium.
export CXXFLAGS="${CXXFLAGS} -fpermissive"
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
# REDUCE DEBUG for C++ as it gets TOO large due to “heavy hemplate use in Blink”. See symbol_level below and chromium-102-compiler.patch
export CXXFLAGS="$(echo ${CXXFLAGS} | sed -e 's/-g / /g' -e 's/-g$//g')"
%ifarch %ix86 %arm
export CFLAGS="$(echo ${CFLAGS} | sed -e 's/-g /-g1 /g' -e 's/-g$/-g1/g')"
%endif
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
export LDFLAGS="%{?build_ldflags}"
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
%if %{with clang}
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
export CC=clang
export CXX=clang++
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
export AR=llvm-ar
export NM=llvm-nm
export RANLIB=llvm-ranlib
# else with clang
%else
%ifarch %ix86 %arm
#try to reduce memory
#%%if %{with gold}
#export LDFLAGS="${LDFLAGS} -Wl,--no-map-whole-files -Wl,--no-keep-memory -Wl,--no-keep-files-mapped"
#%%else
#export LDFLAGS="${LDFLAGS} -Wl,--no-keep-memory -Wl,--hash-size=30 -Wl,--reduce-memory-overheads"
#%%endif
%endif
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600 || 0%{?fedora}
export CC=gcc
export CXX=g++
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
export AR=gcc-ar
export NM=gcc-nm
export RANLIB=gcc-ranlib
%else
export CC=gcc-10
export CXX=g++-10
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
export AR=gcc-ar-10
export NM=gcc-nm-10
export RANLIB=gcc-ranlib-10
%endif
# endif with clang
%endif
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%if %{with lld}
export LDFLAGS="${LDFLAGS} -Wl,--as-needed -fuse-ld=lld"
%endif
%if %{with mold}
export LDFLAGS="${LDFLAGS} -Wl,--as-needed -fuse-ld=mold"
%endif
# do not eat all memory
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%ifarch %ix86 %arm
%limit_build -m 1200
%else
%limit_build -m 2600
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%endif
gn_system_libraries=(
brotli
ffmpeg
flac
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
flatbuffers
fontconfig
libdrm
libevent
libjpeg
libpng
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
libsecret
libusb
libwebp
libxml
libxslt
opus
re2
snappy
zlib
)
%if %{with system_abseil}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/abseil-cpp -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=(
absl_algorithm
absl_base
absl_cleanup
absl_container
absl_debugging
absl_flags
absl_functional
absl_hash
absl_memory
absl_meta
absl_numeric
absl_random
absl_status
absl_strings
absl_synchronization
absl_time
absl_types
)
rm third_party/abseil-cpp/absl/utility/BUILD.gn
%endif
%if %{with system_aom}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/libaom -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=( libaom )
%endif
%if %{with system_avif}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/libavif -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=( libavif )
%endif
%if %{with system_crc32c}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/crc32c -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=( crc32c )
%endif
%if %{with system_jxl}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/highway -type f ! -name "*.gn" -a ! -name "*.gni" -delete
find third_party/libjxl -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=( libjxl )
%endif
%if %{with system_dav1d}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/dav1d -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=( dav1d )
%endif
%if %{with system_double_conversion}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find base/third_party/double_conversion -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=( double-conversion )
%endif
%if %{with system_nvctrl}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/angle/src/third_party/libXNVCtrl/ -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=( libXNVCtrl )
%endif
%if %{with system_spirv}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
rm -rf third_party/swiftshader/third_party/SPIRV-Headers/include
find third_party/swiftshader/third_party/SPIRV-Tools/ -type f ! -name "*.gn" -a ! -name "*.gni" -delete
rm -rf third_party/vulkan-deps/spirv-headers/src/include
find third_party/vulkan-deps/spirv-tools/ -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=(
swiftshader-SPIRV-Headers
swiftshader-SPIRV-Tools
#The following can only be unbundled if you don't build DAWN (WebGPU)
vulkan-SPIRV-Headers
vulkan-SPIRV-Tools
)
%endif
%if %{with system_harfbuzz}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/harfbuzz-ng -type f ! -name "*.gn" -a ! -name "*.gni" -a ! -path "third_party/harfbuzz-ng/utils/hb_scoped.h" -delete
gn_system_libraries+=( harfbuzz-ng )
%endif
%if %{with system_freetype}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/freetype -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=( freetype )
%endif
%if %{with systemicu}
gn_system_libraries+=( icu )
%endif
%if %{with system_vpx}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/libvpx -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=( libvpx )
%endif
%if %{with system_woff2}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/woff2 -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=( woff2 )
%endif
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%if %{with system_yuv}
find third_party/libyuv -type f ! -name "*.gn" -a ! -name "*.gni" -delete
gn_system_libraries+=( libyuv )
%endif
build/linux/unbundle/replace_gn_files.py --system-libraries ${gn_system_libraries[@]}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%if %{with system_nghttp2}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/electron_node/deps/nghttp2 -type f ! -name "*.gn" -a ! -name "*.gni" -a ! -name "*.gyp" -a ! -name "*.gypi" -delete
%endif
%if %{with system_llhttp}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/electron_node/deps/llhttp -type f ! -name "*.gn" -a ! -name "*.gni" -a ! -name "*.gyp" -a ! -name "*.gypi" -delete
%endif
%if %{with system_histogram}
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
find third_party/electron_node/deps/histogram -type f ! -name "*.gn" -a ! -name "*.gni" -a ! -name "*.gyp" -a ! -name "*.gypi" -delete
%endif
%if %{with system_llvm}
rm -rf third_party/swiftshader/third_party/llvm-10.0
%endif
# Create the configuration for GN
# Available options: out/Release/gn args --list out/Release/
myconf_gn=""
myconf_gn+=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\""
myconf_gn+=" host_toolchain=\"//build/toolchain/linux/unbundle:default\""
myconf_gn+=" use_custom_libcxx=false"
%ifarch %ix86
myconf_gn+=" host_cpu=\"x86\""
%endif
%ifarch x86_64
myconf_gn+=" host_cpu=\"x64\""
%endif
%ifarch aarch64
myconf_gn+=" host_cpu=\"arm64\""
%endif
%ifarch %arm
myconf_gn+=" host_cpu=\"arm\""
# Disable requirement of neon instructions
myconf_gn+=" arm_use_neon=false"
%endif
myconf_gn+=" host_os=\"linux\""
myconf_gn+=" is_debug=false"
myconf_gn+=" dcheck_always_on=false"
myconf_gn+=" enable_nacl=false"
%if %{with subzero}
myconf_gn+=" use_swiftshader_with_subzero=true"
%else
myconf_gn+=" use_swiftshader_with_subzero=false"
%endif
myconf_gn+=" is_component_ffmpeg=true"
myconf_gn+=" use_cups=true"
myconf_gn+=" use_aura=true"
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
# This requires the non-free closure_compiler.jar. If we ever need to build chrome with JS typecheck,
# we would need to package it separately and compile it from sources, since the chrome git repo
# provides only a compiled binary.
myconf_gn+=" enable_js_type_check=false"
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
# The option below get overriden by whatever is in CFLAGS/CXXFLAGS, so they affect only C++ code.
# symbol_level=2 is full debug
# symbol_level=1 is enough info for stacktraces
# symbol_level=0 disable debug
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
# blink (HTML engine) and v8 (js engine) are template-heavy, trying to compile them with full debug leads to linker errors
%ifnarch %ix86 %arm aarch64
myconf_gn+=" symbol_level=2"
myconf_gn+=" blink_symbol_level=1"
myconf_gn+=" v8_symbol_level=1"
%endif
%ifarch %ix86 %arm
myconf_gn+=" symbol_level=0" #Sorry, no debug on 32bit for now.
myconf_gn+=" blink_symbol_level=0" #Sorry, no debug on 32bit for now.
myconf_gn+=" v8_symbol_level=0" #Sorry, no debug on 32bit for now.
%endif
%ifarch aarch64 #“No space left on device” with symbol level 2
myconf_gn+=" symbol_level=1"
myconf_gn+=" blink_symbol_level=1"
myconf_gn+=" v8_symbol_level=1"
%endif
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
myconf_gn+=" use_kerberos=true"
myconf_gn+=" enable_vr=false"
myconf_gn+=" optimize_webui=false"
myconf_gn+=" enable_reading_list=false"
myconf_gn+=" enable_reporting=false"
myconf_gn+=" build_with_tflite_lib=false"
myconf_gn+=" safe_browsing_mode=0"
#Do not build Chromecast
myconf_gn+=" enable_openscreen=false"
myconf_gn+=" enable_media_remoting=false"
myconf_gn+=" enable_library_cdms=false"
myconf_gn+=" use_pulseaudio=true link_pulseaudio=true"
myconf_gn+=" is_component_build=false"
myconf_gn+=" use_sysroot=false"
myconf_gn+=" fatal_linker_warnings=false"
myconf_gn+=" use_allocator=\"partition\""
myconf_gn+=" use_allocator_shim=true"
myconf_gn+=" use_partition_alloc=true"
myconf_gn+=" disable_fieldtrial_testing_config=true"
myconf_gn+=" use_gnome_keyring=false"
myconf_gn+=" use_unofficial_version_number=false"
myconf_gn+=" use_lld=false"
%if %{with vaapi}
myconf_gn+=" use_vaapi=true"
%endif
myconf_gn+=" treat_warnings_as_errors=false"
myconf_gn+=" use_dbus=true"
myconf_gn+=" enable_vulkan=true"
myconf_gn+=" icu_use_data_file=false"
myconf_gn+=" media_use_openh264=false"
myconf_gn+=" rtc_use_h264=false"
myconf_gn+=" use_v8_context_snapshot=true"
myconf_gn+=" v8_use_external_startup_data=true"
myconf_gn+=" use_system_zlib=true"
myconf_gn+=" use_system_libjpeg=true"
myconf_gn+=" use_system_libpng=true"
myconf_gn+=" use_system_lcms2=true"
myconf_gn+=" use_system_libopenjpeg2=true"
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
myconf_gn+=" use_system_wayland_scanner=true"
%if %{with system_harfbuzz}
myconf_gn+=" use_system_harfbuzz=true"
%endif
%if %{with system_freetype}
myconf_gn+=" use_system_freetype=true"
%endif
myconf_gn+=" use_system_cares=true"
%if %{with system_nghttp2}
myconf_gn+=" use_system_nghttp2=true"
%endif
%if %{with system_llhttp}
myconf_gn+=" use_system_llhttp=true"
%endif
%if %{with system_histogram}
myconf_gn+=" use_system_histogram=true"
%endif
%if %{with clang}
myconf_gn+=" is_clang=true clang_base_path=\"/usr\" clang_use_chrome_plugins=false"
myconf_gn+=" use_lld=true"
# PGO is broken rn
myconf_gn+=" chrome_pgo_phase=0"
%else
myconf_gn+=" is_clang=false"
%if %{with gold}
myconf_gn+=" use_gold=true"
%else
myconf_gn+=" use_gold=false"
%endif
%endif
%if %{with lto}
myconf_gn+=" use_thin_lto=false"
%if %{without clang}
myconf_gn+=" gcc_lto=true"
%endif
# endif with lto
%endif
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
%ifarch %arm
# Bundled libaom is broken on ARMv7
%if %{without system_aom}
# [74796s] FAILED: v8_context_snapshot_generator
# [74796s] python3 "../../build/toolchain/gcc_link_wrapper.py" --output="./v8_context_snapshot_generator" -- g++ -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -rdynamic -Wl,-z,defs -Wl,--as-needed -pie -Wl,--disable-new-dtags -Wl,-rpath=\$ORIGIN -Wl,--as-needed -fuse-ld=lld -o "./v8_context_snapshot_generator" -Wl,--start-group @"./v8_context_snapshot_generator.rsp" -Wl,--end-group -latomic -ldl -lpthread -lrt -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -ljsoncpp -labsl_base -labsl_raw_logging_internal -labsl_log_severity -labsl_spinlock_wait -labsl_cord -labsl_cordz_info -labsl_cord_internal -labsl_cordz_functions -labsl_exponential_biased -labsl_cordz_handle -labsl_synchronization -labsl_graphcycles_internal -labsl_stacktrace -labsl_symbolize -labsl_debugging_internal -labsl_demangle_internal -labsl_malloc_internal -labsl_time -labsl_civil_time -labsl_time_zone -labsl_bad_optional_access -labsl_strings -labsl_strings_internal -labsl_int128 -labsl_throw_delegate -labsl_hash -labsl_city -labsl_bad_variant_access -labsl_low_level_hash -labsl_raw_hash_set -labsl_hashtablez_sampler -labsl_failure_signal_handler -labsl_examine_stack -labsl_random_distributions -labsl_random_seed_sequences -labsl_random_internal_pool_urbg -labsl_random_internal_randen -labsl_random_internal_randen_hwaes -labsl_random_internal_randen_hwaes_impl -labsl_random_internal_randen_slow -labsl_random_internal_platform -labsl_random_internal_seed_material -labsl_random_seed_gen_exception -labsl_status -labsl_str_format_internal -labsl_strerror -labsl_statusor -licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldouble-conversion -levent -lz -ljpeg -lpng16 -lxml2 -lxslt -lresolv -lgio-2.0 -lbrotlidec -lwebpdemux -lwebpmux -lwebp -lfreetype -lexpat -lfontconfig -lharfbuzz-subset -lharfbuzz -lyuv -lopus -lvpx -lm -ldav1d -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lpipewire-0.3 -lgbm -lEGL -ldrm -lcrc32c -lbsd -lxcb -lxkbcommon -lwayland-client -ldbus-1 -lre2 -lpangocairo-1.0 -lpango-1.0 -lcairo -latk-1.0 -latk-bridge-2.0 -lasound -lpulse -lavcodec -lavformat -lavutil -lXi -lpci -lxxhash -lXNVCtrl -lsnappy -lavif -ljxl -lwoff2dec -latspi
# [74796s] ld.lld: error: undefined symbol: aom_arm_cpu_caps
# [74796s] >>> referenced by av1_rtcd.h:1079 (../../third_party/libaom/source/config/linux/arm/config/av1_rtcd.h:1079)
# [74796s] >>> libaom/av1_rtcd.o:(setup_rtcd_internal) in archive obj/third_party/libaom/libaom.a
# [74796s] >>> referenced by aom_dsp_rtcd.h:3560 (../../third_party/libaom/source/config/linux/arm/config/aom_dsp_rtcd.h:3560)
# [74796s] >>> libaom/aom_dsp_rtcd.o:(setup_rtcd_internal) in archive obj/third_party/libaom/libaom.a
# [74796s] >>> referenced by aom_scale_rtcd.h:162 (../../third_party/libaom/source/config/linux/arm/config/aom_scale_rtcd.h:162)
# [74796s] >>> libaom/aom_scale_rtcd.o:(setup_rtcd_internal) in archive obj/third_party/libaom/libaom.a
myconf_gn+=" enable_libaom=false"
%endif
%endif
%if %{with pipewire}
myconf_gn+=" rtc_use_pipewire=true rtc_link_pipewire=true"
%endif
# Do not build WebGPU support. It is huge and not used by ANY known apps (we would know if it was — it's hidden behind an experimental flag).
myconf_gn+=" use_dawn=false"
# The proprietary codecs just force the chromium to say they can use it and
# offload the actual computation to the ffmpeg, otherwise the chromium
# won't be able to load the codec even if the library can handle it
myconf_gn+=" proprietary_codecs=true"
myconf_gn+=" ffmpeg_branding=\"Chrome\""
# GN does not support passing cflags:
# https://bugs.chromium.org/p/chromium/issues/detail?id=642016
gn gen out/Release --args="import(\"//electron/build/args/release.gn\") ${myconf_gn}"
ninja -v %{?_smp_mflags} -C out/Release electron
ninja -v %{?_smp_mflags} -C out/Release copy_headers
%install
install -d -m 0755 %{buildroot}%{_bindir}
install -d -m 0755 %{buildroot}%{_includedir}/electron
install -d -m 0755 %{buildroot}%{_libdir}/electron
install -d -m 0755 %{buildroot}%{_libdir}/electron/resources
install -d -m 0755 %{buildroot}%{_datadir}/applications
install -d -m 0755 %{buildroot}%{_datadir}/pixmaps/
install -d -m 0755 %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/
install -pm 0755 %{SOURCE10} %{buildroot}%{_bindir}/%{mod_name}
sed -i 's[XXXLIBDIRXXX[%{_libdir}[g' %{buildroot}%{_bindir}/%{mod_name}
install -pm 0644 electron/default_app/icon.png %{buildroot}%{_datadir}/pixmaps/%{mod_name}.png
install -pm 0644 %{SOURCE12} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/electron-symbolic.svg
desktop-file-install --dir %{buildroot}%{_datadir}/applications/ %{SOURCE11}
pushd out/Release
rsync -av *.bin *.pak %{buildroot}%{_libdir}/electron/
install -pm 0644 resources/default_app.asar -t %{buildroot}%{_libdir}/electron/resources/
rsync -av --exclude '*.pak.info' locales %{buildroot}%{_libdir}/electron/
install -pm 0755 electron -t %{buildroot}%{_libdir}/electron/
install -pm 0755 chrome_crashpad_handler -t %{buildroot}%{_libdir}/electron/
install -pm 0755 libEGL.so -t %{buildroot}%{_libdir}/electron/
install -pm 0755 libGLESv2.so -t %{buildroot}%{_libdir}/electron/
install -pm 0755 libvk_swiftshader.so -t %{buildroot}%{_libdir}/electron/
install -pm 0644 vk_swiftshader_icd.json -t %{buildroot}%{_libdir}/electron/
popd
%if %{without systemicu}
rsync -av third_party/icu/common/icudtl.dat %{buildroot}%{_libdir}/electron/
%endif
install -pTm644 electron/ELECTRON_VERSION %{buildroot}%{_libdir}/electron/version
# Install folders required for webapps
mkdir -p "%{buildroot}%{_sysconfdir}/webapps"
mkdir -p "%{buildroot}%{_datadir}/webapps"
rsync -av out/Release/gen/node_headers/include/node/* %{buildroot}%{_includedir}/electron
%files
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
%license electron/LICENSE electron/chromium_src/LICENSE.chromium third_party/blink/LICENSE_FOR_ABOUT_CREDITS
%doc electron/README.md
%{_bindir}/electron
%{_datadir}/pixmaps/electron.png
%{_datadir}/icons/hicolor/symbolic/apps/electron-symbolic.svg
%{_datadir}/applications/electron.desktop
%{_libdir}/electron/
%dir %{_sysconfdir}/webapps
%dir %{_datadir}/webapps
%files devel
%{_includedir}/electron
%changelog