%{?nodejs_find_provides_and_requires} %global packagename grunt-legacy-log-utils %global enable_tests 0 Name: nodejs-grunt-legacy-log-utils Version: 0.1.1 Release: 7%{?dist} Summary: Static methods for the Grunt 0.4.x logger License: MIT URL: https://github.com/gruntjs/grunt-legacy-log-utils.git Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz ExclusiveArch: %{nodejs_arches} noarch BuildArch: noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(colors) BuildRequires: npm(grunt-cli) BuildRequires: npm(grunt-contrib-jshint) BuildRequires: npm(grunt-contrib-nodeunit) BuildRequires: npm(grunt-contrib-watch) BuildRequires: npm(underscore.string) %endif Requires: nodejs %description Static methods for the Grunt 0.4.x logger. %prep %setup -q -n package %nodejs_fixdep underscore.string %nodejs_fixdep colors %nodejs_fixdep lodash %build # nothing to do! %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} cp -pr package.json *.js \ %{buildroot}%{nodejs_sitelib}/%{packagename} %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check grunt test %endif %files %{!?_licensedir:%global license %doc} %doc *.md %license LICENSE-MIT %{nodejs_sitelib}/%{packagename} %changelog * Sat Oct 24 2015 Jared Smith - 0.1.1-7 - Fix dependency on npm(grunt-cli) * Tue Oct 20 2015 Jared Smith - 0.1.1-3 - Update dependency on colors * Mon Oct 19 2015 Jared Smith - 0.1.1-2 - Update dependency on underscore.string * Mon Oct 19 2015 Jared Smith - 0.1.1-1 - Initial packaging