Blame SPECS/nodejs-lodash._bindcallback.spec

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