%global npm_name treeify %global enable_tests 1 Name: nodejs-%{npm_name} Version: 1.1.0 Release: %mkrel 3 Summary: converts a JS object into a nice and readable tree structure for the console License: MIT Group: Development/Other URL: https://github.com/notatestuser/treeify#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 examples %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr package.json %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr test %{buildroot}%{nodejs_sitelib}/%{npm_name} cp -pfr treeify.js %{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> 1.1.0-3.mga9 + Revision: 1819342 - Mageia 9 Mass Rebuild * Fri Feb 14 2020 umeabot <umeabot> 1.1.0-2.mga8 + Revision: 1521140 - Mageia 8 Mass Rebuild * Tue May 22 2018 kekepower <kekepower> 1.1.0-1.mga7 + Revision: 1231627 - imported package nodejs-treeify