nodejs-util/nodejs-util.spec
cherry530 2526fef122 Upgrade version to 0.11.1
Signed-off-by: cherry530 <707078654@qq.com>
2023-10-30 15:04:49 +08:00

63 lines
1.3 KiB
RPMSpec

%global enable_tests 1
%global srcname util
Name: nodejs-%{srcname}
Version: 0.11.1
Release: 1
Summary: Node.JS util module
License: MIT
URL: https://github.com/defunctzombie/node-util
Source0: https://github.com/browserify/node-util/archive/v%{version}/nodejs-util-v%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
%if 0%{?enable_tests}
BuildRequires: nodejs-inherits
%endif
%description
%{summary}.
%prep
%setup -q -n node-util-%{version}
rm -rf node_modules/
%nodejs_fixdep inherits '2.x'
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{srcname}
cp -pr package.json util.js support/ %{buildroot}%{nodejs_sitelib}/%{srcname}
%nodejs_symlink_deps
%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
%{__nodejs} test/node/*.js
%endif
%files
%doc README.md LICENSE
%{nodejs_sitelib}/%{srcname}
%changelog
* Mon Oct 30 2023 xu_ping <707078654@qq.com> - 0.11.1-1
- Upgrade version to 0.11.1
* Tue Sep 15 2020 leiju <leiju4@huawei.com> - 0.10.3-2
- Modify BuildRequires from nodejs-inherits1 to nodejs-inherits
* Wed Aug 12 2020 wangxiao <wangxiao65@huawei.com> - 0.10.3-1
- package init