diff --git a/.gitignore b/.gitignore index 76f333f..7a84f66 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /tests-1.4.4.tar.bz2 /underscore-1.4.4.tgz +/tests-1.5.1.tar.bz2 +/underscore-1.5.1.tgz diff --git a/dl-tests.sh b/dl-tests.sh old mode 100755 new mode 100644 index beb0026..69de284 --- a/dl-tests.sh +++ b/dl-tests.sh @@ -1,6 +1,6 @@ #!/bin/bash -tag=1.4.4 +tag=1.5.1 set -e diff --git a/nodejs-underscore.spec b/nodejs-underscore.spec index 59fb92e..20977b0 100644 --- a/nodejs-underscore.spec +++ b/nodejs-underscore.spec @@ -3,8 +3,8 @@ %global enable_tests 0 Name: nodejs-underscore -Version: 1.4.4 -Release: 3%{?dist} +Version: 1.5.1 +Release: 1%{?dist} Summary: JavaScript's functional programming helper library License: MIT Group: System Environment/Libraries @@ -17,7 +17,7 @@ Source1: tests-%{version}.tar.bz2 Source10: dl-tests.sh BuildArch: noarch -BuildRequires: nodejs-devel +BuildRequires: nodejs-packaging %if 0%{?enable_tests} BuildRequires: npm(phantomjs) @@ -32,15 +32,16 @@ extending any core JavaScript objects. %prep %setup -q -n package %setup -T -D -a 1 -q -n package +rm -f underscore-min.* %build -#nothing to do +uglifyjs underscore.js -m --source-map underscore-min.map -o underscore-min.js %install mkdir -p %{buildroot}%{nodejs_sitelib}/underscore -cp -pr package.json index.js underscore.js underscore-min.js \ +cp -pr package.json index.js underscore.js underscore-min.js underscore-min.map \ %{buildroot}%{nodejs_sitelib}/underscore # No dependencies. @@ -49,7 +50,7 @@ cp -pr package.json index.js underscore.js underscore-min.js \ %if 0%{?enable_tests} %check -ln -sf %{nodejs_sitelib} . +%nodejs_symlink_deps --check %{nodejs_sitelib}/phantomjs/bin/phantomjs \ test/vendor/runner.js test/index.html?noglobals=true %endif @@ -61,6 +62,10 @@ ln -sf %{nodejs_sitelib} . %changelog +* Sun Aug 18 2013 Jamie Nguyen - 1.5.1-1 +- update to upstream release 1.5.1 +- remove pre-compiled JS and use uglifyjs to compile + * Sat Aug 03 2013 Fedora Release Engineering - 1.4.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild diff --git a/sources b/sources index 0d52a2c..b2cee61 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -f3d6a69153074b3205df96960f43ca66 tests-1.4.4.tar.bz2 -b3f32b8c28916abc21eed67d0d7f91c8 underscore-1.4.4.tgz +bb44857865aa035a67375b13381eedb3 tests-1.5.1.tar.bz2 +8c4cc09e37517dc6b387d3ca00c6b593 underscore-1.5.1.tgz