Blame SPECS/nodejs-async-each.spec

bc3ee4
%{?scl:%scl_package nodejs-%{npm_name}}
bc3ee4
%{!?scl:%global pkg_name %{name}}
bc3ee4
bc3ee4
%{?nodejs_find_provides_and_requires}
bc3ee4
%global npm_name async-each
bc3ee4
bc3ee4
# Tests disabled because it will not work yet
bc3ee4
%global enable_tests 0
bc3ee4
bc3ee4
Summary:       Ultra-simple async parallel forEach function for JavaScript
bc3ee4
Name:          %{?scl_prefix}nodejs-%{npm_name}
bc3ee4
Version:       1.0.0
bc3ee4
Release:       6%{?dist}
bc3ee4
License:       MIT
bc3ee4
URL:           https://github.com/paulmillr/async-each
bc3ee4
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
bc3ee4
BuildRequires: %{?scl_prefix}nodejs-devel
bc3ee4
ExclusiveArch: %{nodejs_arches} noarch
bc3ee4
BuildArch:     noarch
bc3ee4
bc3ee4
%if 0%{?enable_tests}
bc3ee4
BuildRequires: %{?scl_prefix}nodejs(async)
bc3ee4
%endif
bc3ee4
bc3ee4
%description
bc3ee4
Ultra-simple, 35-lines-of-code async parallel forEach function for JavaScript.
bc3ee4
bc3ee4
We don't need junky 30K async libs. Really.
bc3ee4
bc3ee4
%prep
bc3ee4
%setup -q -n package
bc3ee4
bc3ee4
%build
bc3ee4
bc3ee4
%install
bc3ee4
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
bc3ee4
cp -pr index.js package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
bc3ee4
bc3ee4
%nodejs_symlink_deps
bc3ee4
bc3ee4
%if 0%{?enable_tests}
bc3ee4
bc3ee4
%check
bc3ee4
%nodejs_symlink_deps --check
bc3ee4
node test.js
bc3ee4
%endif
bc3ee4
bc3ee4
%files
bc3ee4
%doc CHANGELOG.md README.md
bc3ee4
%{nodejs_sitelib}/%{npm_name}
bc3ee4
bc3ee4
%changelog
bc3ee4
* Mon Jul 03 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-6
bc3ee4
- rh-nodejs8 rebuild
bc3ee4
bc3ee4
* Mon Jan 16 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-5
bc3ee4
- Clean up
bc3ee4
bc3ee4
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-4
bc3ee4
- Use macro in -runtime dependency
bc3ee4
bc3ee4
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.0-3
bc3ee4
- Rebuilt with updated metapackage
bc3ee4
bc3ee4
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 1.0.0-2
bc3ee4
- Enable scl macros
bc3ee4
bc3ee4
* Mon Dec 14 2015 Troy Dawson <tdawson@redhat.com> - 1.0.0-1
bc3ee4
- Initial package