diff --git a/nodejs-type-detect.spec b/nodejs-type-detect.spec new file mode 100644 index 0000000..e7f241e --- /dev/null +++ b/nodejs-type-detect.spec @@ -0,0 +1,38 @@ +Name: nodejs-type-detect +Version: 2.0.2 +Release: 1 +Summary: Improved typeof detection for Node.js and the browser +License: MIT +URL: https://github.com/chaijs/type-detect +Source0: https://github.com/chaijs/type-detect/archive/v%{version}/type-detect-%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +BuildRequires: npm(mocha) npm(simple-assert) +%description +Improved typeof detection for Node.js and the browser. + +%prep +%autosetup -n type-detect-%{version} +%nodejs_setversion %{version} +rm -rf node_modules + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/type-detect +cp -pr package.json index.js %{buildroot}%{nodejs_sitelib}/type-detect +%nodejs_symlink_deps + +%check +%nodejs_symlink_deps --check +%{nodejs_sitelib}/mocha/bin/mocha + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/type-detect + +%changelog +* Tue Aug 11 2020 zhanghua - 2.0.2-1 +- package init diff --git a/nodejs-type-detect.yaml b/nodejs-type-detect.yaml new file mode 100644 index 0000000..ea2d006 --- /dev/null +++ b/nodejs-type-detect.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: chaijs/type-detect +tag_pattern: "^v" +seperator: "." diff --git a/type-detect-2.0.2.tar.gz b/type-detect-2.0.2.tar.gz new file mode 100644 index 0000000..a16efb6 Binary files /dev/null and b/type-detect-2.0.2.tar.gz differ