|
|
|
@ -3,8 +3,8 @@
|
|
|
|
|
%global enable_tests 0
|
|
|
|
|
|
|
|
|
|
Name: nodejs-underscore
|
|
|
|
|
Version: 1.4.4
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 1.5.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: JavaScript's functional programming helper library
|
|
|
|
|
License: MIT
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
@ -17,7 +17,7 @@ Source1: tests-%{version}.tar.bz2
|
|
|
|
|
Source10: dl-tests.sh
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: nodejs-devel
|
|
|
|
|
BuildRequires: nodejs-packaging
|
|
|
|
|
|
|
|
|
|
%if 0%{?enable_tests}
|
|
|
|
|
BuildRequires: npm(phantomjs)
|
|
|
|
@ -32,15 +32,16 @@ extending any core JavaScript objects.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n package
|
|
|
|
|
%setup -T -D -a 1 -q -n package
|
|
|
|
|
rm -f underscore-min.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
#nothing to do
|
|
|
|
|
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 \
|
|
|
|
|
cp -pr package.json index.js underscore.js underscore-min.js underscore-min.map \
|
|
|
|
|
%{buildroot}%{nodejs_sitelib}/underscore
|
|
|
|
|
|
|
|
|
|
# No dependencies.
|
|
|
|
@ -49,7 +50,7 @@ cp -pr package.json index.js underscore.js underscore-min.js \
|
|
|
|
|
|
|
|
|
|
%if 0%{?enable_tests}
|
|
|
|
|
%check
|
|
|
|
|
ln -sf %{nodejs_sitelib} .
|
|
|
|
|
%nodejs_symlink_deps --check
|
|
|
|
|
%{nodejs_sitelib}/phantomjs/bin/phantomjs \
|
|
|
|
|
test/vendor/runner.js test/index.html?noglobals=true
|
|
|
|
|
%endif
|
|
|
|
@ -61,6 +62,10 @@ ln -sf %{nodejs_sitelib} .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.4-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|