diff --git a/.gitignore b/.gitignore index e69de29..e7e7e11 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/grunt-legacy-util-0.1.2.tgz diff --git a/nodejs-grunt-legacy-util.spec b/nodejs-grunt-legacy-util.spec new file mode 100644 index 0000000..9ffeefe --- /dev/null +++ b/nodejs-grunt-legacy-util.spec @@ -0,0 +1,74 @@ +%{?nodejs_find_provides_and_requires} + +%global enable_tests 0 + +Name: nodejs-grunt-legacy-util +Version: 0.1.2 +Release: 1%{?dist} +Summary: Deprecated Grunt utils provided for backwards compatibility +License: MIT +Group: System Environment/Libraries +URL: https://github.com/gruntjs/grunt-legacy-util +Source0: http://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-%{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: npm(async) +BuildRequires: npm(exit) +BuildRequires: npm(getobject) +BuildRequires: npm(grunt-cli) +BuildRequires: npm(grunt-contrib-nodeunit) +BuildRequires: npm(hooker) +BuildRequires: npm(lodash) +BuildRequires: npm(temporary) +BuildRequires: npm(underscore.string) +BuildRequires: npm(which) +%endif + +%description +%{summary}. + + +%prep +%setup -q -n package + +%nodejs_fixdep async '~0.2.10' +%nodejs_fixdep lodash '~2.4.1' +%nodejs_fixdep underscore.string '~2.3.1' + + +%build +#nothing to do + + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-legacy-util +cp -pr package.json index.js \ + %{buildroot}%{nodejs_sitelib}/grunt-legacy-util + +%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-legacy-util + + +%changelog +* Sat Mar 29 2014 Jamie Nguyen - 0.1.2-1 +- initial package diff --git a/sources b/sources index e69de29..87247af 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +371ce495a8f6dfeb9ab19ed404e1b695 grunt-legacy-util-0.1.2.tgz