Blame SPECS/nodejs-lodash._getnative.spec

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