|
|
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}
|
|
|
39b3b4 |
Version: 2.0.15
|
|
|
9ea5fd |
Release: 1%{?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
|
|
|
39b3b4 |
* Tue Nov 30 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.15-1
|
|
|
39b3b4 |
- Resolves: RHBZ#2027630
|
|
|
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
|