Blame nodejs-lolex.spec

ba2ef29
# Test deps: npm(referee) and npm(sinon) not yet in Fedora
ba2ef29
%global enable_tests 0
ba2ef29
%global srcname lolex
ba2ef29
ba2ef29
Name:           nodejs-%{srcname}
f4504e7
Version:        1.3.2
f4504e7
Release:        1%{?dist}
ba2ef29
Summary:        Fake JavaScript timers
ba2ef29
License:        BSD
ba2ef29
URL:            https://github.com/sinonjs/lolex
ba2ef29
Source0:        https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz
ba2ef29
ba2ef29
BuildArch:      noarch
ba2ef29
ExclusiveArch:  %{nodejs_arches} noarch
ba2ef29
ba2ef29
BuildRequires:  nodejs-packaging
ba2ef29
ba2ef29
%if 0%{?enable_tests}
ba2ef29
BuildRequires:  npm(referee)
ba2ef29
BuildRequires:  npm(sinon)
ba2ef29
%endif
ba2ef29
ba2ef29
ba2ef29
%description
ba2ef29
JavaScript implementation of the timer APIs; setTimeout, clearTimeout, 
ba2ef29
setImmediate, clearImmediate, setInterval, clearInterval, and 
ba2ef29
requestAnimationFrame, along with a clock instance that controls the flow of 
ba2ef29
time. Lolex also provides a Date implementation that gets its time from the 
ba2ef29
clock.
ba2ef29
ba2ef29
ba2ef29
%prep
ba2ef29
%setup -q -n package
ba2ef29
ba2ef29
ba2ef29
%build
ba2ef29
#nothing to do
ba2ef29
ba2ef29
ba2ef29
%install
ba2ef29
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
ba2ef29
cp -pr package.json src/ \
ba2ef29
    %{buildroot}%{nodejs_sitelib}/%{srcname}
ba2ef29
ba2ef29
%nodejs_symlink_deps
ba2ef29
ba2ef29
ba2ef29
%if 0%{?enable_tests}
ba2ef29
%check
ba2ef29
%nodejs_symlink_deps --check
ba2ef29
npm run test-node
ba2ef29
%endif
ba2ef29
ba2ef29
ba2ef29
%files
ba2ef29
%doc Readme.md
ba2ef29
%license LICENSE
ba2ef29
%{nodejs_sitelib}/%{srcname}
ba2ef29
ba2ef29
ba2ef29
%changelog
f4504e7
* Tue Oct 13 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.3.2-1
f4504e7
- update to 1.3.2
f4504e7
ba2ef29
* Tue Sep 01 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.3.1-2
ba2ef29
- remove toplevel lolex.js
ba2ef29
- remove tests from rpm
ba2ef29
- update test for only testing Node.js part
ba2ef29
ba2ef29
* Sat Aug 29 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.3.1-1
ba2ef29
- update to latest upstream
ba2ef29
ba2ef29
* Fri Jan 02 2015 Piotr Popieluch <piotr1212@gmail.com> - 1.2.0-1
ba2ef29
- update to latest upstream
ba2ef29
ba2ef29
* Tue Nov 18 2014 Piotr Popieluch <piotr1212@gmail.com> - 1.1.0-1
ba2ef29
- Initial package