!1 package init

Merge pull request !1 from jackie_wu123/master
This commit is contained in:
openeuler-ci-bot 2020-09-08 21:09:48 +08:00 committed by Gitee
commit 50efb06047
3 changed files with 49 additions and 0 deletions

45
nodejs-through.spec Normal file
View File

@ -0,0 +1,45 @@
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
Name: nodejs-through
Version: 2.3.7
Release: 1
Summary: Simplified stream construction for Node.js
License: MIT or ASL 2.0
URL: https://github.com/dominictarr/through
Source0: https://github.com/dominictarr/through/archive/v%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(tape) npm(from)
%endif
%description
%{summary}.
%prep
%autosetup -n through-%{version}
%build
%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}
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 <wutao61@huawei.com> - 2.3.7-1
- package init

4
nodejs-through.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: dominictarr/through
tag_prefix: "^v"
seperator: "."

BIN
v2.3.7.tar.gz Normal file

Binary file not shown.