Files
nodejs-ws/nodejs-ws.spec

51 lines
1.5 KiB
RPMSpec

#
# spec file for package nodejs-ws
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
%define module_name ws
Name: nodejs-%{module_name}
Version: 0.7.1
Release: 0
License: MIT
Summary: Node.js %{module_name} module
Url: https://github.com/websockets/ws
Group: Development/Languages/Other
Source: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz
BuildRequires: fdupes
Requires: nodejs-options >= 0.0.5
Requires: nodejs-ultron >= 1.0
Recommends: nodejs-bufferutil >= 1.0
Recommends: nodejs-utf-8-validate >= 1.0
BuildRequires: nodejs-packaging
BuildArch: noarch
%{?nodejs_find_provides_and_requires}
%description
The fastest RFC-6455 WebSocket implementation for Node.js.
%prep
%setup -q -n package
%build
%install
mkdir -p %{buildroot}%{nodejs_modulesdir}/%{module_name}
cp -pr *.js lib package.json \
%{buildroot}%{nodejs_modulesdir}/%{module_name}/
%files
%defattr(-,root,root,-)
%doc README.md
%{nodejs_modulesdir}/%{module_name}
%changelog