package init

This commit is contained in:
wangxiao65 2020-08-20 19:47:50 +08:00
parent c83687bdb0
commit e6e7766945
3 changed files with 53 additions and 0 deletions

BIN
isstream-0.1.2.tgz Normal file

Binary file not shown.

48
nodejs-isstream.spec Normal file
View File

@ -0,0 +1,48 @@
%global enable_tests 1
%global srcname isstream
Name: nodejs-%{srcname}
Version: 0.1.2
Release: 1
Summary: Determine if an object is a Stream
License: MIT
URL: https://github.com/rvagg/isstream
Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: npm(tape) npm(core-util-is) npm(isarray) npm(string_decoder) npm(inherits)
BuildRequires: npm(readable-stream)
%endif
%description
%{summary}.
%prep
%setup -q -n package
rm -rf node_modules
%nodejs_fixdep --dev readable-stream
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
cp -pr package.json isstream.js \
%{buildroot}%{nodejs_sitelib}/%{srcname}
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
ln -s ./node_modules/readable-stream readable-stream-1.0
ln -s ./node_modules/readable-stream readable-stream-1.1
node test.js
%endif
%files
%doc README.md
%license LICENSE.md
%{nodejs_sitelib}/%{srcname}
%changelog
* Thu Aug 20 2020 wangxiao <wangxiao65@huawei.com> - 0.1.2-1
- Package init

5
nodejs-isstream.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/rvagg/isstream
version_control: github
src_repo: rvagg/isstream
tag_prefix: "^v"
seperator: "."