Blame SPECS/nodejs-es6-promise.spec

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