package init
This commit is contained in:
parent
d83548a0b9
commit
91b4e7e5d9
46
nodejs-sntp.spec
Normal file
46
nodejs-sntp.spec
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
%{?nodejs_find_provides_and_requires}
|
||||||
|
%global enable_tests 0
|
||||||
|
Name: nodejs-sntp
|
||||||
|
Epoch: 1
|
||||||
|
Version: 2.0.1
|
||||||
|
Release: 1
|
||||||
|
Summary: SNTP v4 client (RFC4330) for Node.js
|
||||||
|
License: BSD
|
||||||
|
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
|
||||||
|
BuildRequires: npm(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
|
||||||
|
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}
|
||||||
|
%{nodejs_fixdep} hoek
|
||||||
|
chmod 0644 *.js* README.md LICENSE examples/* lib/*
|
||||||
|
|
||||||
|
%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
|
||||||
|
%__nodejs -e "require('./')"
|
||||||
|
%if 0%{?enable_tests}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{nodejs_sitelib}/sntp
|
||||||
|
%doc README.md examples
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Aug 15 2020 zhanghua <zhanghua40@huawei.com> - 2.0.1-1
|
||||||
|
- Package init
|
||||||
4
nodejs-sntp.yaml
Normal file
4
nodejs-sntp.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: hueniverse/sntp
|
||||||
|
tag_pattern: "^v"
|
||||||
|
seperator: "."
|
||||||
BIN
sntp-2.0.1.tar.gz
Normal file
BIN
sntp-2.0.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user