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