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