Blame SPECS/nodejs-es6-symbol.spec

b4c049
%{?scl:%scl_package nodejs-es6-symbol}
b4c049
%{!?scl:%global pkg_name %{name}}
b4c049
b4c049
%{?nodejs_find_provides_and_requires}
b4c049
b4c049
%global packagename es6-symbol
b4c049
%global enable_tests 0
b4c049
# tests disabled due to missing npm(tad) test suite
b4c049
b4c049
Name:		%{?scl_prefix}nodejs-es6-symbol
b4c049
Version:	3.1.0
b4c049
Release:	2%{?dist}
b4c049
Summary:	ECMAScript 6 Symbol polyfill
b4c049
b4c049
License:	MIT
b4c049
URL:		https://github.com/medikoo/es6-symbol.git
b4c049
Source0:	https://registry.npmjs.org/%{packagename}/-/%{packagename}-%{version}.tgz
b4c049
b4c049
BuildArch:	noarch
b4c049
%if 0%{?fedora} >= 19
b4c049
ExclusiveArch: %{nodejs_arches} noarch
b4c049
%else
b4c049
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
b4c049
%endif
b4c049
b4c049
BuildRequires:	%{?scl_prefix}nodejs-devel
b4c049
%if 0%{?enable_tests}
b4c049
BuildRequires:	%{?scl_prefix}npm(tad)
b4c049
%endif
b4c049
b4c049
%description
b4c049
ECMAScript 6 Symbol polyfill
b4c049
b4c049
%prep
b4c049
%setup -q -n package
b4c049
b4c049
%nodejs_fixdep d
b4c049
# allow either the 0.1.x or 1.x.x series of npm(d)
b4c049
b4c049
%build
b4c049
# nothing to do!
b4c049
b4c049
%install
b4c049
mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename}
b4c049
cp -pr package.json *.js \
b4c049
	%{buildroot}%{nodejs_sitelib}/%{packagename}
b4c049
b4c049
%nodejs_symlink_deps
b4c049
b4c049
%check
b4c049
%nodejs_symlink_deps --check
b4c049
#%{__nodejs} -e 'require("./")'
b4c049
%if 0%{?enable_tests}
b4c049
%{__nodejs} %{nodejs_sitelib}/tad/bin/tad
b4c049
%else
b4c049
echo "Tests have been disabled..."
b4c049
%endif
b4c049
b4c049
%files
b4c049
%{!?_licensedir:%global license %doc}
b4c049
%doc *.md CHANGES
b4c049
%license LICENSE
b4c049
%{nodejs_sitelib}/%{packagename}
b4c049
b4c049
%changelog
b4c049
* Mon Jan 16 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.1.0-2
b4c049
- Rebuild for rhscl
b4c049
b4c049
* Thu Jul 14 2016 Jared Smith <jsmith@fedoraproject.org> - 3.1.0-1
b4c049
- Update to upstream 3.1.0 release
b4c049
b4c049
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
b4c049
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b4c049
b4c049
* Sun Dec 20 2015 Jared Smith <jsmith@fedoraproject.org> - 3.0.2-2
b4c049
- Allow newer version of npm(d)
b4c049
b4c049
* Fri Dec 18 2015 Jared Smith <jsmith@fedoraproject.org> - 3.0.2-1
b4c049
- Update to upstream 3.0.2 release
b4c049
- disable self-test until we get all the run-time dependencies into Rawhide
b4c049
b4c049
* Tue Nov 10 2015 Jared Smith <jsmith@fedoraproject.org> - 3.0.1-1
b4c049
- Initial packaging