%{?nodejs_find_provides_and_requires} %global enable_tests 0 Name: nodejs-defined Version: 1.0.0 Release: 2%{?dist} Summary: Return the first argument that is '!== undefined' License: MIT Group: System Environment/Libraries URL: https://github.com/substack/defined Source0: http://registry.npmjs.org/defined/-/defined-%{version}.tgz BuildArch: noarch BuildRequires: nodejs-devel %if 0%{?enable_tests} BuildRequires: npm(tap) BuildRequires: npm(tape) %endif %description %{summary}. %prep %setup -q -n package %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/defined cp -pr package.json index.js \ %{buildroot}%{nodejs_sitelib}/defined %nodejs_symlink_deps %if 0%{?enable_tests} %check ln -sf %{nodejs_sitelib} . %tap test/*.js %endif %files %doc LICENSE readme.markdown example/ %{nodejs_sitelib}/defined %changelog * Mon Oct 26 2015 Jared Smith - 1.0.0-2 - Temporarily disable tests again to bootstrap newer npm(tape) * Mon Oct 26 2015 Jared Smith - 1.0.0-1 - Update to upstream 1.0.0 release - Re-enabled tests * Wed Jun 17 2015 Fedora Release Engineering - 0.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon May 27 2013 Jamie Nguyen - 0.0.0-1 - initial package