Blame SPECS/nodejs-es6-promise.spec

a6a1cc
%{?scl:%scl_package nodejs-%{npm_name}}
a6a1cc
%{!?scl:%global pkg_name %{name}}
a6a1cc
a6a1cc
%{?nodejs_find_provides_and_requires}
a6a1cc
a6a1cc
%global npm_name es6-promise
a6a1cc
# Tests disabled due to dependencies not in Fedora yet
a6a1cc
# Tests also are not working even with dependencies
a6a1cc
%global enable_tests 0
a6a1cc
a6a1cc
a6a1cc
Summary:       Lightweight library that provides tools for organizing asynchronous code
a6a1cc
Name:          %{?scl_prefix}nodejs-%{npm_name}
a6a1cc
Version:       3.0.2
a6a1cc
Release:       5%{?dist}
a6a1cc
License:       MIT
a6a1cc
URL:           https://github.com/jakearchibald/ES6-Promises
a6a1cc
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
a6a1cc
# The test files are not included in the npm tarball.
a6a1cc
# Source1 is generated by running Source10, which pulls from the upstream
a6a1cc
# version control repository.
a6a1cc
Source1:	   tests-%{version}.tar.bz2
a6a1cc
Source10:	   dl-tests.%{npm_name}.sh
a6a1cc
BuildRequires: %{?scl_prefix}runtime
a6a1cc
%if 0%{?enable_tests}
a6a1cc
BuildRequires: %{?scl_prefix}nodejs(ember)
a6a1cc
BuildRequires: %{?scl_prefix}nodejs(ember-cli)
a6a1cc
%endif
a6a1cc
a6a1cc
BuildArch:     noarch
a6a1cc
ExclusiveArch: %{nodejs_arches} noarch
a6a1cc
a6a1cc
%description
a6a1cc
A lightweight library that provides tools for organizing 
a6a1cc
asynchronous code
a6a1cc
a6a1cc
This is a polyfill of the ES6 Promise. The implementation 
a6a1cc
is a subset of rsvp.js.
a6a1cc
a6a1cc
%prep
a6a1cc
%setup -q -n package
a6a1cc
# setup the tests
a6a1cc
%setup -q -T -D -a 1 -n package
a6a1cc
a6a1cc
%build
a6a1cc
#nothing to do
a6a1cc
a6a1cc
%install
a6a1cc
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
a6a1cc
cp -pr dist lib package.json %{buildroot}%{nodejs_sitelib}/%{npm_name}
a6a1cc
a6a1cc
%nodejs_symlink_deps
a6a1cc
a6a1cc
%if 0%{?enable_tests}
a6a1cc
a6a1cc
%check
a6a1cc
%nodejs_symlink_deps --check
a6a1cc
ember test
a6a1cc
%endif
a6a1cc
a6a1cc
%files
a6a1cc
%{!?_licensedir:%global license %doc}
a6a1cc
%doc CHANGELOG.md README.md
a6a1cc
%license LICENSE
a6a1cc
%{nodejs_sitelib}/%{npm_name}
a6a1cc
a6a1cc
%changelog
a6a1cc
* Tue Feb 16 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.2-5
a6a1cc
- Use macro in -runtime dependency
a6a1cc
a6a1cc
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 3.0.2-4
a6a1cc
- Rebuilt with updated metapackage
a6a1cc
a6a1cc
* Wed Jan 06 2016 Tomas Hrcka <thrcka@redhat.com> - 3.0.2-3
a6a1cc
- Enable scl macros
a6a1cc
a6a1cc
* Tue Oct 20 2015 Troy Dawson <tdawson@redhat.com> - 3.0.2-2
a6a1cc
- Add tests, fixup spec file
a6a1cc
a6a1cc
* Mon Sep 21 2015 Troy Dawson <tdawson@redhat.com> - 3.0.2-1
a6a1cc
- Initial build