diff --git a/is-typedarray-1.0.0.tgz b/is-typedarray-1.0.0.tgz new file mode 100644 index 0000000..f0f71dd Binary files /dev/null and b/is-typedarray-1.0.0.tgz differ diff --git a/nodejs-is-typedarray.spec b/nodejs-is-typedarray.spec new file mode 100644 index 0000000..4bfa3bf --- /dev/null +++ b/nodejs-is-typedarray.spec @@ -0,0 +1,40 @@ +%{?nodejs_find_provides_and_requires} +%global srcname is-typedarray +Name: nodejs-%{srcname} +Version: 1.0.0 +Release: 1 +Summary: Detect whether or not an object is a Typed Array +License: MIT +URL: https://github.com/hughsk/%{srcname} +Source0: https://registry.npmjs.org/%{srcname}/-/%{srcname}-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging nodejs-tape +%description +%{summary}. + +%prep +%autosetup -n package +rm -rf node_modules + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname} +cp -pr package.json *.js \ + %{buildroot}%{nodejs_sitelib}/%{srcname} +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{__nodejs} test.js + +%files +%{!?_licensedir:%global license %doc} +%doc README.md +%license LICENSE.md +%{nodejs_sitelib}/%{srcname} + +%changelog +* Thu Aug 20 2020 wangxiao - 1.0.0-1 +- Package init diff --git a/nodejs-is-typedarray.yaml b/nodejs-is-typedarray.yaml new file mode 100644 index 0000000..5087d7d --- /dev/null +++ b/nodejs-is-typedarray.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/hughsk/is-typedarray +version_control: github +src_repo: hughsk/is-typedarray +tag_prefix: "^v" +seperator: "."