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