|
|
@ -3,8 +3,8 @@
|
|
|
|
%global enable_tests 0
|
|
|
|
%global enable_tests 0
|
|
|
|
|
|
|
|
|
|
|
|
Name: nodejs-underscore
|
|
|
|
Name: nodejs-underscore
|
|
|
|
Version: 1.5.1
|
|
|
|
Version: 1.6.0
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 1%{?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
|
|
|
@ -15,7 +15,13 @@ Source0: http://registry.npmjs.org/underscore/-/underscore-%{version}.tgz
|
|
|
|
# version control repository.
|
|
|
|
# version control repository.
|
|
|
|
Source1: tests-%{version}.tar.bz2
|
|
|
|
Source1: tests-%{version}.tar.bz2
|
|
|
|
Source10: dl-tests.sh
|
|
|
|
Source10: dl-tests.sh
|
|
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 19
|
|
|
|
|
|
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: nodejs-packaging
|
|
|
|
BuildRequires: nodejs-packaging
|
|
|
|
BuildRequires: web-assets-devel
|
|
|
|
BuildRequires: web-assets-devel
|
|
|
@ -47,12 +53,13 @@ rm -f underscore-min.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%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
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{nodejs_sitelib}/underscore
|
|
|
|
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
|
|
|
|
%{buildroot}%{nodejs_sitelib}/underscore
|
|
|
|
|
|
|
|
|
|
|
|
#install browser version
|
|
|
|
#install browser version
|
|
|
@ -73,14 +80,17 @@ cp -pr underscore.js underscore-min.js underscore-min.map \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%doc CONTRIBUTING.md LICENSE README.md
|
|
|
|
%doc LICENSE README.md
|
|
|
|
%{nodejs_sitelib}/underscore
|
|
|
|
%{nodejs_sitelib}/underscore
|
|
|
|
|
|
|
|
|
|
|
|
%files -n js-underscore
|
|
|
|
%files -n js-underscore
|
|
|
|
%doc CONTRIBUTING.md LICENSE README.md
|
|
|
|
%doc LICENSE README.md
|
|
|
|
%{_jsdir}/underscore
|
|
|
|
%{_jsdir}/underscore
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%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
|
|
|
|
* Sun Jan 19 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.5.1-2
|
|
|
|
- ship a browser version
|
|
|
|
- ship a browser version
|
|
|
|
- add missing BuildRequires on uglify-js
|
|
|
|
- add missing BuildRequires on uglify-js
|
|
|
|