%global npm_name p-limit %global enable_tests 1 Name: nodejs-%{npm_name} Version: 2.0.0 Release: %mkrel 1 Summary: Run multiple promise-returning & async functions with limited concurrency License: MIT Group: Development/Other URL: https://github.com/sindresorhus/p-limit#readme Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz BuildRequires: nodejs-packaging BuildArch: noarch %description %{summary} %prep %setup -q -n package %build # Nothing to do here %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr index.js %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr package.json %{buildroot}%{nodejs_sitelib}/%{npm_name} %nodejs_symlink_deps %if 0%{?enable_tests} %check %{nodejs_symlink_deps} --check %endif %files %{nodejs_sitelib}/%{npm_name} %license license %doc readme.md %changelog * Sun Oct 28 2018 joequant <joequant> 2.0.0-1.mga7 + Revision: 1326269 - upgrade to 2.0.0 * Thu Sep 20 2018 umeabot <umeabot> 1.2.0-2.mga7 + Revision: 1280909 - Mageia 7 Mass Rebuild * Sun Apr 29 2018 kekepower <kekepower> 1.2.0-1.mga7 + Revision: 1223479 - imported package nodejs-p-limit