nodejs-should-type/nodejs-should-type.spec
2020-08-20 11:47:51 +08:00

34 lines
919 B
RPMSpec

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 <wangyue92@huawei.com> - 0.2.0-1
- package init