Blame SPECS/nodejs-nodemon.spec

7047bc
%{?scl:%scl_package nodejs-%{npm_name}}
7047bc
%{!?scl:%global pkg_name %{name}}
7047bc
7047bc
%{?nodejs_find_provides_and_requires}
7047bc
%global npm_name nodemon
7047bc
7047bc
# Disable until dependencies are met
7047bc
%bcond_with tests
7047bc
7047bc
Name:          %{?scl_prefix}nodejs-%{npm_name}
7047bc
Version:       2.0.3
701135
Release:       5%{?dist}
7047bc
Summary:       Simple monitor script for use during development of a node.js app
7047bc
License:       MIT
7047bc
URL:           https://github.com/remy/nodemon
7047bc
Source0:       %{npm_name}-v%{version}-bundled.tar.gz
7047bc
52bc69
Patch0:        0001-fix-redirect-help.patch
52bc69
Patch1:        0002-Fix-ReDoS-for-data-URLs.patch
701135
Patch2:        0003-fix-eliminate-ReDoS-36.patch
701135
Patch4:        0004-do-not-allow-invalid-hazardous-string-as-section-nam.patch
52bc69
7047bc
BuildRequires: %{?scl_prefix}nodejs-devel
7047bc
BuildRequires: %{?scl_prefix}npm
7047bc
7047bc
ExclusiveArch: %{nodejs_arches} noarch
7047bc
BuildArch:     noarch
7047bc
7047bc
%if %{with tests}
7047bc
BuildRequires:  %{?scl_prefix}npm(async)
7047bc
BuildRequires:  %{?scl_prefix}npm(coffee-script)
7047bc
BuildRequires:  %{?scl_prefix}npm(husky)
7047bc
BuildRequires:  %{?scl_prefix}npm(istanbul)
7047bc
BuildRequires:  %{?scl_prefix}npm(jscs)
7047bc
BuildRequires:  %{?scl_prefix}npm(mocha)
7047bc
BuildRequires:  %{?scl_prefix}npm(proxyquire)
7047bc
BuildRequires:  %{?scl_prefix}npm(semantic-release)
7047bc
BuildRequires:  %{?scl_prefix}npm(should)
7047bc
%endif
7047bc
7047bc
7047bc
%description
7047bc
Simple monitor script for use during development of a node.js app.
7047bc
7047bc
For use during development of a node.js based application.
7047bc
7047bc
nodemon will watch the files in the directory in which nodemon
7047bc
was started, and if any files change, nodemon will automatically
7047bc
restart your node application.
7047bc
7047bc
nodemon does not require any changes to your code or method of
7047bc
development. nodemon simply wraps your node application and keeps
7047bc
an eye on any files that have changed. Remember that nodemon is a
7047bc
replacement wrapper for node, think of it as replacing the word "node"
7047bc
on the command line when you run your script.
7047bc
7047bc
%prep
52bc69
%autosetup -n %{npm_name}-%{version} -p1
7047bc
7047bc
%build
7047bc
7047bc
# nothing to do
7047bc
# tarball is bundled in --production mode, so no need to prune
7047bc
7047bc
%install
7047bc
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
7047bc
cp -pr doc bin lib package.json website node_modules %{buildroot}%{nodejs_sitelib}/%{npm_name}
7047bc
7047bc
mkdir -p %{buildroot}%{_bindir}
7047bc
ln -sf %{nodejs_sitelib}/%{npm_name}/bin/nodemon.js %{buildroot}%{_bindir}/nodemon
7047bc
7047bc
%if %{with tests}
7047bc
%check
7047bc
%nodejs_symlink_deps --check
7047bc
npm run test
7047bc
%endif
7047bc
7047bc
%files
7047bc
%doc CODE_OF_CONDUCT.md doc faq.md README.md
7047bc
%{nodejs_sitelib}/%{npm_name}
7047bc
%{_bindir}/nodemon
7047bc
7047bc
%changelog
701135
* Tue Aug 17 2021 Jan Staněk <jstanek@redhat.com> - 2.0.3-5
701135
- Rebuild with the previous fix correctly applied
701135
  Related: rhbz#1991323
701135
701135
* Mon Aug 16 2021 Jan Staněk <jstanek@redhat.com> - 2.0.3-4
701135
- Backport fix for CVE-2020-7788 in bundled(nodejs-ini)
701135
  Resolves: rhbz#1991323
701135
701135
* Thu Aug 05 2021 Jan Staněk <jstanek@redhat.com> - 2.0.3-3
701135
- Backport fix for CVE-2020-28469 in bundled(nodejs-glob-parent)
701135
  Resolves: rhbz#1948027
701135
52bc69
* Fri Jul 02 2021 Jan Staněk <jstanek@redhat.com> - 2.0.3-2
52bc69
- Allow --help option text to be redirected to file
52bc69
- Backport CVE-2021-33502 fix
52bc69
7047bc
* Wed Jul 29 2020 Jan Staněk <jstanek@redhat.com> - 2.0.3-1
7047bc
- Upgrade, build for rh-nodejs14
7047bc
7047bc
* Thu Aug 15 2019 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.19.1-1
7047bc
- Update, build for rh-nodejs12
7047bc
7047bc
* Thu Sep 20 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.18.3-3
7047bc
- Resolves: RHBZ#1584252
7047bc
- remove bundled provides from spec
7047bc
7047bc
* Fri Sep 14 2018 Honza Horak <hhorak@redhat.com> - 1.18.3-2
7047bc
- SCL-izing the spec file
7047bc
7047bc
* Mon Aug 13 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.18.3-1
7047bc
- Resolves: #1615413
7047bc
- Updated
7047bc
- bundled
7047bc
7047bc
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-2
7047bc
- rh-nodejs8 rebuild
7047bc
7047bc
* Mon Oct 31 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.11.0-1
7047bc
- Updated with script
7047bc
7047bc
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.8.1-6
7047bc
- rebuilt
7047bc
7047bc
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.8.1-5
7047bc
- Enable scl macros
7047bc
7047bc
* Thu Dec 17 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-2
7047bc
- Fix dependencies
7047bc
7047bc
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 1.8.1-1
7047bc
- Initial package