Blame SPECS/nodejs-arr-flatten.spec

8280fc
%{?scl:%scl_package nodejs-%{npm_name}}
8280fc
%{!?scl:%global pkg_name %{name}}
8280fc
8280fc
%{?nodejs_find_provides_and_requires}
8280fc
%global npm_name arr-flatten
8280fc
8280fc
Summary:       Recursively flatten an array or arrays
8280fc
Name:          %{?scl_prefix}nodejs-%{npm_name}
8280fc
Version:       1.0.1
8280fc
Release:       2%{?dist}
8280fc
License:       MIT
8280fc
URL:           https://github.com/jonschlinkert/arr-flatten
8280fc
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
8280fc
BuildRequires: nodejs010-runtime
8280fc
ExclusiveArch: %{nodejs_arches} noarch
8280fc
BuildArch:     noarch
8280fc
Provides:      %{?scl_prefix}nodejs-%{npm_name} = %{version}
8280fc
8280fc
%description
8280fc
Recursively flatten an array or arrays. This is the fastest 
8280fc
implementation of array flatten.
8280fc
8280fc
Why another flatten utility? I wanted the fastest implementation 
8280fc
I could find, with implementation choices that should work 
8280fc
for 95% of use cases, but no cruft to cover the other 5%.
8280fc
8280fc
%prep
8280fc
%setup -q -n package
8280fc
8280fc
%build
8280fc
8280fc
%install
8280fc
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
8280fc
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
8280fc
8280fc
%nodejs_symlink_deps
8280fc
8280fc
%files
8280fc
%{!?_licensedir:%global license %doc}
8280fc
%doc README.md
8280fc
%license LICENSE
8280fc
%{nodejs_sitelib}/%{npm_name}
8280fc
8280fc
%changelog
8280fc
* Tue Jan 12 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.1-2
8280fc
- Enable scl macros, fix license macro for el6
8280fc
8280fc
* Wed Dec 16 2015 Troy Dawson <tdawson@redhat.com> - 1.0.1-1
8280fc
- Initial package