Update to upstream release 1.6.0

f38
Jamie Nguyen 11 years ago
parent a3f042ee9c
commit 160bed9037

2
.gitignore vendored

@ -2,3 +2,5 @@
/underscore-1.4.4.tgz
/tests-1.5.1.tar.bz2
/underscore-1.5.1.tgz
/tests-1.6.0.tar.bz2
/underscore-1.6.0.tgz

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

@ -3,8 +3,8 @@
%global enable_tests 0
Name: nodejs-underscore
Version: 1.5.1
Release: 2%{?dist}
Version: 1.6.0
Release: 1%{?dist}
Summary: JavaScript's functional programming helper library
License: MIT
Group: System Environment/Libraries
@ -15,7 +15,13 @@ Source0: http://registry.npmjs.org/underscore/-/underscore-%{version}.tgz
# version control repository.
Source1: tests-%{version}.tar.bz2
Source10: dl-tests.sh
BuildArch: noarch
%if 0%{?fedora} >= 19
ExclusiveArch: %{nodejs_arches} noarch
%else
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
%endif
BuildRequires: nodejs-packaging
BuildRequires: web-assets-devel
@ -47,12 +53,13 @@ rm -f underscore-min.*
%build
uglifyjs underscore.js -m --source-map underscore-min.map -o underscore-min.js
/usr/bin/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 underscore-min.map \
cp -pr package.json underscore.js underscore-min.js underscore-min.map \
%{buildroot}%{nodejs_sitelib}/underscore
#install browser version
@ -73,14 +80,17 @@ cp -pr underscore.js underscore-min.js underscore-min.map \
%files
%doc CONTRIBUTING.md LICENSE README.md
%doc LICENSE README.md
%{nodejs_sitelib}/underscore
%files -n js-underscore
%doc CONTRIBUTING.md LICENSE README.md
%doc LICENSE README.md
%{_jsdir}/underscore
%changelog
* Fri Apr 18 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.6.0-1
- update to upstream release 1.6.0
* Sun Jan 19 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.5.1-2
- ship a browser version
- add missing BuildRequires on uglify-js

@ -1,2 +1,2 @@
bb44857865aa035a67375b13381eedb3 tests-1.5.1.tar.bz2
8c4cc09e37517dc6b387d3ca00c6b593 underscore-1.5.1.tgz
d98b3849b5abd0e531b160173cb175b1 tests-1.6.0.tar.bz2
563b1d9f13887d4bdcb6b06270a54825 underscore-1.6.0.tgz

Loading…
Cancel
Save