Blame SPECS/nodejs-lodash._basetostring.spec

afd4b8
%{?scl:%scl_package nodejs-lodash._basetostring}
afd4b8
%{!?scl:%global pkg_name %{name}}
afd4b8
afd4b8
# spec file for package nodejs-nodejs-lodash._basetostring
afd4b8
afd4b8
%global npm_name lodash._basetostring
afd4b8
%{?nodejs_find_provides_and_requires}
afd4b8
afd4b8
%global enable_tests 0
afd4b8
afd4b8
Name:		%{?scl_prefix}nodejs-lodash._basetostring
afd4b8
Version:	3.0.1
afd4b8
Release:	3%{?dist}
afd4b8
Summary:	The modern build of lodash’s internal `baseToString` as a module.
afd4b8
Url:		https://lodash.com/
afd4b8
Source0:	https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
afd4b8
License:	MIT
afd4b8
afd4b8
BuildArch:	noarch
afd4b8
afd4b8
%if 0%{?fedora} >= 19
afd4b8
ExclusiveArch: %{nodejs_arches} noarch
afd4b8
%else
afd4b8
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
afd4b8
%endif
afd4b8
afd4b8
BuildRequires:  %{?scl_prefix}nodejs-devel
afd4b8
BuildRequires:  %{?scl_prefix}runtime
afd4b8
afd4b8
%if 0%{?enable_tests}
afd4b8
%endif
afd4b8
afd4b8
%description
afd4b8
The modern build of lodash’s internal `baseToString` as a module.
afd4b8
afd4b8
%prep
afd4b8
%setup -q -n package
afd4b8
afd4b8
rm -rf node_modules
afd4b8
afd4b8
%build
afd4b8
afd4b8
%install
afd4b8
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
afd4b8
afd4b8
cp -pr package.json *.js \
afd4b8
%{buildroot}%{nodejs_sitelib}/%{npm_name}
afd4b8
afd4b8
%{nodejs_symlink_deps}
afd4b8
afd4b8
%if 0%{?enable_tests}
afd4b8
afd4b8
%check
afd4b8
%{nodejs_symlink_deps} --check
afd4b8
afd4b8
%endif
afd4b8
afd4b8
%files
afd4b8
%{nodejs_sitelib}/lodash._basetostring
afd4b8
afd4b8
%doc README.md LICENSE
afd4b8
afd4b8
%changelog
afd4b8
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.1-3
afd4b8
- Use macro in -runtime dependency
afd4b8
afd4b8
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.1-2
afd4b8
- Rebuilt with updated metapackage
afd4b8
afd4b8
* Tue Dec 01 2015 Tomas Hrcka <thrcka@redhat.com> - 3.0.1-1
afd4b8
- Initial build