!4 Package upgrade

From: @starlet-dx 
Reviewed-by: @gitee-cmd 
Signed-off-by: @gitee-cmd
This commit is contained in:
openeuler-ci-bot 2022-06-30 09:26:19 +00:00 committed by Gitee
commit c1de2e0c51
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 14 additions and 8 deletions

View File

@ -2,8 +2,8 @@
%global enable_tests 0
Name: nodejs-sntp
Epoch: 1
Version: 2.0.1
Release: 2
Version: 4.0.0
Release: 1
Summary: SNTP v4 client (RFC4330) for Node.js
License: BSD-3-Clause
URL: https://github.com/hueniverse/sntp
@ -11,7 +11,8 @@ Source0: https://github.com/hueniverse/sntp/archive/v%{version}/sntp
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(hoek)
BuildRequires: npm(@hapi/hoek)
Requires: npm(@hapi/hoek)
%description
An SNTP v4 client (RFC4330) for Node.js. Simply connects to the NTP or SNTP
server requested and returns the server time along with the round-trip duration
@ -20,8 +21,11 @@ time offset to the local time.
%prep
%autosetup -n sntp-%{version}
%{nodejs_fixdep} hoek
chmod 0644 *.js* README.md LICENSE examples/* lib/*
chmod 0644 *.js* README.md lib/*
%nodejs_fixdep -r @hapi/boom
%nodejs_fixdep -r @hapi/bounce
%nodejs_fixdep -r @hapi/hoek
%nodejs_fixdep -r @hapi/teamwork
%build
@ -32,16 +36,18 @@ cp -pr lib package.json %{buildroot}%{nodejs_sitelib}/sntp
%check
%nodejs_symlink_deps --check
%__nodejs -e "require('./')"
%if 0%{?enable_tests}
%endif
%files
%{nodejs_sitelib}/sntp
%doc README.md examples
%license LICENSE
%doc README.md
%license LICENSE.md
%changelog
* Thu Jun 23 2022 SimpleUpdate Robot <tc@openeuler.org> - 1:4.0.0-1
- Upgrade to version 4.0.0
* Mon May 9 2022 liyanan <liyanan32@h-partners.com> - 2.0.1-2
- License compliance rectification

Binary file not shown.

BIN
sntp-4.0.0.tar.gz Normal file

Binary file not shown.