package init
This commit is contained in:
parent
f9d7c1665e
commit
372d4d151e
38
nodejs-type-detect.spec
Normal file
38
nodejs-type-detect.spec
Normal file
@ -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 <zhanghua40@huawei.com> - 2.0.2-1
|
||||
- package init
|
||||
4
nodejs-type-detect.yaml
Normal file
4
nodejs-type-detect.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: chaijs/type-detect
|
||||
tag_pattern: "^v"
|
||||
seperator: "."
|
||||
BIN
type-detect-2.0.2.tar.gz
Normal file
BIN
type-detect-2.0.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user