Blame SPECS/nodejs-is-finite.spec

6a6362
%{?scl:%scl_package nodejs-%{npm_name}}
6a6362
%{!?scl:%global pkg_name %{name}}
6a6362
%{?nodejs_find_provides_and_requires}
6a6362
6a6362
%global npm_name is-finite
6a6362
6a6362
Summary:       ES6 Number.isFinite ponyfill
6a6362
Name:          %{?scl_prefix}nodejs-%{npm_name}
6a6362
Version:       1.0.1
6a6362
Release:       4%{?dist}
6a6362
License:       MIT
6a6362
URL:           https://github.com/sindresorhus/is-finite
6a6362
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
6a6362
BuildRequires: nodejs010-runtime
6a6362
ExclusiveArch: %{nodejs_arches} noarch
6a6362
BuildArch:     noarch
6a6362
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
6a6362
6a6362
%description
6a6362
ES6 Number.isFinite() ponyfill
6a6362
6a6362
Ponyfill: A polyfill that doesn't overwrite the native method
6a6362
6a6362
%prep
6a6362
%setup -q -n package
6a6362
6a6362
%build
6a6362
6a6362
%install
6a6362
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
6a6362
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
6a6362
6a6362
%files
6a6362
%doc license readme.md
6a6362
%{nodejs_sitelib}/%{npm_name}
6a6362
6a6362
%changelog
6a6362
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-4
6a6362
- Enable find provides and requires macro
6a6362
6a6362
* Thu Jan 07 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-3
6a6362
- Enable scl macros
6a6362
6a6362
* Thu Sep 10 2015 Troy Dawson <tdawson@redhat.com>
6a6362
- spec change: npmname -> npm_name
6a6362
6a6362
* Thu Sep 10 2015 Troy Dawson <tdawson@redhat.com> - 1.0.1-1
6a6362
- Initial package