public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/golang-github-evanw-esbuild] epel9: Disable nodejs-esbuild subpackage
@ 2026-06-09 13:18 Carl George
0 siblings, 0 replies; only message in thread
From: Carl George @ 2026-06-09 13:18 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/golang-github-evanw-esbuild
Branch : epel9
Commit : 0c9cd936b60d912ca2fda9e051f61f07bc3546f6
Author : Carl George <carlwgeorge@gmail.com>
Date : 2026-06-08T12:56:36-05:00
Stats : +12/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/golang-github-evanw-esbuild/c/0c9cd936b60d912ca2fda9e051f61f07bc3546f6?branch=epel9
Log:
Disable nodejs-esbuild subpackage
... rhbz#2457184
---
diff --git a/golang-github-evanw-esbuild.spec b/golang-github-evanw-esbuild.spec
index 1702308..c14d0a5 100644
--- a/golang-github-evanw-esbuild.spec
+++ b/golang-github-evanw-esbuild.spec
@@ -1,6 +1,8 @@
# Generated by go2rpm 1.12.0
%bcond_without check
+%bcond_with esm
+
# https://github.com/evanw/esbuild
%global goipath github.com/evanw/esbuild
Version: 0.27.2
@@ -22,18 +24,22 @@ License: MIT
URL: %{gourl}
Source: %{gosource}
+%if %{with esm}
BuildRequires: nodejs
BuildRequires: nodejs-devel
+%endif
%description %{common_description}
%gopkg
+%if %{with esm}
%package -n nodejs-esbuild
Summary: ESBuild ESM module
Requires: %{name} = %{version}-%{release}
%description -n nodejs-esbuild %{common_description} (JavaScript library)
+%endif
%prep
%goprep -A
@@ -44,14 +50,17 @@ Requires: %{name} = %{version}-%{release}
%build
%gobuild -o %{gobuilddir}/bin/esbuild %{goipath}/cmd/esbuild
+%if %{with esm}
# Build the "esbuild" ESM module
node scripts/esbuild.js %{gobuilddir}/bin/esbuild --neutral
+%endif
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
+%if %{with esm}
# Detect node platform name (e.g., "linux-x64")
node_platform=$(node -p 'process.platform + "-" + process.arch')
@@ -63,6 +72,7 @@ install -m 0644 -vp npm/esbuild/package.json %{buildroot}%{nodejs_sitelib}/esbui
install -m 0755 -vd %{buildroot}%{nodejs_sitelib}/@esbuild/${node_platform}/bin
install -m 0644 -vp npm/@esbuild/${node_platform}/package.json %{buildroot}%{nodejs_sitelib}/@esbuild/${node_platform}/
ln -s %{_bindir}/esbuild %{buildroot}%{nodejs_sitelib}/@esbuild/${node_platform}/bin/esbuild
+%endif
%if %{with check}
%check
@@ -81,8 +91,10 @@ ln -s %{_bindir}/esbuild %{buildroot}%{nodejs_sitelib}/@esbuild/$
%gopkgfiles
+%if %{with esm}
%files -n nodejs-esbuild
%{nodejs_sitelib}/*esbuild
+%endif
%changelog
%autochangelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-09 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 13:18 [rpms/golang-github-evanw-esbuild] epel9: Disable nodejs-esbuild subpackage Carl George
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox