2019-11-05 19:46:16 +00:00
|
|
|
%{?nodejs_find_provides_and_requires}
|
|
|
|
%global npm_name nodemon
|
|
|
|
|
|
|
|
# Disable until dependencies are met
|
|
|
|
%global enable_tests 0
|
|
|
|
|
|
|
|
Name: nodejs-%{npm_name}
|
2023-11-15 10:51:33 +00:00
|
|
|
Version: 3.0.1
|
2019-11-05 19:46:16 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Simple monitor script for use during development of a node.js app
|
|
|
|
License: MIT
|
2023-11-15 10:51:33 +00:00
|
|
|
URL: https://www.npmjs.com/package/nodemon
|
2019-11-05 19:46:16 +00:00
|
|
|
Source0: %{npm_name}-v%{version}-bundled.tar.gz
|
|
|
|
|
2023-11-15 10:51:33 +00:00
|
|
|
Patch1: 0001-deps-glob-parent-Resolve-ReDoS-vulnerability-from-CV.patch
|
|
|
|
|
2019-11-05 19:46:16 +00:00
|
|
|
BuildRequires: nodejs-devel
|
|
|
|
BuildRequires: nodejs-packaging
|
|
|
|
BuildRequires: npm
|
|
|
|
|
|
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Simple monitor script for use during development of a node.js app.
|
|
|
|
|
|
|
|
For use during development of a node.js based application.
|
|
|
|
|
2023-11-15 10:51:33 +00:00
|
|
|
nodemon will watch the files in the directory in which nodemon
|
|
|
|
was started, and if any files change, nodemon will automatically
|
2019-11-05 19:46:16 +00:00
|
|
|
restart your node application.
|
|
|
|
|
2023-11-15 10:51:33 +00:00
|
|
|
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"
|
2019-11-05 19:46:16 +00:00
|
|
|
on the command line when you run your script.
|
|
|
|
|
|
|
|
%prep
|
2023-11-15 10:51:33 +00:00
|
|
|
%autosetup -p1 -n package
|
2019-11-05 19:46:16 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
# nothing to do
|
|
|
|
# tarball is bundled in --production mode, so no need to prune
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
2023-11-15 10:51:33 +00:00
|
|
|
cp -pr doc bin lib package.json node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
2019-11-05 19:46:16 +00:00
|
|
|
|
|
|
|
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
|
2023-11-15 10:51:33 +00:00
|
|
|
%doc doc README.md
|
2019-11-05 19:46:16 +00:00
|
|
|
%{nodejs_sitelib}/%{npm_name}
|
|
|
|
%{_bindir}/nodemon
|
|
|
|
|
|
|
|
%changelog
|
2023-11-15 10:51:33 +00:00
|
|
|
* Wed Aug 23 2023 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.1-1
|
|
|
|
- Rebase to 3.0.1
|
|
|
|
- Resolves: CVE-2022-25883
|
|
|
|
|
|
|
|
* Mon Mar 20 2023 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.20-2
|
|
|
|
- Patch bundled glob-parent
|
|
|
|
- Resolves: CVE-2021-35065
|
|
|
|
|
|
|
|
* Wed Nov 09 2022 Jan Staněk <jstanek@redhat.com> - 2.0.20-1
|
|
|
|
- Rebase to 2.0.20
|
|
|
|
Resolves: CVE-2022-3517
|
|
|
|
|
|
|
|
* Tue Jul 19 2022 Jan Staněk <jstanek@redhat.com> - 2.0.19-1
|
|
|
|
- Rebase to 2.0.19
|
|
|
|
Resolves: CVE-2022-33987
|
|
|
|
|
|
|
|
* Tue Nov 30 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 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 <zsvetlik@redhat.com> - 2.0.7-1
|
|
|
|
- Resolves: RHBZ#1953991
|
|
|
|
- Update to 2.0.7 to resolve CVE-2020-28469
|
|
|
|
|
2021-02-16 07:40:18 +00:00
|
|
|
* Wed May 06 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.3-1
|
2023-11-15 10:51:33 +00:00
|
|
|
- Updated
|
2021-02-16 07:40:18 +00:00
|
|
|
|
2019-11-05 19:46:16 +00:00
|
|
|
* Mon Aug 13 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.18.3-1
|
|
|
|
- Resolves: #1615413
|
|
|
|
- Updated
|
|
|
|
- bundled
|
|
|
|
|
|
|
|
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-2
|
|
|
|
- rh-nodejs8 rebuild
|
|
|
|
|
|
|
|
* Mon Oct 31 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-1
|
|
|
|
- Updated with script
|
|
|
|
|
|
|
|
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.8.1-6
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.8.1-5
|
|
|
|
- Enable scl macros
|
|
|
|
|
|
|
|
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-2
|
|
|
|
- Fix dependencies
|
|
|
|
|
|
|
|
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-1
|
|
|
|
- Initial package
|