nodejs-sntp/nodejs-sntp.spec

56 lines
1.6 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-20 10:14:05 +08:00
%{?nodejs_find_provides_and_requires}
%global enable_tests 0
Name: nodejs-sntp
Epoch: 1
2022-06-30 16:07:57 +08:00
Version: 4.0.0
Release: 1
2020-08-20 10:14:05 +08:00
Summary: SNTP v4 client (RFC4330) for Node.js
2022-05-09 19:55:15 +08:00
License: BSD-3-Clause
2020-08-20 10:14:05 +08:00
URL: https://github.com/hueniverse/sntp
Source0: https://github.com/hueniverse/sntp/archive/v%{version}/sntp-%{version}.tar.gz
BuildArch: noarch
ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
2022-06-30 16:07:57 +08:00
BuildRequires: npm(@hapi/hoek)
Requires: npm(@hapi/hoek)
2020-08-20 10:14:05 +08:00
%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
and clock offset. To adjust the local time to the NTP time, add the returned
time offset to the local time.
%prep
%autosetup -n sntp-%{version}
2022-06-30 16:07:57 +08:00
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
2020-08-20 10:14:05 +08:00
%build
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/sntp
cp -pr lib package.json %{buildroot}%{nodejs_sitelib}/sntp
%nodejs_symlink_deps
%check
%nodejs_symlink_deps --check
%if 0%{?enable_tests}
%endif
%files
%{nodejs_sitelib}/sntp
2022-06-30 16:07:57 +08:00
%doc README.md
%license LICENSE.md
2020-08-20 10:14:05 +08:00
%changelog
2022-06-30 16:07:57 +08:00
* Thu Jun 23 2022 SimpleUpdate Robot <tc@openeuler.org> - 1:4.0.0-1
- Upgrade to version 4.0.0
2022-05-09 19:55:15 +08:00
* Mon May 9 2022 liyanan <liyanan32@h-partners.com> - 2.0.1-2
- License compliance rectification
2020-08-20 10:14:05 +08:00
* Sat Aug 15 2020 zhanghua <zhanghua40@huawei.com> - 2.0.1-1
- Package init