From 2cb7d235c89467a3f2a6272dab0e3bd620e22269 Mon Sep 17 00:00:00 2001 From: tjuhasz Date: Tue, 21 Jul 2026 14:49:55 +0200 Subject: [PATCH] Regenerete sources. Switching to sourcing dependencies from remys fork to npmjs. This allows us to regenerete dependencies and fix CVEs with simple source replacement. Resolves: RHEL-208652 --- nodejs-nodemon.spec | 10 +++++----- nodemon-tarball.sh | 8 ++++---- sources | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/nodejs-nodemon.spec b/nodejs-nodemon.spec index 909ac09..9b91a40 100644 --- a/nodejs-nodemon.spec +++ b/nodejs-nodemon.spec @@ -8,8 +8,8 @@ Name: nodejs-%{npm_name} Version: 3.1.14 Release: %autorelease Summary: Simple monitor script for use during development of a node.js app -License: ISC AND MIT -URL: https://github.com/remy/nodemon +License: MIT +URL: https://www.npmjs.com/package/nodemon Source0: %{npm_name}-v%{version}-bundled.tar.gz BuildRequires: nodejs-devel @@ -40,7 +40,7 @@ replacement wrapper for node, think of it as replacing the word "node" on the command line when you run your script. %prep -%setup -q -n %{npm_name}-%{version} +%autosetup -p1 -n package %build @@ -49,7 +49,7 @@ on the command line when you run your script. %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} -cp -pr doc bin lib package.json website node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name} +cp -pr doc bin lib package.json node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name} mkdir -p %{buildroot}%{_bindir} ln -sf %{nodejs_sitelib}/%{npm_name}/bin/nodemon.js %{buildroot}%{_bindir}/nodemon @@ -64,7 +64,7 @@ npm run test %endif %files -%doc CODE_OF_CONDUCT.md doc faq.md README.md +%doc doc README.md %{nodejs_sitelib}/%{npm_name} %{_bindir}/nodemon diff --git a/nodemon-tarball.sh b/nodemon-tarball.sh index e9c1502..da0b0b2 100644 --- a/nodemon-tarball.sh +++ b/nodemon-tarball.sh @@ -1,7 +1,7 @@ #!/bin/sh version=$(rpm -q --specfile --qf='%{version}\n' nodejs-nodemon.spec | head -n1) -wget https://github.com/remy/nodemon/archive/v$version.tar.gz -tar -zxf v$version.tar.gz -cd nodemon-$version -npm install --production && cd .. && tar -zcf nodemon-v$version-bundled.tar.gz nodemon-$version +wget https://registry.npmjs.org/nodemon/-/nodemon-$version.tgz +tar -zxf nodemon-$version.tgz +cd package +npm install --production && rm -rf Dockerfile && cd .. && tar -zcf nodemon-v$version-bundled.tar.gz package diff --git a/sources b/sources index 97a663e..b907953 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (nodemon-v3.1.14-bundled.tar.gz) = a903545a8bb4b99f0c0da15b065b865555a3cc704e603bf80371aab36b6ebfb8d288772747e80292b90b47b83d65c5289f4148a0572c1677bd7b02b2bcc05323 +SHA512 (nodemon-v3.1.14-bundled.tar.gz) = b4e57df16568e9f5338d4e52efef358effa8f520d056004d4d5bea2ef9094cb064789a691096b6585eb7c260a6d3f2fd5e2227610f345ccf856daccfb0aa594d