# one out of 582 tests fails because we have old version of vows %global enable_tests 0 %global srcname tough-cookie %global commit0 fb1456177c9b51445afa34656eb314c70c2adcd2 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: nodejs-%{srcname} Version: 2.2.0 Release: 1%{?dist} Summary: RFC6265 Cookies and Cookie Jar for Node.js # The entire source is BSD except for "public_suffix_list.dat" which is MPLv2.0 # and "lib/pubsuffix.js" which is partially MPLv2.0 and BSD License: BSD and MPLv2.0 URL: https://github.com/SalesforceEng/tough-cookie Source0: https://github.com/SalesforceEng/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{shortcommit0}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(async) BuildRequires: npm(vows) %endif %description %{summary}. %prep %setup -qn %{srcname}-%{commit0} rm -rf node_modules %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} cp -pr package.json lib/ \ %{buildroot}%{nodejs_sitelib}/%{srcname} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check vows --spec test/*_test.js %endif %files %doc README.md %license LICENSE %{nodejs_sitelib}/%{srcname} %changelog * Sat Oct 24 2015 Piotr Popieluch - 2.2.0-1 - Initial package