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