Blame SPECS/nodejs-lodash.padleft.spec

5a73a9
%{?scl:%scl_package nodejs-lodash.padleft}
5a73a9
%{!?scl:%global pkg_name %{name}}
5a73a9
5a73a9
# spec file for package nodejs-nodejs-lodash.padleft
5a73a9
5a73a9
%global npm_name lodash.padleft
5a73a9
%{?nodejs_find_provides_and_requires}
5a73a9
5a73a9
%global enable_tests 0
5a73a9
5a73a9
Name:		%{?scl_prefix}nodejs-lodash.padleft
5a73a9
Version:	3.1.1
5a73a9
Release:	1%{?dist}
5a73a9
Summary:	The modern build of lodash’s `_.padLeft` as a module.
5a73a9
Url:		https://lodash.com/
5a73a9
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
5a73a9
License:	MIT
5a73a9
5a73a9
BuildArch:	noarch
5a73a9
5a73a9
%if 0%{?fedora} >= 19
5a73a9
ExclusiveArch: %{nodejs_arches} noarch
5a73a9
%else
5a73a9
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
5a73a9
%endif
5a73a9
5a73a9
BuildRequires:  %{?scl_prefix}nodejs-devel
5a73a9
BuildRequires:  nodejs010-runtime
5a73a9
5a73a9
%if 0%{?enable_tests}
5a73a9
%endif
5a73a9
5a73a9
BuildRequires:	%{?scl_prefix}npm(lodash._basetostring)
5a73a9
BuildRequires:	%{?scl_prefix}npm(lodash._createpadding)
5a73a9
5a73a9
Requires:	%{?scl_prefix}npm(lodash._basetostring)
5a73a9
Requires:	%{?scl_prefix}npm(lodash._createpadding)
5a73a9
5a73a9
%description
5a73a9
The modern build of lodash’s `_.padLeft` as a module.
5a73a9
5a73a9
%prep
5a73a9
%setup -q -n package
5a73a9
5a73a9
rm -rf node_modules
5a73a9
5a73a9
%build
5a73a9
5a73a9
%install
5a73a9
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
5a73a9
5a73a9
cp -pr package.json *.js \
5a73a9
%{buildroot}%{nodejs_sitelib}/%{npm_name}
5a73a9
5a73a9
%{nodejs_symlink_deps}
5a73a9
5a73a9
%if 0%{?enable_tests}
5a73a9
5a73a9
%check
5a73a9
%{nodejs_symlink_deps} --check
5a73a9
5a73a9
%endif
5a73a9
5a73a9
%files
5a73a9
%{nodejs_sitelib}/lodash.padleft
5a73a9
5a73a9
%doc README.md LICENSE.txt
5a73a9
5a73a9
%changelog
5a73a9
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 3.1.1-1
5a73a9
- Initial build