3c6609
%{?nodejs_find_provides_and_requires}
3c6609
%global npm_name nodemon
3c6609
3c6609
# Disable until dependencies are bundled
3c6609
%global enable_tests 0
3c6609
3c6609
Name:          nodejs-%{npm_name}
3c6609
Version:       2.0.3
3c6609
Release:       6%{?dist}
3c6609
Summary:       Simple monitor script for use during development of a node.js app
3c6609
License:       MIT
3c6609
URL:           https://github.com/remy/nodemon
3c6609
Source0:       %{npm_name}-v%{version}-bundled.tar.gz
3c6609
3c6609
BuildRequires: nodejs-devel
3c6609
BuildRequires: nodejs-packaging
3c6609
BuildRequires: npm
3c6609
3c6609
ExclusiveArch: %{nodejs_arches} noarch
3c6609
BuildArch:     noarch
3c6609
3c6609
%description
3c6609
Simple monitor script for use during development of a node.js app.
3c6609
3c6609
For use during development of a node.js based application.
3c6609
3c6609
nodemon will watch the files in the directory in which nodemon 
3c6609
was started, and if any files change, nodemon will automatically 
3c6609
restart your node application.
3c6609
3c6609
nodemon does not require any changes to your code or method of 
3c6609
development. nodemon simply wraps your node application and keeps 
3c6609
an eye on any files that have changed. Remember that nodemon is a 
3c6609
replacement wrapper for node, think of it as replacing the word "node" 
3c6609
on the command line when you run your script.
3c6609
3c6609
%prep
3c6609
%setup -q -n %{npm_name}-%{version}
3c6609
3c6609
%build
3c6609
3c6609
# nothing to do
3c6609
# tarball is bundled in --production mode, so no need to prune
3c6609
3c6609
%install
3c6609
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
3c6609
cp -pr doc bin lib package.json website node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name}
3c6609
3c6609
mkdir -p %{buildroot}%{_bindir}
3c6609
ln -sf %{nodejs_sitelib}/%{npm_name}/bin/nodemon.js %{buildroot}%{_bindir}/nodemon
3c6609
3c6609
3c6609
#%%nodejs_symlink_deps
3c6609
3c6609
%if 0%{?enable_tests}
3c6609
%check
3c6609
%nodejs_symlink_deps --check
3c6609
npm run test
3c6609
%endif
3c6609
3c6609
%files
3c6609
%doc CODE_OF_CONDUCT.md doc faq.md README.md
3c6609
%{nodejs_sitelib}/%{npm_name}
3c6609
%{_bindir}/nodemon
3c6609
3c6609
%changelog
3c6609
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.3-6
3c6609
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
3c6609
  Related: rhbz#1991688
3c6609
3c6609
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.3-5
3c6609
- Rebuilt for RHEL 9 BETA for openssl 3.0
3c6609
  Related: rhbz#1971065
3c6609
3c6609
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.0.3-4
3c6609
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
3c6609
3c6609
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-3
3c6609
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3c6609
3c6609
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2
3c6609
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3c6609
3c6609
* Fri May 01 2020 Honza Horak <hhorak@redhat.com> - 2.0.3-1
3c6609
- Update to 2.0.3
3c6609
3c6609
* Mon Aug 13 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.18.3-1
3c6609
- Resolves: #1615413
3c6609
- Updated
3c6609
- bundled
3c6609
3c6609
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-2
3c6609
- rh-nodejs8 rebuild
3c6609
3c6609
* Mon Oct 31 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-1
3c6609
- Updated with script
3c6609
3c6609
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.8.1-6
3c6609
- rebuilt
3c6609
3c6609
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.8.1-5
3c6609
- Enable scl macros
3c6609
3c6609
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-2
3c6609
- Fix dependencies
3c6609
3c6609
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-1
3c6609
- Initial package