Blame SPECS/nodejs-is-buffer.spec

6d6713
%{?scl:%scl_package nodejs-%{npm_name}}
6d6713
%{!?scl:%global pkg_name %{name}}
6d6713
%{?nodejs_find_provides_and_requires}
6d6713
6d6713
%global npm_name is-buffer
6d6713
6d6713
Summary:       Determine if an object is Buffer
6d6713
Name:          %{?scl_prefix}nodejs-%{npm_name}
6d6713
Version:       1.0.2
6d6713
Release:       2%{?dist}
6d6713
License:       MIT
6d6713
URL:           https://github.com/feross/is-buffer
6d6713
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
6d6713
BuildRequires: %{?scl_prefix}runtime
6d6713
ExclusiveArch: %{nodejs_arches} noarch
6d6713
BuildArch:     noarch
6d6713
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
6d6713
6d6713
%description
6d6713
This module lets you check if an object is a Buffer without 
6d6713
using Buffer.isBuffer (which includes the whole buffer module 
6d6713
in browserify).
6d6713
6d6713
It's future-proof and works in node too!
6d6713
6d6713
%prep
6d6713
%setup -q -n package
6d6713
6d6713
%build
6d6713
6d6713
%install
6d6713
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
6d6713
cp -pr index.js package.json test %{buildroot}%{nodejs_sitelib}/%{npm_name}
6d6713
6d6713
%files
6d6713
%doc LICENSE README.md
6d6713
%{nodejs_sitelib}/%{npm_name}
6d6713
6d6713
%changelog
6d6713
* Thu Jan 14 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.2-2
6d6713
- Enable scl macros
6d6713
6d6713
* Thu Sep 10 2015 Troy Dawson <tdawson@redhat.com> - 1.0.2-1
6d6713
- Initial package