Update to upstream release 1.5.1

f38
Jamie Nguyen 12 years ago
parent 94a7d0dd5a
commit 3138f2cc8d

2
.gitignore vendored

@ -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

@ -1,6 +1,6 @@
#!/bin/bash
tag=1.4.4
tag=1.5.1
set -e

@ -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 <jamielinux@fedoraproject.org> - 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 <rel-eng@lists.fedoraproject.org> - 1.4.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

@ -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

Loading…
Cancel
Save