public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Carl George <carlwgeorge@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/golang-github-evanw-esbuild] epel9: Disable nodejs-esbuild subpackage
Date: Tue, 09 Jun 2026 13:18:58 GMT	[thread overview]
Message-ID: <178101113888.1.10794428578471440079.rpms-golang-github-evanw-esbuild-0c9cd936b60d@fedoraproject.org> (raw)

            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

                 reply	other threads:[~2026-06-09 13:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178101113888.1.10794428578471440079.rpms-golang-github-evanw-esbuild-0c9cd936b60d@fedoraproject.org \
    --to=carlwgeorge@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox