#disabled as ava module upstream not found %global enable_tests 0 %global module_name require-uncached Name: nodejs-%{module_name} Version: 1.0.2 Release: 5%{?dist} Summary: Require a module bypassing the cache License: MIT URL: https://github.com/sindresorhus/require-uncached Source0: http://registry.npmjs.org/%{module_name}/-/%{module_name}-%{version}.tgz Source1: https://raw.githubusercontent.com/sindresorhus/require-uncached/v%{version}/license Source2: https://raw.githubusercontent.com/sindresorhus/require-uncached/v%{version}/test.js BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging BuildRequires: npm(caller-path) BuildRequires: npm(resolve-from) %if 0%{?enable_tests} BuildRequires: npm(ava) %endif %description Useful for testing purposes when you need to freshly require a module. %prep %setup -q -n package rm -rf node_modules cp -p %{SOURCE1} %{SOURCE2} . %nodejs_fixdep caller-path ~1.x %nodejs_fixdep resolve-from %build # nothing to build %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name} cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name} %nodejs_symlink_deps %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' %if 0%{?enable_tests} node test.js %else %{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" %endif %files %doc readme.md license %{nodejs_sitelib}/%{module_name} %changelog * Mon Feb 15 2016 Jared Smith - 1.0.2-5 - Relax dependency on npm(resolve-from) * Thu Feb 04 2016 Fedora Release Engineering - 1.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Feb 02 2015 Parag Nemade - 1.0.2-2 - fix caller-path dependency * Sun Dec 07 2014 Parag Nemade - 1.0.2-1 - Initial packaging