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