37 lines
880 B
RPMSpec
37 lines
880 B
RPMSpec
|
|
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 <wangxiao65@huawei.com> - 1.0.3-1
|
||
|
|
- Package init
|