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