[nodejs-grunt] Initial commit

Jamie Nguyen jamielinux at fedoraproject.org
Sat Dec 7 20:49:06 UTC 2013


commit 389e0144a634312ffbaf6a757e52016b5d839dd9
Author: Jamie Nguyen <j at jamielinux.com>
Date:   Sat Dec 7 20:48:58 2013 +0000

    Initial commit

 .gitignore        |    1 +
 nodejs-grunt.spec |  106 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 108 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a33f7d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/grunt-0.4.1.tgz
diff --git a/nodejs-grunt.spec b/nodejs-grunt.spec
new file mode 100644
index 0000000..1911961
--- /dev/null
+++ b/nodejs-grunt.spec
@@ -0,0 +1,106 @@
+%{?nodejs_find_provides_and_requires}
+
+%global enable_tests 0
+
+Name:       nodejs-grunt
+Version:    0.4.1
+Release:    2%{?dist}
+Summary:    Grunt is a JavaScript library used for automation and running tasks
+License:    MIT
+Group:      System Environment/Libraries
+URL:        https://github.com/gruntjs/grunt
+Source0:    http://registry.npmjs.org/grunt/-/grunt-%{version}.tgz
+
+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:  coffee-script
+BuildRequires:  npm(async)
+BuildRequires:  npm(colors)
+BuildRequires:  npm(dateformat)
+BuildRequires:  npm(difflet)
+BuildRequires:  npm(eventemitter2)
+BuildRequires:  npm(findup-sync)
+BuildRequires:  npm(glob)
+BuildRequires:  npm(grunt)
+BuildRequires:  npm(grunt-cli)
+BuildRequires:  npm(grunt-contrib-nodeunit)
+BuildRequires:  npm(grunt-contrib-watch)
+BuildRequires:  npm(hooker)
+BuildRequires:  npm(iconv-lite)
+BuildRequires:  npm(js-yaml)
+BuildRequires:  npm(lodash)
+BuildRequires:  npm(minimatch)
+BuildRequires:  npm(nodeunit)
+BuildRequires:  npm(nopt)
+BuildRequires:  npm(rimraf)
+BuildRequires:  npm(temporary)
+BuildRequires:  npm(underscore.string)
+BuildRequires:  npm(which)
+%endif
+
+%description
+Grunt is the JavaScript task runner. Why use a task runner? In one word:
+automation. The less work you have to do when performing repetitive tasks
+like minification, compilation, unit testing, linting, etc, the easier
+your job becomes. After you've configured it, a task runner can do most
+of that mundane work for you with basically zero effort.
+
+%prep
+%setup -q -n package
+%nodejs_fixdep async '~0.2'
+%nodejs_fixdep coffee-script '~1.3'
+%nodejs_fixdep colors '~0.6'
+%nodejs_fixdep dateformat '*'
+%nodejs_fixdep eventemitter2 '~0.4'
+%nodejs_fixdep findup-sync '~0.1'
+%nodejs_fixdep glob '~3.1'
+%nodejs_fixdep hooker '~0.2'
+%nodejs_fixdep iconv-lite '~0.2'
+%nodejs_fixdep minimatch '~0.2'
+%nodejs_fixdep nopt '~2.0'
+%nodejs_fixdep rimraf '~2.0'
+%nodejs_fixdep lodash '~1.0'
+%nodejs_fixdep underscore.string '~2.2'
+%nodejs_fixdep which '~1.0'
+%nodejs_fixdep js-yaml '~2.0'
+
+
+%build
+#nothing to do
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/grunt
+cp -pr package.json lib/ \
+    %{buildroot}%{nodejs_sitelib}/grunt
+
+%nodejs_symlink_deps
+
+
+%if 0%{?enable_tests}
+%check
+%nodejs_symlink_deps --check
+grunt test
+%endif
+
+
+%files
+%doc AUTHORS CHANGELOG CONTRIBUTING.md LICENSE-MIT README.md
+%{nodejs_sitelib}/grunt
+
+
+%changelog
+* Sun Nov 03 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.4.1-2
+- improve %%summary
+- add ExclusiveArch logic
+
+* Fri Jun 21 2013 Jamie Nguyen <jamielinux at fedoraproject.org> - 0.4.1-1
+- initial package
diff --git a/sources b/sources
index e69de29..52cbf9a 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f4b916280ec5a2c65e8eabefebf33b89  grunt-0.4.1.tgz


More information about the scm-commits mailing list