Blame SPECS/nodejs-lodash._createpadding.spec

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