%{?nodejs_find_provides_and_requires} # sometimes you might need to disable tests to get it to build since tap # depends on this. enabling tast require a lot of deps. %global enable_tests 0 Name: nodejs-minimist Version: 1.2.0 Release: %mkrel 2 Summary: Parse argument options in Node.js Group: System/Libraries License: MIT URL: http://github.com/substack/minimist Source0: http://registry.npmjs.org/minimist/-/minimist-%{version}.tgz BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(tap) BuildRequires: npm(tape) %endif BuildArch: noarch %description This module is the guts of nodejs-optimist's argument parser without all the fanciful decoration. %prep %setup -q -n package %build #nothing to do %install rm -rf %buildroot mkdir -p %{buildroot}%{nodejs_sitelib}/minimist cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/minimist %check %if 0%{?enable_tests} %nodejs_symlink_deps --check %tap test/*.js %endif %files %{nodejs_sitelib}/minimist %doc LICENSE readme.markdown example %changelog * Sat Feb 20 2016 umeabot <umeabot> 1.2.0-2.mga6 + Revision: 971804 - Mageia 6 Mass Rebuild * Tue Oct 20 2015 spuhler <spuhler> 1.2.0-1.mga6 + Revision: 892940 - fixed Groups - first build after import from Fedora - imported package nodejs-minimist * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.1-2 - update to new nodejs standards * Mon Aug 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.1-1 - initial package