%{?nodejs_find_provides_and_requires} %global enable_tests 0 Name: nodejs-grunt-contrib-uglify Version: 0.4.0 Release: 1%{?dist} Summary: Minify files with UglifyJS License: MIT Group: System Environment/Libraries URL: https://github.com/gruntjs/grunt-contrib-uglify #Source0: http://registry.npmjs.org/grunt-contrib-uglify/-/grunt-contrib-uglify-%{version}.tgz Source0: https://github.com/gruntjs/grunt-contrib-uglify/archive/v%{version}.tar.gz BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(grunt-cli) BuildRequires: npm(grunt-contrib-clean) BuildRequires: npm(grunt-contrib-internal) BuildRequires: npm(grunt-contrib-nodeunit) BuildRequires: uglify-js %endif %description %{summary}. %prep %setup -q -n grunt-contrib-uglify-%{version} %nodejs_fixdep uglify-js '~2.4' %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/grunt-contrib-uglify cp -pr package.json Gruntfile.js tasks/ \ %{buildroot}%{nodejs_sitelib}/grunt-contrib-uglify %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 docs/ %{nodejs_sitelib}/grunt-contrib-uglify %changelog * Tue Mar 18 2014 Zbigniew Jędrzejewski-Szmek - 0.4.0-1 - update to latest version * Fri Jun 21 2013 Jamie Nguyen - 0.2.2-1 - initial package