%global npm_name find-up %global enable_tests 1 Name: nodejs-%{npm_name} Version: 4.1.0 Release: %mkrel 5 Summary: Find a file by walking up parent directories License: MIT Group: Development/Other URL: https://github.com/sindresorhus/find-up#readme Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz BuildRequires: nodejs-packaging Requires: npm(locate-path) >= 2.0.0 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 * Tue Mar 22 2022 umeabot <umeabot> 4.1.0-5.mga9 + Revision: 1819807 - Mageia 9 Mass Rebuild * Tue May 05 2020 tv <tv> 4.1.0-4.mga8 + Revision: 1580179 - rebuild w/o rich deps * Mon May 04 2020 joequant <joequant> 4.1.0-3.mga8 + Revision: 1580120 - redo deps * Sun Feb 16 2020 umeabot <umeabot> 4.1.0-2.mga8 + Revision: 1535570 - Mageia 8 Mass Rebuild * Sat Oct 12 2019 joequant <joequant> 4.1.0-1.mga8 + Revision: 1452313 - upgrade to 4.1.0 * Sun Oct 28 2018 joequant <joequant> 3.0.0-1.mga8 + Revision: 1326279 - upgrade to 3.0.0 * Thu Sep 20 2018 umeabot <umeabot> 2.1.0-2.mga7 + Revision: 1280479 - Mageia 7 Mass Rebuild * Sun Apr 29 2018 kekepower <kekepower> 2.1.0-1.mga7 + Revision: 1223333 - imported package nodejs-find-up