Blame SPECS/nodejs-lodash._basecopy.spec

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