Blame SPECS/nodejs-arr-flatten.spec

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