Ai
6 Star 0 Fork 2

src-openEuler/nodejs-extend
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nodejs-extend.spec 1.31 KB
一键复制 编辑 原始数据 按行查看 历史
fwx913451 提交于 2020-09-08 10:31 +08:00 . fuanan add package
%{?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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/nodejs-extend.git
git@gitee.com:src-openeuler/nodejs-extend.git
src-openeuler
nodejs-extend
nodejs-extend
openEuler-23.09

搜索帮助