commit d6e1249d8d9c275518afd615bc941680290eff15 Author: James Antill Date: Mon Feb 20 02:00:36 2023 -0500 Import rpm: 5055d9ea39a2b678a20ae098d100e6d1d7a0560b diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5023da7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/nodemon-v2.0.20-bundled.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..cfddba7 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# nodejs-nodemon + +The nodejs-nodemon package \ No newline at end of file diff --git a/nodejs-nodemon.spec b/nodejs-nodemon.spec new file mode 100644 index 0000000..4292d46 --- /dev/null +++ b/nodejs-nodemon.spec @@ -0,0 +1,129 @@ +%{?nodejs_find_provides_and_requires} +%global npm_name nodemon + +# Disable until dependencies are met +%global enable_tests 0 + +Name: nodejs-%{npm_name} +Version: 2.0.20 +Release: 2%{?dist} +Summary: Simple monitor script for use during development of a node.js app +License: MIT +URL: https://www.npmjs.com/package/nodemon +Source0: %{npm_name}-v%{version}-bundled.tar.gz + +BuildRequires: nodejs-devel +BuildRequires: nodejs-packaging +BuildRequires: npm + +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch + +%if 0%{?enable_tests} +BuildRequires: npm(async) +BuildRequires: npm(coffee-script) +BuildRequires: npm(husky) +BuildRequires: npm(istanbul) +BuildRequires: npm(jscs) +BuildRequires: npm(mocha) +BuildRequires: npm(proxyquire) +BuildRequires: npm(semantic-release) +BuildRequires: npm(should) +%endif + +%description +Simple monitor script for use during development of a node.js app. + +For use during development of a node.js based application. + +nodemon will watch the files in the directory in which nodemon +was started, and if any files change, nodemon will automatically +restart your node application. + +nodemon does not require any changes to your code or method of +development. nodemon simply wraps your node application and keeps +an eye on any files that have changed. Remember that nodemon is a +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 package + +%build + +# nothing to do +# tarball is bundled in --production mode, so no need to prune + +%install +mkdir -p %{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 + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +npm run test +%endif + +%files +%doc doc README.md +%{nodejs_sitelib}/%{npm_name} +%{_bindir}/nodemon + +%changelog +* Fri Dec 02 2022 Jan Staněk - 2.0.20-1 +- Record CVE fixed in the current or previous upstream versions + Resolves: CVE-2021-44906 + +* Wed Nov 16 2022 Zuzana Svetlikova - 2.0.20-1 +- Rebase to 2.0.20 +- Resolves: CVE-2022-3517 +- Resolves: #2142841 + +* Wed Aug 03 2022 Zuzana Svetlikova - 2.0.19-2 +- Switched from autosetup +- Removed CODE_OF_CONDUCT.md and faq.md which is not present in npmjs package, might switch to GH sources in the future +- Resolves: RHBZ#2108141 + +* Mon Jul 25 2022 Zuzana Svetlikova - 2.0.19-1 +- Rebase to 2.0.19 +- Resolves CVE-2022-33987 +- Resolves: RHBZ#2108141 + +* Tue Nov 30 2021 Zuzana Svetlikova - 2.0.15-1 +- Resolves: RHBZ#2005419 +- Resolves CVE-2020-28469 +- Rebase to newest version +- Change source to npmjs.com + +* Tue May 11 2021 Zuzana Svetlikova - 2.0.7-1 +- Resolves: RHBZ#1953991 +- Update to 2.0.7 to resolve CVE-2020-28469 + +* Wed May 06 2020 Zuzana Svetlikova - 2.0.3-1 +- Updated + +* Mon Aug 13 2018 Zuzana Svetlikova - 1.18.3-1 +- Resolves: #1615413 +- Updated +- bundled + +* Mon Jul 03 2017 Zuzana Svetlikova - 1.11.0-2 +- rh-nodejs8 rebuild + +* Mon Oct 31 2016 Zuzana Svetlikova - 1.11.0-1 +- Updated with script + +* Sun Feb 14 2016 Zuzana Svetlikova - 1.8.1-6 +- rebuilt + +* Wed Jan 06 2016 Tomas Hrcka - 1.8.1-5 +- Enable scl macros + +* Thu Dec 17 2015 Troy Dawson - 1.8.1-2 +- Fix dependencies + +* Wed Dec 16 2015 Troy Dawson - 1.8.1-1 +- Initial package diff --git a/nodemon-tarball.sh b/nodemon-tarball.sh new file mode 100644 index 0000000..e9c1502 --- /dev/null +++ b/nodemon-tarball.sh @@ -0,0 +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 diff --git a/sources b/sources new file mode 100644 index 0000000..535de64 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA1 (nodemon-v2.0.20-bundled.tar.gz) = 5d22c6e6d6f9c7b8f22a0286ec5e23eb1e6c3947