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