|
|
90b741 |
%{?scl:%scl_package nodejs-es6-iterator}
|
|
|
90b741 |
%{!?scl:%global pkg_name %{name}}
|
|
|
90b741 |
|
|
|
90b741 |
%{?nodejs_find_provides_and_requires}
|
|
|
90b741 |
|
|
|
90b741 |
%global packagename es6-iterator
|
|
|
90b741 |
%global enable_tests 0
|
|
|
90b741 |
# tests disabled due to missing npm(tad) test suite
|
|
|
90b741 |
|
|
|
90b741 |
Name: %{?scl_prefix}nodejs-es6-iterator
|
|
|
90b741 |
Version: 2.0.0
|
|
|
f2bbc3 |
Release: 5%{?dist}
|
|
|
90b741 |
Summary: Iterator abstraction based on ES6 specification
|
|
|
90b741 |
|
|
|
90b741 |
License: MIT
|
|
|
90b741 |
URL: https://github.com/medikoo/es6-iterator.git
|
|
|
90b741 |
Source0: https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
|
|
|
90b741 |
|
|
|
90b741 |
BuildArch: noarch
|
|
|
90b741 |
%if 0%{?fedora} >= 19
|
|
|
90b741 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
90b741 |
%else
|
|
|
f2bbc3 |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
90b741 |
%endif
|
|
|
90b741 |
|
|
|
90b741 |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
90b741 |
%if 0%{?enable_tests}
|
|
|
90b741 |
BuildRequires: %{?scl_prefix}npm(tad)
|
|
|
90b741 |
%endif
|
|
|
90b741 |
|
|
|
90b741 |
Requires: %{?scl_prefix}nodejs
|
|
|
90b741 |
|
|
|
90b741 |
%description
|
|
|
90b741 |
Iterator abstraction based on ES6 specification
|
|
|
90b741 |
|
|
|
90b741 |
%prep
|
|
|
90b741 |
%setup -q -n package
|
|
|
90b741 |
|
|
|
90b741 |
%nodejs_fixdep d
|
|
|
90b741 |
# allow either the 0.1.x or 1.x.x series of npm(d)
|
|
|
90b741 |
|
|
|
90b741 |
%build
|
|
|
90b741 |
# nothing to do!
|
|
|
90b741 |
|
|
|
90b741 |
%install
|
|
|
90b741 |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
|
90b741 |
cp -pr package.json *.js \#/ \
|
|
|
90b741 |
%{buildroot}%{nodejs_sitelib}/%{packagename}
|
|
|
90b741 |
|
|
|
90b741 |
%nodejs_symlink_deps
|
|
|
90b741 |
|
|
|
90b741 |
%check
|
|
|
90b741 |
%nodejs_symlink_deps --check
|
|
|
90b741 |
%if 0%{?enable_tests}
|
|
|
90b741 |
%{__nodejs} -e 'require("./")'
|
|
|
90b741 |
%{__nodejs} %{nodejs_sitelib}/tad/bin/tad
|
|
|
90b741 |
%else
|
|
|
90b741 |
echo "Tests are disabled..."
|
|
|
90b741 |
%endif
|
|
|
90b741 |
|
|
|
90b741 |
%files
|
|
|
90b741 |
%{!?_licensedir:%global license %doc}
|
|
|
90b741 |
%doc *.md CHANGES
|
|
|
90b741 |
%license LICENSE
|
|
|
90b741 |
%{nodejs_sitelib}/%{packagename}
|
|
|
90b741 |
|
|
|
90b741 |
%changelog
|
|
|
f2bbc3 |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-5
|
|
|
f2bbc3 |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
f2bbc3 |
|
|
|
90b741 |
* Mon Jan 16 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-4
|
|
|
90b741 |
- Rebuild for rhscl
|
|
|
90b741 |
|
|
|
90b741 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
|
|
|
90b741 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
90b741 |
|
|
|
90b741 |
* Tue Dec 22 2015 Jared Smith <jsmith@fedoraproject.org> - 2.0.0-2
|
|
|
90b741 |
- rebuilt to allow newer version of npm(d)
|
|
|
90b741 |
|
|
|
90b741 |
* Tue Nov 10 2015 Jared Smith <jsmith@fedoraproject.org> - 2.0.0-1
|
|
|
90b741 |
- Initial packaging
|