diff --git a/has-1.0.3.tgz b/has-1.0.3.tgz new file mode 100644 index 0000000..90c3329 Binary files /dev/null and b/has-1.0.3.tgz differ diff --git a/nodejs-has.spec b/nodejs-has.spec new file mode 100644 index 0000000..c1fe037 --- /dev/null +++ b/nodejs-has.spec @@ -0,0 +1,36 @@ +Name: nodejs-has +Version: 1.0.3 +Release: 1 +Summary: Object.prototype.hasOwnProperty.call shortcut +License: MIT +URL: https://github.com/tarruda/has +Source0: https://registry.npmjs.org/has/-/has-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging npm(tape) npm(function-bind) +%description +%{summary}. + +%prep +%setup -q -n package +rm -rf node_modules + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/has +cp -pr package.json src %{buildroot}%{nodejs_sitelib}/has +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{nodejs_sitelib}/tape/bin/tape test + +%files +%doc README.md +%license LICENSE-MIT +%{nodejs_sitelib}/has + +%changelog +* Thu Aug 20 2020 wangxiao - 1.0.3-1 +- Package init diff --git a/nodejs-has.yaml b/nodejs-has.yaml new file mode 100644 index 0000000..fc23441 --- /dev/null +++ b/nodejs-has.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/tarruda/has +version_control: github +src_repo: tarruda/has +tag_prefix: "^v" +seperator: "."