SHA256
1
0
forked from nodejs/nodejs26

Remove some legacy spec file sections

This commit is contained in:
2026-06-19 19:52:11 +02:00
parent 14a809302d
commit 3af140e3bb
+3 -32
View File
@@ -44,24 +44,14 @@ Release: 0
%endif
# nodejs20+ is not for SLE12
%if %{node_version_number} >= 20 && 0%{?suse_version} > 0 && 0%{?suse_version} < 1500
%if 0%{?suse_version} < 1500
ExclusiveArch do_not_build
%endif
%if %node_version_number >= 12
%define openssl_req_ver 1.1.1
%else
%if %node_version_number >= 10
%define openssl_req_ver 1.1.0
%else
%define openssl_req_ver 1.0.2
%endif
%endif
%bcond_with valgrind_tests
%if %{node_version_number} >= 12
# turn on LTO only on non-32bit arches
%ifarch %{ix86} %{arm}
%bcond_with nodejs_lto
@@ -69,18 +59,10 @@ ExclusiveArch do_not_build
%bcond_without nodejs_lto
%endif
%else
%bcond_with nodejs_lto
%endif
%if !0%{?with nodejs_lto}
%define _lto_cflags %{nil}
%endif
%if 0%{?suse_version} == 1110
%define _libexecdir %{_exec_prefix}/lib
%endif
%if 0%{?suse_version} >= 1500 || 0%{?sle_version} >= 120400 || 0%{?fedora_version} >= 35
%bcond_with intree_openssl
%else
@@ -128,7 +110,7 @@ Source1: https://nodejs.org/dist/v%{version}/SHASUMS256.txt
Source2: https://nodejs.org/dist/v%{version}/SHASUMS256.txt.sig
Source3: nodejs.keyring
Source10: update_npm_tarball.sh
## Source10: update_npm_tarball.sh
## Source11: node_modules.obscpio
Source20: bash_output_helper.bash
Source21: README.md
@@ -501,10 +483,7 @@ and their package managers.
%package docs
Summary: Node.js API documentation
Group: Documentation/Other
%if 0%{?suse_version} >= 1200
# using noarch subpackage seems to break debuginfo on older releases
BuildArch: noarch
%endif
%description docs
The API documentation for the Node.js JavaScript runtime.
@@ -753,17 +732,13 @@ export NODE_TEST_NO_INTERNET=1
rm -f test/parallel/test-fs-utimes-y2K38.js
%endif
%if %{node_version_number} >= 12
find test \( -name \*.out -or -name \*.js -or -name \*.snapshot \) -exec sed -i 's,Use `node ,Use `node%{node_version_number} ,' {} \;
%endif
%if %{node_version_number} >= 20
rm test/parallel/test-strace-openat-openssl.js
# https://github.com/nodejs/node/pull/57269 -- nghttp2 dropped priority support
rm test/parallel/test-http2-client-set-priority.js
rm test/parallel/test-http2-priority-event.js
%endif
# Update the python3 executable name to point at forced python version
# needed to fix build on SLE12 SP5
@@ -785,16 +760,12 @@ rm test/parallel/test-dns-cancel-reverse-lookup.js \
test/parallel/test-dns-resolveany.js
# multicast test fail since no socket?
rm test/parallel/test-dgram-membership.js
%if %{node_version_number} > 20
# missing ICU test data for 15.6/15.7/SLFO
ln test/fixtures/icu/localizationData-v75.1.json test/fixtures/icu/localizationData-v73.2.json
ln test/fixtures/icu/localizationData-v76.1.json test/fixtures/icu/localizationData-v77.1.json
%endif
%if %{node_version_number} >= 18
# OBS broken /etc/hosts -- https://github.com/openSUSE/open-build-service/issues/13104
rm test/parallel/test-net-socket-connect-without-cb.js test/parallel/test-tcp-wrap-listen.js
%endif
# rm test/parallel/test-net-socket-connect-without-cb.js test/parallel/test-tcp-wrap-listen.js
%if 0%{?fedora_version}
# test/parallel/test-crypto-certificate.js requires OPENSSL_ENABLE_MD5_VERIFY=1