Blame SPECS/nodejs-es5-ext.spec

a7a0b3
%{?scl:%scl_package nodejs-es5-ext}
a7a0b3
%{!?scl:%global pkg_name %{name}}
a7a0b3
a7a0b3
%{?nodejs_find_provides_and_requires}
a7a0b3
a7a0b3
%global packagename es5-ext
a7a0b3
%global enable_tests 0
a7a0b3
# tests disabled until we have the npm(tad) test suite
a7a0b3
a7a0b3
Name:		%{?scl_prefix}nodejs-es5-ext
a7a0b3
Version:	0.10.12
ca81f9
Release:	3%{?dist}
a7a0b3
Summary:	ECMAScript 5 extensions and ES6 shims
a7a0b3
a7a0b3
License:	MIT
a7a0b3
URL:		https://github.com/medikoo/es5-ext.git
a7a0b3
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
a7a0b3
a7a0b3
BuildArch:	noarch
a7a0b3
%if 0%{?fedora} >= 19
a7a0b3
ExclusiveArch: %{nodejs_arches} noarch
a7a0b3
%else
ca81f9
ExclusiveArch: %{nodejs_arches} noarch
a7a0b3
%endif
a7a0b3
a7a0b3
BuildRequires:	%{?scl_prefix}nodejs-devel
a7a0b3
%if 0%{?enable_tests}
a7a0b3
BuildRequires:	%{?scl_prefix}npm(tad)
a7a0b3
%endif
a7a0b3
a7a0b3
Requires:	%{?scl_prefix}nodejs
a7a0b3
a7a0b3
%description
a7a0b3
ECMAScript 5 extensions and ES6 shims
a7a0b3
a7a0b3
%prep
a7a0b3
%setup -q -n package
a7a0b3
a7a0b3
%build
a7a0b3
# nothing to do!
a7a0b3
a7a0b3
%install
a7a0b3
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
a7a0b3
cp -pr package.json *.js array/ boolean/ date/ error/ function/ \
a7a0b3
	iterable/ math/ number/ object reg-exp string   \
a7a0b3
	%{buildroot}%{nodejs_sitelib}/%{packagename}
a7a0b3
a7a0b3
%nodejs_symlink_deps
a7a0b3
a7a0b3
%check
a7a0b3
%nodejs_symlink_deps --check
a7a0b3
%if 0%{?enable_tests}
a7a0b3
%{__nodejs} -e 'require("./")'
a7a0b3
%{__nodejs} %{nodejs_sitelib}/tad/bin/tad
a7a0b3
%else
a7a0b3
echo "Tests are disabled..."
a7a0b3
%endif
a7a0b3
a7a0b3
%files
a7a0b3
%{!?_licensedir:%global license %doc}
a7a0b3
%doc *.md
a7a0b3
%license LICENSE
a7a0b3
%{nodejs_sitelib}/%{packagename}
a7a0b3
a7a0b3
%changelog
ca81f9
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.10.12-3
ca81f9
- Resolves: RHBZ#1543198, rebuild for multiarch
ca81f9
a7a0b3
* Mon Jan 16 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.10.12-2
a7a0b3
- Rebuild for rhscl
a7a0b3
a7a0b3
* Thu Jul 14 2016 Jared Smith <jsmith@fedoraproject.org> - 0.10.12-1
a7a0b3
- Update to upstream 0.10.12 version
a7a0b3
a7a0b3
* Wed Feb 17 2016 Jared Smith <jsmith@fedoraproject.org> - 0.10.11-1
a7a0b3
- Update to upstream 0.10.11 release
a7a0b3
a7a0b3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.10-2
a7a0b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a7a0b3
a7a0b3
* Fri Dec 18 2015 Jared Smith <jsmith@fedoraproject.org> - 0.10.10-1
a7a0b3
- Update to upstream 0.10.10 release
a7a0b3
a7a0b3
* Tue Nov 10 2015 Jared Smith <jsmith@fedoraproject.org> - 0.10.8-1
a7a0b3
- Initial packaging