nodejs-xtend/nodejs-xtend.spec

44 lines
1.1 KiB
RPMSpec
Raw Normal View History

2020-08-20 14:04:58 +08:00
%global module_name xtend
Name: nodejs-%{module_name}
2022-11-07 12:08:21 +00:00
Version: 4.0.2
2020-08-20 14:04:58 +08:00
Release: 1
Summary: Extend like a boss
License: MIT
URL: https://github.com/Raynos/xtend
2022-11-07 12:08:21 +00:00
Source0: https://registry.npmjs.org/xtend/-/xtend-%{version}.tgz
2020-08-20 14:04:58 +08:00
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging npm(tape)
%description
xtend is a basic utility library which allows you to extend an object by
appending all of the properties from each object in a list. When there
are identical properties, the right-most property takes precedence.
%prep
%setup -q -n package
rm -rf node_modules
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module_name}
cp -pr package.json *.js %{buildroot}%{nodejs_sitelib}/%{module_name}
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
node test.js
%files
%doc README.md
%license LICENSE
%{nodejs_sitelib}/%{module_name}
%changelog
2022-11-07 12:08:21 +00:00
* Mon Nov 7 2022 hkgy <kaguyahatu@outlook.com> - 4.0.2-1
- Upgrade to v4.0.2
2020-08-20 14:04:58 +08:00
* Wed Aug 12 2020 wangyue <wangyue92@huawei.com> - 4.0.1-1
- package init