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}
f9e40f
Version:       2.0.7
f9e40f
Release:       1%{?dist}
f9e40f
Summary:       Simple monitor script for use during development of a node.js app
f9e40f
License:       MIT
f9e40f
URL:           https://github.com/remy/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
f9e40f
nodemon will watch the files in the directory in which nodemon 
f9e40f
was started, and if any files change, nodemon will automatically 
f9e40f
restart your node application.
f9e40f
f9e40f
nodemon does not require any changes to your code or method of 
f9e40f
development. nodemon simply wraps your node application and keeps 
f9e40f
an eye on any files that have changed. Remember that nodemon is a 
f9e40f
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
f9e40f
%setup -q -n %{npm_name}-%{version}
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}
f9e40f
cp -pr doc bin lib package.json website 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
f9e40f
#%%nodejs_symlink_deps
f9e40f
f9e40f
%if 0%{?enable_tests}
f9e40f
%check
f9e40f
%nodejs_symlink_deps --check
f9e40f
npm run test
f9e40f
%endif
f9e40f
f9e40f
%files
f9e40f
%doc CODE_OF_CONDUCT.md doc faq.md README.md
f9e40f
%{nodejs_sitelib}/%{npm_name}
f9e40f
%{_bindir}/nodemon
f9e40f
f9e40f
%changelog
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