|
|
7fea0d |
%{?scl:%scl_package nodejs-%{npm_name}}
|
|
|
7fea0d |
%{!?scl:%global pkg_name %{name}}
|
|
|
7fea0d |
|
|
|
7fea0d |
%{?nodejs_find_provides_and_requires}
|
|
|
7fea0d |
%global npm_name nodemon
|
|
|
7fea0d |
|
|
|
7fea0d |
# Disable until dependencies are met
|
|
|
7fea0d |
%global enable_tests 0
|
|
|
7fea0d |
|
|
|
7fea0d |
Summary: Simple monitor script for use during development of a node.js app
|
|
|
7fea0d |
Name: %{?scl_prefix}nodejs-%{npm_name}
|
|
|
7fea0d |
Version: 1.8.1
|
|
|
7fea0d |
Release: 6%{?dist}
|
|
|
7fea0d |
License: MIT
|
|
|
7fea0d |
URL: https://github.com/remy/nodemon
|
|
|
7fea0d |
Source0: http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
|
|
|
7fea0d |
BuildRequires: nodejs010-runtime
|
|
|
7fea0d |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
7fea0d |
BuildArch: noarch
|
|
|
7fea0d |
Provides: %{?scl_prefix}nodejs-%{npm_name} = %{version}
|
|
|
7fea0d |
|
|
|
7fea0d |
%if 0%{?enable_tests}
|
|
|
7fea0d |
BuildRequires: %{?scl_prefix}npm(mocha)
|
|
|
7fea0d |
BuildRequires: %{?scl_prefix}npm(coveralls)
|
|
|
7fea0d |
%endif
|
|
|
7fea0d |
|
|
|
7fea0d |
%description
|
|
|
7fea0d |
Simple monitor script for use during development of a node.js app.
|
|
|
7fea0d |
|
|
|
7fea0d |
For use during development of a node.js based application.
|
|
|
7fea0d |
|
|
|
7fea0d |
nodemon will watch the files in the directory in which nodemon
|
|
|
7fea0d |
was started, and if any files change, nodemon will automatically
|
|
|
7fea0d |
restart your node application.
|
|
|
7fea0d |
|
|
|
7fea0d |
nodemon does not require any changes to your code or method of
|
|
|
7fea0d |
development. nodemon simply wraps your node application and keeps
|
|
|
7fea0d |
an eye on any files that have changed. Remember that nodemon is a
|
|
|
7fea0d |
replacement wrapper for node, think of it as replacing the word "node"
|
|
|
7fea0d |
on the command line when you run your script.
|
|
|
7fea0d |
|
|
|
7fea0d |
%prep
|
|
|
7fea0d |
%setup -q -n package
|
|
|
7fea0d |
|
|
|
7fea0d |
%nodejs_fixdep update-notifier '>=0.5.0'
|
|
|
7fea0d |
|
|
|
7fea0d |
%build
|
|
|
7fea0d |
|
|
|
7fea0d |
%install
|
|
|
7fea0d |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
7fea0d |
cp -pr doc bin lib package.json web %{buildroot}%{nodejs_sitelib}/%{npm_name}
|
|
|
7fea0d |
|
|
|
7fea0d |
mkdir -p %{buildroot}%{_bindir}
|
|
|
7fea0d |
ln -sf %{nodejs_sitelib}/%{npm_name}/bin/nodemon.js %{buildroot}%{_bindir}/nodemon
|
|
|
7fea0d |
|
|
|
7fea0d |
|
|
|
7fea0d |
%nodejs_symlink_deps
|
|
|
7fea0d |
|
|
|
7fea0d |
%if 0%{?enable_tests}
|
|
|
7fea0d |
|
|
|
7fea0d |
%check
|
|
|
7fea0d |
%nodejs_symlink_deps --check
|
|
|
7fea0d |
npm run lint && npm run spec
|
|
|
7fea0d |
%endif
|
|
|
7fea0d |
|
|
|
7fea0d |
%files
|
|
|
7fea0d |
%doc CODE_OF_CONDUCT.md CONTRIBUTING.md doc faq.md README.md
|
|
|
7fea0d |
%{nodejs_sitelib}/%{npm_name}
|
|
|
7fea0d |
%{_bindir}/nodemon
|
|
|
7fea0d |
|
|
|
7fea0d |
%changelog
|
|
|
7fea0d |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.8.1-6
|
|
|
7fea0d |
- rebuilt
|
|
|
7fea0d |
|
|
|
7fea0d |
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.8.1-5
|
|
|
7fea0d |
- Enable scl macros
|
|
|
7fea0d |
|
|
|
7fea0d |
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-2
|
|
|
7fea0d |
- Fix dependencies
|
|
|
7fea0d |
|
|
|
7fea0d |
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-1
|
|
|
7fea0d |
- Initial package
|