3ea097
%{?nodejs_find_provides_and_requires}
3ea097
%global npm_name nodemon
3ea097
3ea097
# Disable until dependencies are met
3ea097
%global enable_tests 0
3ea097
3ea097
Name:          nodejs-%{npm_name}
debf2b
Version:       2.0.20
f16ce7
Release:       2%{?dist}
3ea097
Summary:       Simple monitor script for use during development of a node.js app
3ea097
License:       MIT
3ea097
URL:           https://www.npmjs.com/package/nodemon
3ea097
Source0:       %{npm_name}-v%{version}-bundled.tar.gz
3ea097
f16ce7
Patch1:        0001-deps-glob-parent-Resolve-ReDoS-vulnerability-from-CV.patch
f16ce7
3ea097
BuildRequires: nodejs-devel
3ea097
BuildRequires: nodejs-packaging
3ea097
BuildRequires: npm
3ea097
3ea097
ExclusiveArch: %{nodejs_arches} noarch
3ea097
BuildArch:     noarch
3ea097
3ea097
%if 0%{?enable_tests}
3ea097
BuildRequires:  npm(async)
3ea097
BuildRequires:  npm(coffee-script)
3ea097
BuildRequires:  npm(husky)
3ea097
BuildRequires:  npm(istanbul)
3ea097
BuildRequires:  npm(jscs)
3ea097
BuildRequires:  npm(mocha)
3ea097
BuildRequires:  npm(proxyquire)
3ea097
BuildRequires:  npm(semantic-release)
3ea097
BuildRequires:  npm(should)
3ea097
%endif
3ea097
3ea097
%description
3ea097
Simple monitor script for use during development of a node.js app.
3ea097
3ea097
For use during development of a node.js based application.
3ea097
3ea097
nodemon will watch the files in the directory in which nodemon
3ea097
was started, and if any files change, nodemon will automatically
3ea097
restart your node application.
3ea097
3ea097
nodemon does not require any changes to your code or method of
3ea097
development. nodemon simply wraps your node application and keeps
3ea097
an eye on any files that have changed. Remember that nodemon is a
3ea097
replacement wrapper for node, think of it as replacing the word "node"
3ea097
on the command line when you run your script.
3ea097
3ea097
%prep
f16ce7
%autosetup -p1 -n package
3ea097
3ea097
%build
3ea097
3ea097
# nothing to do
3ea097
# tarball is bundled in --production mode, so no need to prune
3ea097
3ea097
%install
3ea097
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
3ea097
cp -pr doc bin lib package.json node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name}
3ea097
3ea097
mkdir -p %{buildroot}%{_bindir}
3ea097
ln -sf %{nodejs_sitelib}/%{npm_name}/bin/nodemon.js %{buildroot}%{_bindir}/nodemon
3ea097
3ea097
%if 0%{?enable_tests}
3ea097
%check
3ea097
%nodejs_symlink_deps --check
3ea097
npm run test
3ea097
%endif
3ea097
3ea097
%files
3ea097
%doc doc README.md
3ea097
%{nodejs_sitelib}/%{npm_name}
3ea097
%{_bindir}/nodemon
3ea097
3ea097
%changelog
f16ce7
* Mon Mar 20 2023 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.20-2
f16ce7
- Patch bundled glob-parent
f16ce7
- Resolves: CVE-2021-35065
f16ce7
debf2b
* Wed Nov 09 2022 Jan Staněk <jstanek@redhat.com> - 2.0.20-1
debf2b
- Rebase to 2.0.20
debf2b
  Resolves: CVE-2022-3517
debf2b
3ea097
* Tue Jul 19 2022 Jan Staněk <jstanek@redhat.com> - 2.0.19-1
3ea097
- Rebase to 2.0.19
3ea097
  Resolves: CVE-2022-33987
3ea097
3ea097
* Tue Nov 30 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.15-1
3ea097
- Resolves: RHBZ#2005419
3ea097
- Resolves CVE-2020-28469
3ea097
- Rebase to newest version
3ea097
- Change source to npmjs.com
3ea097
3ea097
* Tue May 11 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.7-1
3ea097
- Resolves: RHBZ#1953991
3ea097
- Update to 2.0.7 to resolve CVE-2020-28469
3ea097
3ea097
* Wed May 06 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.3-1
3ea097
- Updated
3ea097
3ea097
* Mon Aug 13 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.18.3-1
3ea097
- Resolves: #1615413
3ea097
- Updated
3ea097
- bundled
3ea097
3ea097
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-2
3ea097
- rh-nodejs8 rebuild
3ea097
3ea097
* Mon Oct 31 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-1
3ea097
- Updated with script
3ea097
3ea097
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.8.1-6
3ea097
- rebuilt
3ea097
3ea097
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.8.1-5
3ea097
- Enable scl macros
3ea097
3ea097
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-2
3ea097
- Fix dependencies
3ea097
3ea097
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-1
3ea097
- Initial package