Blame SPECS/nodejs-nodemon.spec

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