diff --git a/nodejs-through.spec b/nodejs-through.spec new file mode 100644 index 0000000..eab8c82 --- /dev/null +++ b/nodejs-through.spec @@ -0,0 +1,48 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 1 +Name: nodejs-through +Version: 2.3.8 +Release: 1 +Summary: Simplified stream construction for Node.js +License: MIT or ASL 2.0 +URL: https://github.com/dominictarr/through +Source0: http://registry.npmjs.org/through/-/through-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(tape) npm(from) +#BuildRequires: npm(stream-spec) +%endif +%description +%{summary}. + +%prep +%setup -q -n package + +%build +#nothing to do + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/through +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/through +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%__nodejs -e "require('./')" +%if 0%{?enable_tests} +# requires npm(stream-spec) +rm test/index.js +tape test/*.js +%endif + +%files +%doc readme.markdown +%license LICENSE.APACHE2 LICENSE.MIT +%{nodejs_sitelib}/through + +%changelog +* Tue Aug 11 2020 wutao - 2.3.8-1 +- package init diff --git a/nodejs-through.yaml b/nodejs-through.yaml new file mode 100644 index 0000000..6db58c3 --- /dev/null +++ b/nodejs-through.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: dominictarr/through +tag_prefix: "^v" +seperator: "." diff --git a/through-2.3.8.tgz b/through-2.3.8.tgz new file mode 100644 index 0000000..82330ea Binary files /dev/null and b/through-2.3.8.tgz differ