diff --git a/nodejs-sntp.spec b/nodejs-sntp.spec index 6fbdc42..3b67501 100644 --- a/nodejs-sntp.spec +++ b/nodejs-sntp.spec @@ -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 - 1:4.0.0-1 +- Upgrade to version 4.0.0 + * Mon May 9 2022 liyanan - 2.0.1-2 - License compliance rectification diff --git a/sntp-2.0.1.tar.gz b/sntp-2.0.1.tar.gz deleted file mode 100644 index 39bf37f..0000000 Binary files a/sntp-2.0.1.tar.gz and /dev/null differ diff --git a/sntp-4.0.0.tar.gz b/sntp-4.0.0.tar.gz new file mode 100644 index 0000000..0cf294d Binary files /dev/null and b/sntp-4.0.0.tar.gz differ