代码拉取完成,页面将自动刷新
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
%global barename extend
Name: nodejs-extend
Version: 3.0.0
Release: 1
Summary: Port of jQuery.extend for node.js and the browser
License: MIT
URL: https://github.com/justmoon/node-extend
Source0: https://github.com/justmoon/node-extend/archive/v%{version}.tar.gz
Source1: test-index.js
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
BuildRequires: nodejs-packaging >= 6
%if 0%{?enable_tests}
BuildRequires: npm(tape)
%endif
%description
nodejs-extend is a port of the classic extend() method from jQuery. It behaves
as you expect. It is simple, tried and true.
%prep
%autosetup -n node-extend-%{version}
install -D -p -m0644 %{SOURCE1} test/index.js
rm -rf node_modules/
%nodejs_fixdep --caret
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/extend
cp -pr package.json index.js \
%{buildroot}%{nodejs_sitelib}/extend
%nodejs_symlink_deps
%check
%if 0%{?enable_tests}
%nodejs_symlink_deps --check
node test/index.js
%endif
%files
%doc README.md
%license LICENSE
%{nodejs_sitelib}/extend/
%changelog
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 3.0.0-1
- package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。