[nodejs-sntp/f18] initial import
T.C. Hollingsworth
patches at fedoraproject.org
Wed Apr 10 00:54:59 UTC 2013
commit 1c2e3a837511c352bf9c008a2d6d424ace8b7d2a
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date: Tue Apr 9 17:54:45 2013 -0700
initial import
.gitignore | 1 +
nodejs-sntp.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 59 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..96c3ff6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/sntp-0.2.1.tgz
diff --git a/nodejs-sntp.spec b/nodejs-sntp.spec
new file mode 100644
index 0000000..5ef8e55
--- /dev/null
+++ b/nodejs-sntp.spec
@@ -0,0 +1,57 @@
+Name: nodejs-sntp
+Version: 0.2.1
+Release: 1%{?dist}
+Summary: SNTP v4 client (RFC4330) for Node.js
+License: BSD
+Group: Development/Libraries
+URL: https://github.com/hueniverse/sntp
+Source0: http://registry.npmjs.org/sntp/-/sntp-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+
+BuildRequires: nodejs-devel
+
+%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
+%setup -q -n package
+
+#drop exec bit from everything
+chmod 0644 *.js* README.md LICENSE examples/* lib/*
+
+%build
+#nothing to do
+
+%install
+rm -rf %{buildroot}
+
+mkdir -p %{buildroot}%{nodejs_sitelib}/sntp
+cp -pr lib index.js package.json %{buildroot}%{nodejs_sitelib}/sntp
+
+%nodejs_symlink_deps
+
+#Yet Another Unpackaged Test Framework (lab)
+#%%check
+#make test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%{nodejs_sitelib}/sntp
+%doc README.md LICENSE examples
+
+%changelog
+* Tue Apr 09 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.2.1-1
+- new upstream release 0.2.1
+
+* Mon Apr 08 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.2.0-2
+- fix rpmlint warnings
+
+* Fri Apr 05 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.2.0-1
+- initial package
diff --git a/sources b/sources
index e69de29..f893d56 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9006e8ad17246d1fd3a0aa40be87288c sntp-0.2.1.tgz
More information about the scm-commits
mailing list