From a3f042ee9c4b65bbfa3d698f68275c6e0d1d4467 Mon Sep 17 00:00:00 2001 From: "T.C. Hollingsworth" Date: Sun, 19 Jan 2014 00:43:26 -0700 Subject: [PATCH] ship a browser version - add missing BuildRequires on uglify-js - remove no longer present documentation files --- nodejs-underscore.spec | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/nodejs-underscore.spec b/nodejs-underscore.spec index 20977b0..22da938 100644 --- a/nodejs-underscore.spec +++ b/nodejs-underscore.spec @@ -4,7 +4,7 @@ Name: nodejs-underscore Version: 1.5.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: JavaScript's functional programming helper library License: MIT Group: System Environment/Libraries @@ -18,6 +18,8 @@ Source10: dl-tests.sh BuildArch: noarch BuildRequires: nodejs-packaging +BuildRequires: web-assets-devel +BuildRequires: npm(uglify-js) %if 0%{?enable_tests} BuildRequires: npm(phantomjs) @@ -28,6 +30,15 @@ Underscore.js is a utility-belt library for JavaScript that provides support for the usual functional suspects (each, map, reduce, filter...) without extending any core JavaScript objects. +%package -n js-underscore +Summary: JavaScript's functional programming helper library +Group: System Environment/Libraries +Requires: web-assets-filesystem + +%description -n js-underscore +Underscore.js is a utility-belt library for JavaScript that provides support +for the usual functional suspects (each, map, reduce, filter...) without +extending any core JavaScript objects. %prep %setup -q -n package @@ -44,6 +55,11 @@ mkdir -p %{buildroot}%{nodejs_sitelib}/underscore cp -pr package.json index.js underscore.js underscore-min.js underscore-min.map \ %{buildroot}%{nodejs_sitelib}/underscore +#install browser version +mkdir -p %{buildroot}%{_jsdir}/underscore +cp -pr underscore.js underscore-min.js underscore-min.map \ + %{buildroot}%{_jsdir}/underscore + # No dependencies. # %%nodejs_symlink_deps @@ -57,11 +73,19 @@ cp -pr package.json index.js underscore.js underscore-min.js underscore-min.map %files -%doc CONTRIBUTING.md LICENSE README.md favicon.ico index.html +%doc CONTRIBUTING.md LICENSE README.md %{nodejs_sitelib}/underscore +%files -n js-underscore +%doc CONTRIBUTING.md LICENSE README.md +%{_jsdir}/underscore %changelog +* Sun Jan 19 2014 T.C. Hollingsworth - 1.5.1-2 +- ship a browser version +- add missing BuildRequires on uglify-js +- remove no longer present documentation files + * 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