# spec file for package nodejs-nodejs-dezalgo %global npm_name dezalgo %{?nodejs_find_provides_and_requires} %global enable_tests 1 Name: nodejs-dezalgo Version: 1.0.2 Release: 1%{?dist} Summary: Contain async insanity so that the dark pony lord doesn't eat souls Url: https://github.com/npm/dezalgo Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz License: ISC BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-devel BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(tap) %endif BuildRequires: npm(asap) BuildRequires: npm(wrappy) %description Contain async insanity so that the dark pony lord doesn't eat souls %prep %setup -q -n package %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pr package.json dezalgo.js \ %{buildroot}%{nodejs_sitelib}/%{npm_name} %{nodejs_symlink_deps} %if 0%{?enable_tests} %check %{nodejs_symlink_deps} --check tap test/*.js %endif %files %{nodejs_sitelib}/dezalgo %doc README.md %license LICENSE %changelog * Mon May 25 2015 Zuzana Svetlikova - 1.0.2-1 - New upstream release - removed unnecessary %%buildroot from %%install and %%clean - added %%license * Wed May 13 2015 Zuzana Svetlikova - 1.0.1-1 - Initial build