# Test dep seedrandom has bundled libraries %global enable_tests 0 %global srcname etag %global commit0 a511f5c8c930fd9546dbd88acb080f96bc788cfc %global gittag0 v1.7.0 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: nodejs-%{srcname} Version: 1.7.0 Release: 1%{?dist} Summary: Node.js module to create simple ETags License: MIT URL: https://github.com/jshttp/etag Source0: https://github.com/jshttp/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{shortcommit0}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(istanbul) BuildRequires: npm(mocha) BuildRequires: npm(seedrandom) %endif %description %{summary}. %prep %setup -qn %{srcname}-%{commit0} %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} cp -pr package.json index.js \ %{buildroot}%{nodejs_sitelib}/%{srcname} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check mocha --reporter spec --bail --check-leaks test/ %endif %files %doc README.md HISTORY.md %license LICENSE %{nodejs_sitelib}/%{srcname} %changelog * Fri Sep 4 2015 Piotr Popieluch - 1.7.0-1 - Initial package