|
|
ac92fb |
%{?scl:%scl_package nodejs-sntp}
|
|
|
ac92fb |
%{!?scl:%global pkg_name %{name}}
|
|
|
ac92fb |
%{?nodejs_find_provides_and_requires}
|
|
|
ac92fb |
|
|
|
ac92fb |
Name: %{?scl_prefix}nodejs-sntp
|
|
|
ac92fb |
Version: 1.0.9
|
|
|
31525d |
Release: 2%{?dist}
|
|
|
ac92fb |
Summary: SNTP v4 client (RFC4330) for Node.js
|
|
|
ac92fb |
License: BSD
|
|
|
ac92fb |
URL: https://github.com/hueniverse/sntp
|
|
|
ac92fb |
Source0: http://registry.npmjs.org/sntp/-/sntp-%{version}.tgz
|
|
|
ac92fb |
BuildArch: noarch
|
|
|
ac92fb |
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
ac92fb |
|
|
|
ac92fb |
BuildRequires: %{?scl_prefix}nodejs-devel
|
|
|
ac92fb |
|
|
|
ac92fb |
%description
|
|
|
ac92fb |
An SNTP v4 client (RFC4330) for Node.js. Simply connects to the NTP or SNTP
|
|
|
ac92fb |
server requested and returns the server time along with the round-trip duration
|
|
|
ac92fb |
and clock offset. To adjust the local time to the NTP time, add the returned
|
|
|
ac92fb |
time offset to the local time.
|
|
|
ac92fb |
|
|
|
ac92fb |
%prep
|
|
|
ac92fb |
%setup -q -n package
|
|
|
ac92fb |
|
|
|
ac92fb |
#drop exec bit from everything
|
|
|
ac92fb |
chmod 0644 *.js* README.md LICENSE examples/* lib/*
|
|
|
ac92fb |
|
|
|
ac92fb |
%build
|
|
|
ac92fb |
#nothing to do
|
|
|
ac92fb |
|
|
|
ac92fb |
%install
|
|
|
ac92fb |
mkdir -p %{buildroot}%{nodejs_sitelib}/sntp
|
|
|
ac92fb |
cp -pr lib index.js package.json %{buildroot}%{nodejs_sitelib}/sntp
|
|
|
ac92fb |
|
|
|
ac92fb |
%nodejs_symlink_deps
|
|
|
ac92fb |
|
|
|
ac92fb |
#Yet Another Unpackaged Test Framework (lab)
|
|
|
ac92fb |
#%%check
|
|
|
ac92fb |
#make test
|
|
|
ac92fb |
|
|
|
ac92fb |
%files
|
|
|
ac92fb |
%{nodejs_sitelib}/sntp
|
|
|
ac92fb |
%doc README.md LICENSE examples
|
|
|
ac92fb |
|
|
|
ac92fb |
%changelog
|
|
|
31525d |
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.9-2
|
|
|
31525d |
- Resolves: RHBZ#1543198, rebuild for multiarch
|
|
|
31525d |
|
|
|
ac92fb |
* Tue Sep 13 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 1.0.9-1
|
|
|
ac92fb |
- Updated with script
|
|
|
ac92fb |
|
|
|
ac92fb |
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.2.4-3
|
|
|
ac92fb |
- rebuilt
|
|
|
ac92fb |
|
|
|
ac92fb |
* Thu Oct 17 2013 Tomas Hrcka <thrcka@redhat.com> - 0.2.4-2
|
|
|
ac92fb |
- replace provides and requires with macro
|
|
|
ac92fb |
|
|
|
ac92fb |
* Sun Jun 23 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.4-1
|
|
|
ac92fb |
- new upstream release 0.2.4
|
|
|
ac92fb |
|
|
|
ac92fb |
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.1-3
|
|
|
ac92fb |
- restrict to compatible arches
|
|
|
ac92fb |
|
|
|
ac92fb |
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.1-2
|
|
|
ac92fb |
- add macro for EPEL6 dependency generation
|
|
|
ac92fb |
|
|
|
ac92fb |
* Fri Apr 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.2.1-2
|
|
|
ac92fb |
- Add support for software collections
|
|
|
ac92fb |
|
|
|
ac92fb |
* Tue Apr 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.1-1
|
|
|
ac92fb |
- new upstream release 0.2.1
|
|
|
ac92fb |
|
|
|
ac92fb |
* Mon Apr 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.0-2
|
|
|
ac92fb |
- fix rpmlint warnings
|
|
|
ac92fb |
|
|
|
ac92fb |
* Fri Apr 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.2.0-1
|
|
|
ac92fb |
- initial package
|