%global npm_name anymatch %global enable_tests 1 Name: nodejs-%{npm_name} Version: 2.0.0 Release: %mkrel 7 Summary: Matches strings against configurable strings, globs, regular expressions, and/or functions License: ISC Group: Development/Other URL: https://github.com/micromatch/anymatch Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz BuildRequires: nodejs-packaging Requires: npm(micromatch) Requires: npm(normalize-path) BuildArch: noarch %description %{summary} %prep %setup -q -n package %nodejs_fixdep normalize-path ">=3.0.0" %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 * Wed Mar 23 2022 umeabot <umeabot> 2.0.0-7.mga9 + Revision: 1820234 - Mageia 9 Mass Rebuild * Sat Jul 04 2020 joequant <joequant> 2.0.0-6.mga8 + Revision: 1601964 - redo deps * Wed Feb 12 2020 umeabot <umeabot> 2.0.0-5.mga8 + Revision: 1502369 - Mageia 8 Mass Rebuild * Thu Sep 20 2018 umeabot <umeabot> 2.0.0-4.mga7 + Revision: 1280147 - Mageia 7 Mass Rebuild * Thu May 03 2018 kekepower <kekepower> 2.0.0-3.mga7 + Revision: 1225760 - Fix Requires * Thu May 03 2018 kekepower <kekepower> 2.0.0-2.mga7 + Revision: 1225274 - Fix Requires * Thu May 03 2018 kekepower <kekepower> 2.0.0-1.mga7 + Revision: 1225065 - imported package nodejs-anymatch