Blame SPECS/nodejs-nodemon.spec

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