765766
%{?nodejs_find_provides_and_requires}
765766
%global npm_name nodemon
765766
8fb353
# Disable until dependencies are met
765766
%global enable_tests 0
765766
765766
Name:          nodejs-%{npm_name}
6bf320
Version:       2.0.20
8fb353
Release:       3%{?dist}
765766
Summary:       Simple monitor script for use during development of a node.js app
765766
License:       MIT
8fb353
URL:           https://www.npmjs.com/package/nodemon
765766
Source0:       %{npm_name}-v%{version}-bundled.tar.gz
765766
8fb353
Patch1:        0001-deps-glob-parent-Resolve-ReDoS-vulnerability-from-CV.patch
8fb353
765766
BuildRequires: nodejs-devel
765766
BuildRequires: nodejs-packaging
765766
BuildRequires: npm
765766
765766
ExclusiveArch: %{nodejs_arches} noarch
765766
BuildArch:     noarch
765766
765766
%description
765766
Simple monitor script for use during development of a node.js app.
765766
765766
For use during development of a node.js based application.
765766
950689
nodemon will watch the files in the directory in which nodemon
950689
was started, and if any files change, nodemon will automatically
765766
restart your node application.
765766
950689
nodemon does not require any changes to your code or method of
950689
development. nodemon simply wraps your node application and keeps
950689
an eye on any files that have changed. Remember that nodemon is a
950689
replacement wrapper for node, think of it as replacing the word "node"
765766
on the command line when you run your script.
765766
765766
%prep
8fb353
%autosetup -p1 -n package
765766
765766
%build
765766
765766
# nothing to do
765766
# tarball is bundled in --production mode, so no need to prune
765766
765766
%install
765766
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
8fb353
cp -pr doc bin lib package.json node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name}
765766
765766
mkdir -p %{buildroot}%{_bindir}
765766
ln -sf %{nodejs_sitelib}/%{npm_name}/bin/nodemon.js %{buildroot}%{_bindir}/nodemon
765766
765766
%if 0%{?enable_tests}
765766
%check
765766
%nodejs_symlink_deps --check
765766
npm run test
765766
%endif
765766
765766
%files
8fb353
%doc doc README.md
765766
%{nodejs_sitelib}/%{npm_name}
765766
%{_bindir}/nodemon
765766
765766
%changelog
8fb353
* Mon Mar 27 2023 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.20-3
8fb353
- Patch bundled glob-parent
8fb353
- Resolves: CVE-2021-35065
8fb353
6bf320
* Thu Dec 08 2022 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.20-2
6bf320
- Record CVE fixed in the current or previous upstream versions
6bf320
- Resolves: CVE-2021-44906
6bf320
6bf320
* Fri Nov 18 2022 Jan Staněk <jstanek@redhat.com> - 2.0.20-1
6bf320
- Rebase to 2.0.20
6bf320
  Resolves: CVE-2022-3517
6bf320
6bf320
* Wed Aug 31 2022 Jan Staněk <jstanek@redhat.com> - 2.0.19-1
950689
- Rebase to 2.0.19
950689
  Resolves: CVE-2022-33987 rhbz#2073156 CVE-2021-33502 CVE-2021-3807 CVE-2020-28469
6bf320
  Resolves: CVE-2020-7788
950689
765766
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.3-6
765766
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
765766
  Related: rhbz#1991688
765766
765766
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.3-5
765766
- Rebuilt for RHEL 9 BETA for openssl 3.0
765766
  Related: rhbz#1971065
765766
765766
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.3-4
765766
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
765766
765766
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-3
765766
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
765766
765766
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2
765766
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
765766
765766
* Fri May 01 2020 Honza Horak <hhorak@redhat.com> - 2.0.3-1
765766
- Update to 2.0.3
765766
765766
* Mon Aug 13 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.18.3-1
765766
- Resolves: #1615413
765766
- Updated
765766
- bundled
765766
765766
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-2
765766
- rh-nodejs8 rebuild
765766
765766
* Mon Oct 31 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-1
765766
- Updated with script
765766
765766
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.8.1-6
765766
- rebuilt
765766
765766
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.8.1-5
765766
- Enable scl macros
765766
765766
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-2
765766
- Fix dependencies
765766
765766
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-1
765766
- Initial package