%global enable_tests 1 %global module_name pinkie-promise Name: nodejs-%{module_name} Version: 2.0.1 Release: 3%{?dist} Summary: Promise ponyfill with pinkie License: MIT URL: https://github.com/floatdrop/pinkie-promise Source0: https://github.com/floatdrop/%{module_name}/archive/v%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(mocha) BuildRequires: npm(pinkie) %endif %description %{summary}. %prep %setup -q -n %{module_name}-%{version} rm -rf node_modules %build # nothing to build %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/%{module_name} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check mocha %endif %files %doc readme.md %license license %{nodejs_sitelib}/%{module_name} %changelog * Thu Jul 27 2017 Fedora Release Engineering - 2.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Apr 12 2016 Parag Nemade - 2.0.1-1 - update to 2.0.1 * Thu Feb 04 2016 Fedora Release Engineering - 2.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Nov 23 2015 Parag Nemade - 2.0.0-1 - update to 2.0.0 * Wed Jul 15 2015 Parag Nemade - 1.0.0-1 - Initial packaging