Blame SPECS/nodejs-lodash.pad.spec

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