Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 17cfd42a10c049989e0ff94fa65c8bc6 > files > 3

nodejs-lodash-2.4.1-1.mga5.src.rpm

%{?nodejs_find_provides_and_requires}

%global enable_tests 0

Name:       nodejs-lodash
Version:    2.4.1
Release:    %mkrel 1
Summary:    A low-level utility library delivering consistency and customization
License:    MIT
Group:      System/Libraries
URL:        https://github.com/bestiejs/lodash
Source0:    http://registry.npmjs.org/lodash/-/lodash-%{version}.tgz
# Source1 is generated by running Source10, which pulls from the upstream
# revision control repository.
Source1:    tests-%{version}.tar.bz2
Source10:   dl-tests.sh

BuildArch:  noarch

# /usr/lib/rpm/nodejs.req fails if node engine version is omitted. This is a
# temporary fix.
BuildRequires:  nodejs-packaging

%if 0%{?enable_tests}
BuildRequires:  npm(tar)
BuildRequires:  npm(qunit)
%endif

%description
%{summary}.


%prep
%setup -q -n package
%setup -q -D -T -a 1 -n package

# Minified/pre-compiled JS scripts must not be installed.
find dist/ -type f -iname '*.min.js' -delete


%build
# nothing to do


%install
mkdir -p %{buildroot}%{nodejs_sitelib}/lodash
cp -pr package.json lodash.js dist/ \
    %{buildroot}%{nodejs_sitelib}/lodash

%nodejs_symlink_deps


%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%__nodejs test/test.js ../dist/lodash.js
%endif


%files
%doc LICENSE.txt README.md
%{nodejs_sitelib}/lodash




%changelog
* Mon Oct 27 2014 tv <tv> 2.4.1-1.mga5
+ Revision: 793743
- imported package nodejs-lodash