# needed for building on el6 %{?nodejs_find_provides_and_requires} %global enable_tests 0 %global srcname test %global owner gozala Name: nodejs-%{srcname} Version: 0.6.0 Release: %mkrel 7 Summary: (Un)CommonJS test runner License: MIT URL: https://github.com/Gozala/test-commonjs Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz Group: Development/Java BuildArch: noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: nodejs-ansi-font %endif %description %{summary}. %prep %setup -qn package rm -rf node_modules %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} cp -pr package.json *.js \ %{buildroot}%{nodejs_sitelib}/%{srcname} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check %{__nodejs} ./test/index.js %endif %files %{!?_licensedir:%global license %doc} %doc History.md Readme.md %license License.md %{nodejs_sitelib}/%{srcname} %changelog * Wed Mar 23 2022 umeabot <umeabot> 0.6.0-7.mga9 + Revision: 1820231 - Mageia 9 Mass Rebuild * Sat Jul 04 2020 joequant <joequant> 0.6.0-6.mga8 + Revision: 1601960 - redo deps * Sat Feb 15 2020 umeabot <umeabot> 0.6.0-5.mga8 + Revision: 1525234 - Mageia 8 Mass Rebuild * Sat Apr 06 2019 umeabot <umeabot> 0.6.0-4.mga7 + Revision: 1386313 - Mageia 7 Mass Rebuild - Mageia 7 Mass Rebuild * Wed Sep 28 2016 neoclust <neoclust> 0.6.0-2.mga6 + Revision: 1057389 - imported package nodejs-test