|
|
f49691c |
%{?nodejs_find_provides_and_requires}
|
|
|
f49691c |
|
|
|
f49691c |
%global enable_tests 1
|
|
|
f49691c |
|
|
|
bb00059 |
Name: nodejs-readdirp
|
|
|
7c2566e |
Version: 2.1.0
|
|
|
a60ba80 |
Release: 10%{?dist}
|
|
|
bb00059 |
Summary: Recursive version of Node's fs.readdir with a streaming API
|
|
|
bb00059 |
|
|
|
bb00059 |
License: MIT
|
|
|
bb00059 |
URL: https://github.com/thlorenz/readdirp
|
|
|
bb00059 |
Source0: https://registry.npmjs.org/readdirp/-/readdirp-%{version}.tgz
|
|
|
f49691c |
# The test files are not included in the npm tarball.
|
|
|
f49691c |
# Source1 is generated by running Source10, which pulls from the upstream
|
|
|
f49691c |
# version control repository.
|
|
|
bb00059 |
Source1: tests-v%{version}.tar.bz2
|
|
|
bb00059 |
Source10: dl-tests.sh
|
|
|
bb00059 |
# https://github.com/thlorenz/readdirp/pull/38
|
|
|
bb00059 |
Patch0: nodejs-readdirp-pause.patch
|
|
|
bb00059 |
|
|
|
bb00059 |
BuildArch: noarch
|
|
|
e9052e3 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
f49691c |
|
|
|
f49691c |
BuildRequires: nodejs-packaging
|
|
|
f49691c |
|
|
|
f49691c |
%if 0%{?enable_tests}
|
|
|
f49691c |
BuildRequires: npm(graceful-fs)
|
|
|
f49691c |
BuildRequires: npm(minimatch)
|
|
|
7c2566e |
BuildRequires: npm(proxyquire)
|
|
|
f4a14f7 |
BuildRequires: npm(readable-stream)
|
|
|
7c2566e |
BuildRequires: npm(set-immediate-shim)
|
|
|
f49691c |
BuildRequires: npm(tap)
|
|
|
f4a14f7 |
BuildRequires: npm(through2)
|
|
|
f49691c |
%endif
|
|
|
f49691c |
|
|
|
f49691c |
%description
|
|
|
f49691c |
%{summary}.
|
|
|
f49691c |
|
|
|
f49691c |
|
|
|
f49691c |
%prep
|
|
|
f49691c |
%setup -q -n package
|
|
|
f49691c |
# The NPM tarball is missing some files within test/
|
|
|
f49691c |
rm -rf test/
|
|
|
f49691c |
%setup -q -T -D -a 1 -n package
|
|
|
81dc768 |
# Apply patches
|
|
|
81dc768 |
%patch0 -p1
|
|
|
f49691c |
# Remove executable bit.
|
|
|
f49691c |
find . -type f -exec chmod -x '{}' \;
|
|
|
81dc768 |
# Fix dependencies
|
|
|
bb00059 |
%nodejs_fixdep minimatch "^3.0.0"
|
|
|
f49691c |
|
|
|
f49691c |
|
|
|
f49691c |
%build
|
|
|
f49691c |
#nothing to do
|
|
|
f49691c |
|
|
|
f49691c |
|
|
|
f49691c |
%install
|
|
|
f49691c |
mkdir -p %{buildroot}%{nodejs_sitelib}/readdirp
|
|
|
f49691c |
cp -pr package.json readdirp.js stream-api.js \
|
|
|
f49691c |
%{buildroot}%{nodejs_sitelib}/readdirp
|
|
|
f49691c |
|
|
|
f49691c |
%nodejs_symlink_deps
|
|
|
f49691c |
|
|
|
f49691c |
|
|
|
f49691c |
%if 0%{?enable_tests}
|
|
|
f49691c |
%check
|
|
|
f49691c |
%nodejs_symlink_deps --check
|
|
|
f49691c |
%__tap test/*.js
|
|
|
f49691c |
%endif
|
|
|
f49691c |
|
|
|
f49691c |
|
|
|
f49691c |
%files
|
|
|
f4a14f7 |
%doc README.md examples/
|
|
|
f4a14f7 |
%license LICENSE
|
|
|
f49691c |
%{nodejs_sitelib}/readdirp
|
|
|
f49691c |
|
|
|
f49691c |
|
|
|
f49691c |
%changelog
|
|
|
a60ba80 |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-10
|
|
|
a60ba80 |
- Second attempt - Rebuilt for
|
|
|
a60ba80 |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
a60ba80 |
|
|
|
1148a9a |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-9
|
|
|
1148a9a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
1148a9a |
|
|
|
4a9cda3 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8
|
|
|
4a9cda3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
4a9cda3 |
|
|
|
6c81aea |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-7
|
|
|
6c81aea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
6c81aea |
|
|
|
5168c79 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
|
|
|
5168c79 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
5168c79 |
|
|
|
08e3303 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
|
|
|
08e3303 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
08e3303 |
|
|
|
a505bd6 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
|
|
|
a505bd6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
a505bd6 |
|
|
|
8359cff |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
|
|
8359cff |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
8359cff |
|
|
|
69454e0 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
|
|
69454e0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
69454e0 |
|
|
|
7c2566e |
* Mon Jun 27 2016 Tom Hughes <tom@compton.nu> - 2.1.0-1
|
|
|
7c2566e |
- Update to 2.1.0 upstream release
|
|
|
7c2566e |
|
|
|
5a42288 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
|
|
|
5a42288 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
5a42288 |
|
|
|
bb00059 |
* Fri Jan 1 2016 Tom Hughes <tom@compton.nu> - 2.0.0-2
|
|
|
bb00059 |
- Update npm(minimatch) dependency
|
|
|
bb00059 |
|
|
|
f4a14f7 |
* Thu Dec 31 2015 Tom Hughes <tom@compton.nu> - 2.0.0-1
|
|
|
f4a14f7 |
- Update to 2.0.0 upstream release
|
|
|
f4a14f7 |
|
|
|
0d819ed |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
|
|
|
0d819ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
0d819ed |
|
|
|
94a7cf5 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
|
|
|
94a7cf5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
94a7cf5 |
|
|
|
be8e41e |
* Sat Apr 26 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.4.0-1
|
|
|
be8e41e |
- update to upstream release 0.4.0
|
|
|
be8e41e |
|
|
|
f49691c |
* Sun Mar 02 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.3.3-1
|
|
|
f49691c |
- initial package
|