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