Blame SPECS/nodejs-nodemon.spec

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