%{?nodejs_find_provides_and_requires} %global enable_tests 0 Name: nodejs-faye-websocket Version: 0.7.2 Release: 2%{?dist} Summary: A standards-compliant WebSocket server and client for Node.js # A copy of the license text is contained within README.md. License: MIT Group: System Environment/Libraries URL: http://github.com/faye/faye-websocket-node Source0: http://registry.npmjs.org/faye-websocket/-/faye-websocket-%{version}.tgz BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(jstest) BuildRequires: npm(websocket-driver) %endif %description %{summary}. %prep %setup -q -n package %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/faye-websocket cp -pr package.json lib/ \ %{buildroot}%{nodejs_sitelib}/faye-websocket %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}/faye-websocket %changelog * Tue Apr 01 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.7.2-2 - add comment about license text * Sat Mar 29 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.7.2-1 - initial package