Blame SPECS/nodejs-nodemon.spec

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