%{?nodejs_find_provides_and_requires} %global packagename next-tick %global enable_tests 0 Name: nodejs-next-tick Version: 1.1.0 Release: 1 Summary: Environment agnostic nextTick polyfill License: MIT URL: https://github.com/medikoo/next-tick.git Source0: https://github.com/medikoo/next-tick/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(tad) %endif %description Environment agnostic nextTick polyfill %prep %autosetup -n next-tick-%{version} %build %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr package.json *.js \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' %if 0%{?enable_tests} %{__nodejs} %{nodejs_sitelib}/tad/bin/tad %else echo "Tests disabled..." %endif %files %{!?_licensedir:%global license %doc} %doc *.md %license LICENSE %{nodejs_sitelib}/%{packagename} %changelog * Thu Jun 30 2022 wulei - 1.1.0-1 - Upgrade to 1.1.0 * Thu Aug 20 2020 wangchong - 0.2.2-1 - package init