commit
d739431425
BIN
duplexer-0.1.1.tgz
Normal file
BIN
duplexer-0.1.1.tgz
Normal file
Binary file not shown.
44
nodejs-duplexer.spec
Normal file
44
nodejs-duplexer.spec
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
%global enable_tests 1
|
||||||
|
%global module_name duplexer
|
||||||
|
Name: nodejs-%{module_name}
|
||||||
|
Version: 0.1.1
|
||||||
|
Release: 1
|
||||||
|
Summary: Creates a duplex stream
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/Raynos/duplexer
|
||||||
|
Source0: http://registry.npmjs.org/duplexer/-/duplexer-%{version}.tgz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(tape) npm(through)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n package
|
||||||
|
rm -rf node_modules
|
||||||
|
|
||||||
|
%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
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md LICENCE
|
||||||
|
%{nodejs_sitelib}/%{module_name}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Aug 18 2020 leiju <leiju4@huawei.com> - 0.1.1-1
|
||||||
|
- Package init
|
||||||
4
nodejs-duplexer.yaml
Normal file
4
nodejs-duplexer.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: Raynos/duplexer
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user