|
|
|
@ -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 <tchollingsworth@gmail.com> - 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 <jamielinux@fedoraproject.org> - 1.5.1-1
|
|
|
|
|
- update to upstream release 1.5.1
|
|
|
|
|
- remove pre-compiled JS and use uglifyjs to compile
|
|
|
|
|