nodejs-extend/nodejs-extend.spec

52 lines
1.3 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-28 18:01:43 +08:00
%{?nodejs_find_provides_and_requires}
%global enable_tests 1
%global barename extend
Name: nodejs-extend
2023-11-02 14:19:40 +08:00
Version: 3.0.2
2020-08-28 18:01:43 +08:00
Release: 1
Summary: Port of jQuery.extend for node.js and the browser
License: MIT
2020-09-08 10:31:36 +08:00
URL: https://github.com/justmoon/node-extend
Source0: https://github.com/justmoon/node-extend/archive/v%{version}.tar.gz
2020-08-28 18:01:43 +08:00
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
2020-09-08 10:31:36 +08:00
%autosetup -n node-extend-%{version}
2020-08-28 18:01:43 +08:00
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
2023-11-02 14:19:40 +08:00
* Wed Nov 01 2023 wulei <wu_lei@hoperun.com> - 3.0.2-1
- Update to 3.0.2
2020-08-28 18:01:43 +08:00
* Thu Aug 20 2020 Anan Fu <fuanan3@huawei.com> - 3.0.0-1
- package init