ship a browser version

- add missing BuildRequires on uglify-js
- remove no longer present documentation files
f38
T.C. Hollingsworth 11 years ago
parent 3138f2cc8d
commit a3f042ee9c

@ -4,7 +4,7 @@
Name: nodejs-underscore Name: nodejs-underscore
Version: 1.5.1 Version: 1.5.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: JavaScript's functional programming helper library Summary: JavaScript's functional programming helper library
License: MIT License: MIT
Group: System Environment/Libraries Group: System Environment/Libraries
@ -18,6 +18,8 @@ Source10: dl-tests.sh
BuildArch: noarch BuildArch: noarch
BuildRequires: nodejs-packaging BuildRequires: nodejs-packaging
BuildRequires: web-assets-devel
BuildRequires: npm(uglify-js)
%if 0%{?enable_tests} %if 0%{?enable_tests}
BuildRequires: npm(phantomjs) 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 for the usual functional suspects (each, map, reduce, filter...) without
extending any core JavaScript objects. 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 %prep
%setup -q -n package %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 \ cp -pr package.json index.js underscore.js underscore-min.js underscore-min.map \
%{buildroot}%{nodejs_sitelib}/underscore %{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. # No dependencies.
# %%nodejs_symlink_deps # %%nodejs_symlink_deps
@ -57,11 +73,19 @@ cp -pr package.json index.js underscore.js underscore-min.js underscore-min.map
%files %files
%doc CONTRIBUTING.md LICENSE README.md favicon.ico index.html %doc CONTRIBUTING.md LICENSE README.md
%{nodejs_sitelib}/underscore %{nodejs_sitelib}/underscore
%files -n js-underscore
%doc CONTRIBUTING.md LICENSE README.md
%{_jsdir}/underscore
%changelog %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 * Sun Aug 18 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.5.1-1
- update to upstream release 1.5.1 - update to upstream release 1.5.1
- remove pre-compiled JS and use uglifyjs to compile - remove pre-compiled JS and use uglifyjs to compile

Loading…
Cancel
Save