Blame SPECS/nodejs-lodash.repeat.spec

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