diff --git a/lolex-1.3.2.tgz b/lolex-1.3.2.tgz new file mode 100644 index 0000000..d45cb0b Binary files /dev/null and b/lolex-1.3.2.tgz differ diff --git a/nodejs-lolex.spec b/nodejs-lolex.spec new file mode 100644 index 0000000..26eb03d --- /dev/null +++ b/nodejs-lolex.spec @@ -0,0 +1,47 @@ +%global enable_tests 0 +%global srcname lolex +Name: nodejs-%{srcname} +Version: 1.3.2 +Release: 1 +Summary: Fake JavaScript timers +License: BSD +URL: https://github.com/sinonjs/lolex +Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: npm(referee) npm(sinon) +%endif +%description +JavaScript implementation of the timer APIs; setTimeout, clearTimeout, +setImmediate, clearImmediate, setInterval, clearInterval, and +requestAnimationFrame, along with a clock instance that controls the flow of +time. Lolex also provides a Date implementation that gets its time from the +clock. + +%prep +%setup -q -n package + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json src/ \ + %{buildroot}%{nodejs_sitelib}/%{srcname} +%nodejs_symlink_deps +%if 0%{?enable_tests} + +%check +%nodejs_symlink_deps --check +npm run test-node +%endif + +%files +%doc Readme.md +%license LICENSE +%{nodejs_sitelib}/%{srcname} + +%changelog +* Thu Aug 20 2020 yaokai - 1.3.2-1 +- Package init diff --git a/nodejs-lolex.yaml b/nodejs-lolex.yaml new file mode 100644 index 0000000..cd17d9f --- /dev/null +++ b/nodejs-lolex.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: sinonjs/fake-timers +tag_pattern: "^v" +seperator: "."