diff --git a/nodejs-should-type.spec b/nodejs-should-type.spec new file mode 100644 index 0000000..9c85a18 --- /dev/null +++ b/nodejs-should-type.spec @@ -0,0 +1,33 @@ +Name: nodejs-should-type +Version: 0.2.0 +Release: 1 +Summary: Simple module to get instance type +License: MIT +URL: https://github.com/shouldjs/type +Source0: https://registry.npmjs.org/should-type/-/should-type-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +BuildRequires: nodejs-packaging +%description +Simple module to get instance type. Like a bit more advanced version of typeof. + +%prep +%setup -q -n package +sed -i 's/\r$//' README.md +rm -rf node_modules + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/should-type +cp -pr package.json index.js types.js %{buildroot}%{nodejs_sitelib}/should-type +%nodejs_symlink_deps + +%files +%doc README.md +%license LICENSE +%{nodejs_sitelib}/should-type + +%changelog +* Wed Aug 12 2020 wangyue - 0.2.0-1 +- package init diff --git a/nodejs-should-type.yaml b/nodejs-should-type.yaml new file mode 100644 index 0000000..14db72e --- /dev/null +++ b/nodejs-should-type.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/shouldjs/type +version_control: github +src_repo: shouldjs/type +tag_prefix: "^" +seperator: "." diff --git a/should-type-0.2.0.tgz b/should-type-0.2.0.tgz new file mode 100644 index 0000000..49e76a5 Binary files /dev/null and b/should-type-0.2.0.tgz differ