%global npmname int64-buffer Name: nodejs-%{npmname} Version: 0.1.9 Release: 1%{?dist} Summary: 64bit Long Integer on Buffer/Array/ArrayBuffer in Pure JavaScript License: MIT URL: https://www.npmjs.com/package/int64-buffer Source0: https://registry.npmjs.org/int64-buffer/-/%{npmname}-%{version}.tgz BuildRequires: nodejs-packaging BuildRequires: mocha BuildArch: noarch ExclusiveArch: %{nodejs_arches} noarch %description JavaScript's number based on IEEE-754 could only handle 53 bits precision. This module provides a couple of classes: Int64BE and Uint64BE which could hold 64 bits long integer and loose no bit. %prep %autosetup -n package %build # Nothing to build, this is a noarch package %install mkdir -p %{buildroot}%{nodejs_sitelib}/%{npmname} cp -a int64-buffer.d.ts int64-buffer.js dist/ package.json %{buildroot}%{nodejs_sitelib}/%{npmname}/ %nodejs_symlink_deps %check %nodejs_symlink_deps --check %{__nodejs} -e 'require("./")' mocha -R spec *.json ./test/*.js %files %{nodejs_sitelib}/%{npmname} %license LICENSE %doc README.md %changelog * Fri Sep 9 2016 Ben Rosser 0.1.9-1 - Update to latest version. * Wed Jun 29 2016 Ben Rosser 0.1.7-1 - Initial package.