!1 Package init
From: @wangxiao65 Reviewed-by: @solarhu Signed-off-by: @solarhu
This commit is contained in:
commit
873ecc09f8
BIN
0.3.3.tar.gz
Normal file
BIN
0.3.3.tar.gz
Normal file
Binary file not shown.
54
nodejs-websocket-driver.spec
Normal file
54
nodejs-websocket-driver.spec
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
|
||||||
|
%global enable_tests 0
|
||||||
|
|
||||||
|
Name: nodejs-websocket-driver
|
||||||
|
Version: 0.3.3
|
||||||
|
Release: 1
|
||||||
|
Summary: WebSocket protocol handler with pluggable I/O for Node.js
|
||||||
|
License: MIT
|
||||||
|
URL: http://github.com/faye/websocket-driver-node
|
||||||
|
Source0: http://github.com/faye/websocket-driver-node/archive/%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
ExclusiveArch: %{nodejs_arches} noarch
|
||||||
|
BuildRequires: nodejs-packaging
|
||||||
|
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
BuildRequires: npm(jstest)
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n websocket-driver-node-%{version}
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
#nothing to do
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{nodejs_sitelib}/websocket-driver
|
||||||
|
cp -pr package.json lib/ \
|
||||||
|
%{buildroot}%{nodejs_sitelib}/websocket-driver
|
||||||
|
|
||||||
|
%nodejs_symlink_deps
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%check
|
||||||
|
%nodejs_symlink_deps --check
|
||||||
|
/usr/bin/jstest spec/runner.js
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc CHANGELOG.md README.md examples/
|
||||||
|
%{nodejs_sitelib}/websocket-driver
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Aug 12 2020 wangxiao <wangxiao65@huawei.com> - 0.3.3-1
|
||||||
|
- package init
|
||||||
5
nodejs-websocket-driver.yaml
Normal file
5
nodejs-websocket-driver.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: http://github.com/faye/websocket-driver-node
|
||||||
|
version_control: github
|
||||||
|
src_repo: faye/websocket-driver-node
|
||||||
|
tag_prefix: ""
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user