|
|
ab14e0f |
%{?nodejs_find_provides_and_requires}
|
|
|
ab14e0f |
|
|
|
fd63ad2 |
%global enable_tests 1
|
|
|
ab14e0f |
|
|
|
ab14e0f |
Name: nodejs-raw-body
|
|
|
e8fa27d |
Version: 2.4.1
|
|
|
e31f179 |
Release: 3%{?dist}
|
|
|
ab14e0f |
Summary: Get and validate the raw body of a readable stream
|
|
|
ab14e0f |
License: MIT
|
|
|
ab14e0f |
URL: https://github.com/stream-utils/raw-body
|
|
|
ab14e0f |
Source0: http://registry.npmjs.org/raw-body/-/raw-body-%{version}.tgz
|
|
|
ab14e0f |
# The test files are not included in the npm tarball.
|
|
|
ab14e0f |
# Source1 is generated by running Source10, which pulls from the upstream
|
|
|
ab14e0f |
# version control repository.
|
|
|
ab14e0f |
Source1: tests-%{version}.tar.bz2
|
|
|
ab14e0f |
Source10: dl-tests.sh
|
|
|
ab14e0f |
|
|
|
fd63ad2 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
fd63ad2 |
BuildArch: noarch
|
|
|
ab14e0f |
BuildRequires: nodejs-packaging
|
|
|
ab14e0f |
|
|
|
ab14e0f |
BuildRequires: npm(bytes)
|
|
|
ca21580 |
BuildRequires: npm(iconv-lite)
|
|
|
ca21580 |
BuildRequires: npm(unpipe)
|
|
|
ca21580 |
|
|
|
d2cb274 |
%if 0%{?enable_tests}
|
|
|
d2cb274 |
|
|
|
ca21580 |
BuildRequires: npm(bluebird)
|
|
|
e8fa27d |
BuildRequires: npm(http-errors)
|
|
|
ca21580 |
Buildrequires: npm(mocha)
|
|
|
ca21580 |
BuildRequires: npm(readable-stream)
|
|
|
ca21580 |
BuildRequires: npm(through2)
|
|
|
ca21580 |
# not packaged
|
|
|
ca21580 |
# BuildRequires: npm(eslint)
|
|
|
ca21580 |
# BuildRequires: npm(eslint-config-standard)
|
|
|
ca21580 |
# BuildRequires: npm(eslint-plugin-markdown)
|
|
|
ca21580 |
# BuildRequires: npm(eslint-plugin-promise)
|
|
|
ca21580 |
# BuildRequires: npm(eslint-plugin-standard)
|
|
|
ab14e0f |
%endif
|
|
|
ab14e0f |
|
|
|
ab14e0f |
%description
|
|
|
ab14e0f |
This module gets the entire buffer of a stream either as a buffer or a string.
|
|
|
ab14e0f |
It validates the stream's length against an expected length and maximum limit.
|
|
|
ab14e0f |
It is ideal for parsing request bodies.
|
|
|
ab14e0f |
|
|
|
ab14e0f |
|
|
|
ab14e0f |
%prep
|
|
|
ab14e0f |
%setup -q -n package
|
|
|
ab14e0f |
%setup -q -T -D -a 1 -n package
|
|
|
ab14e0f |
|
|
|
ca21580 |
%nodejs_fixdep bytes --caret
|
|
|
fd63ad2 |
%nodejs_fixdep iconv-lite '<0.5.0'
|
|
|
ca21580 |
%nodejs_fixdep unpipe --caret
|
|
|
ab14e0f |
|
|
|
ab14e0f |
%build
|
|
|
ab14e0f |
#nothing to do
|
|
|
ab14e0f |
|
|
|
ab14e0f |
|
|
|
ab14e0f |
%install
|
|
|
ab14e0f |
mkdir -p %{buildroot}%{nodejs_sitelib}/raw-body
|
|
|
ab14e0f |
cp -pr package.json index.js \
|
|
|
ab14e0f |
%{buildroot}%{nodejs_sitelib}/raw-body
|
|
|
ab14e0f |
|
|
|
ab14e0f |
%nodejs_symlink_deps
|
|
|
ab14e0f |
|
|
|
ab14e0f |
|
|
|
ab14e0f |
%check
|
|
|
ab14e0f |
%nodejs_symlink_deps --check
|
|
|
d2cb274 |
%{__nodejs} -e 'require("./")'
|
|
|
d2cb274 |
|
|
|
d2cb274 |
%if 0%{?enable_tests}
|
|
|
ca21580 |
mocha --trace-deprecation --reporter spec --bail --check-leaks test/
|
|
|
ab14e0f |
%endif
|
|
|
ab14e0f |
|
|
|
ab14e0f |
|
|
|
ab14e0f |
%files
|
|
|
ab14e0f |
%doc README.md
|
|
|
d2cb274 |
%license LICENSE
|
|
|
ab14e0f |
%{nodejs_sitelib}/raw-body
|
|
|
ab14e0f |
|
|
|
ab14e0f |
%changelog
|
|
|
e31f179 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-3
|
|
|
e31f179 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
e31f179 |
|
|
|
5e7ecd2 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
|
|
|
5e7ecd2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
5e7ecd2 |
|
|
|
e8fa27d |
* Tue Dec 03 2019 Jared K. Smith <jsmith@fedoraproject.org> - 2.4.1-1
|
|
|
e8fa27d |
- Update to upstream 2.4.1 release
|
|
|
e8fa27d |
- Remove unnecessary calls to npm(istanbul)
|
|
|
e8fa27d |
|
|
|
8ea1f09 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-8
|
|
|
8ea1f09 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
8ea1f09 |
|
|
|
5d138d0 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-7
|
|
|
5d138d0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
5d138d0 |
|
|
|
022b6bd |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-6
|
|
|
022b6bd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
022b6bd |
|
|
|
5c1f205 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-5
|
|
|
5c1f205 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
5c1f205 |
|
|
|
46e906c |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-4
|
|
|
46e906c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
46e906c |
|
|
|
d2cb274 |
* Thu Mar 30 2017 Piotr Popieluch <piotr1212@gmail.com> - 2.2.0-3
|
|
|
d2cb274 |
- Fix test logic to have successfull builds
|
|
|
d2cb274 |
- Add LICENSE file
|
|
|
d2cb274 |
|
|
|
fd63ad2 |
* Fri Feb 24 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.2.0-2
|
|
|
fd63ad2 |
- Update spec
|
|
|
fd63ad2 |
|
|
|
ca21580 |
* Mon Feb 13 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.2.0-1
|
|
|
ca21580 |
- Update
|
|
|
ca21580 |
|
|
|
782abcc |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-5
|
|
|
782abcc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
782abcc |
|
|
|
8d4cab4 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-4
|
|
|
8d4cab4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
8d4cab4 |
|
|
|
4804775 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-3
|
|
|
4804775 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
4804775 |
|
|
|
400e504 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
|
|
|
400e504 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
400e504 |
|
|
|
db28cc1 |
* Sun Apr 20 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.1.4-1
|
|
|
db28cc1 |
- update to upstream release 1.1.4
|
|
|
db28cc1 |
|
|
|
ab14e0f |
* Mon Mar 10 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.1.3-1
|
|
|
ab14e0f |
- initial package
|