%{?nodejs_find_provides_and_requires} %global enable_tests 0 Name: nodejs-grunt-contrib-watch Version: 0.6.1 Release: 5%{?dist} Summary: Run predefined tasks whenever watched file patterns are added/changed/deleted License: MIT Group: System Environment/Libraries URL: https://github.com/gruntjs/grunt-contrib-watch Source0: http://registry.npmjs.org/grunt-contrib-watch/-/grunt-contrib-watch-%{version}.tgz # https://raw.githubusercontent.com/gruntjs/grunt-contrib-watch/c190351f5262fc6b6c6a1479c990adedb18d629d/Gruntfile.js Source1: Gruntfile-%{version}.js # The test files are missing from the NPM tarball. # Source1 is generated by running Source10, which pulls from the upstream # version control repository. Source2: tests-v%{version}.tar.bz2 Source10: dl-tests.sh BuildArch: noarch %if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch %else ExclusiveArch: %{ix86} x86_64 %{arm} noarch %endif BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(async) BuildRequires: npm(gaze) BuildRequires: npm(grunt-cli) BuildRequires: npm(grunt-contrib-internal) BuildRequires: npm(grunt-contrib-nodeunit) BuildRequires: npm(lodash) BuildRequires: npm(tiny-lr-fork) BuildRequires: npm(underscore.string) %endif %description %{summary}. %prep %setup -q -n package %setup -q -T -D -a 2 -n package cp -p %{SOURCE1} Gruntfile.js %nodejs_fixdep lodash %nodejs_fixdep async %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-contrib-watch cp -pr package.json tasks/ \ %{buildroot}%{nodejs_sitelib}/grunt-contrib-watch %nodejs_symlink_deps %if 0%{?enable_tests} %check %nodejs_symlink_deps --check /usr/bin/grunt nodeunit -v %endif %files %doc LICENSE-MIT README.md %{nodejs_sitelib}/grunt-contrib-watch %changelog * Tue Oct 27 2015 Jared Smith - 0.6.1-5 - Relax requirement on npm(async) version * Sun Oct 25 2015 Jared Smith - 0.6.1-4 - Rebuild to relax dependency on a specific version of npn(lodash) * Wed Jun 17 2015 Fedora Release Engineering - 0.6.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Mar 29 2014 Jamie Nguyen - 0.6.1-1 - initial package