Blame SPECS/nodejs-nodemon.spec

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