package init
This commit is contained in:
parent
45999da058
commit
e1c0782fb8
48
nodejs-through2.spec
Normal file
48
nodejs-through2.spec
Normal file
@ -0,0 +1,48 @@
|
||||
# test are failing
|
||||
%global enable_tests 0
|
||||
%global module_name through2
|
||||
Name: nodejs-%{module_name}
|
||||
Version: 2.0.3
|
||||
Release: 1
|
||||
Summary: Node streams2 Transform wrapper to avoid explicit subclassing noise
|
||||
License: MITNFA
|
||||
URL: https://github.com/rvagg/through2
|
||||
Source0: https://github.com/rvagg/%{module_name}/archive/v%{version}/%{module_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{nodejs_arches} noarch
|
||||
BuildRequires: nodejs-packaging
|
||||
%if 0%{?enable_tests}
|
||||
BuildRequires: npm(tap) npm(tape) npm(xtend) npm(bl) npm(stream-spigot)
|
||||
%endif
|
||||
%description
|
||||
A tiny wrapper around Node streams2 Transform to avoid explicit subclassing
|
||||
noise.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{module_name}-%{version}
|
||||
%nodejs_fixdep readable-stream "^2.0.5"
|
||||
rm -rf node_modules
|
||||
|
||||
%build
|
||||
# nothing to build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
|
||||
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
|
||||
%nodejs_symlink_deps
|
||||
%if 0%{?enable_tests}
|
||||
|
||||
%check
|
||||
%nodejs_symlink_deps --check
|
||||
%{__nodejs} -e 'require("./")'
|
||||
node test/test.js
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%license LICENSE.md
|
||||
%{nodejs_sitelib}/%{module_name}
|
||||
|
||||
%changelog
|
||||
* Thu Aug 20 2020 wutao <wutao61@huawei.com> - 2.0.3-1
|
||||
- package init
|
||||
4
nodejs-through2.yaml
Normal file
4
nodejs-through2.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: rvagg/through2
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
BIN
through2-2.0.3.tar.gz
Normal file
BIN
through2-2.0.3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user