Blame SPECS/nodejs-es6-promise.spec

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