diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a436721 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/sntp-1.0.9.tgz diff --git a/.rh-nodejs6-nodejs-sntp.metadata b/.rh-nodejs6-nodejs-sntp.metadata new file mode 100644 index 0000000..d5f7c00 --- /dev/null +++ b/.rh-nodejs6-nodejs-sntp.metadata @@ -0,0 +1 @@ +6541184cc90aeea6c6e7b35e2659082443c66198 SOURCES/sntp-1.0.9.tgz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-sntp.spec b/SPECS/nodejs-sntp.spec new file mode 100644 index 0000000..f748e71 --- /dev/null +++ b/SPECS/nodejs-sntp.spec @@ -0,0 +1,75 @@ +%{?scl:%scl_package nodejs-sntp} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-sntp +Version: 1.0.9 +Release: 1%{?dist} +Summary: SNTP v4 client (RFC4330) for Node.js +License: BSD +URL: https://github.com/hueniverse/sntp +Source0: http://registry.npmjs.org/sntp/-/sntp-%{version}.tgz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: %{?scl_prefix}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 +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 + +%files +%{nodejs_sitelib}/sntp +%doc README.md LICENSE examples + +%changelog +* Tue Sep 13 2016 Zuzana Svetlikova - 1.0.9-1 +- Updated with script + +* Sun Feb 14 2016 Zuzana Svetlikova - 0.2.4-3 +- rebuilt + +* Thu Oct 17 2013 Tomas Hrcka - 0.2.4-2 +- replace provides and requires with macro + +* Sun Jun 23 2013 T.C. Hollingsworth - 0.2.4-1 +- new upstream release 0.2.4 + +* Sat Jun 22 2013 T.C. Hollingsworth - 0.2.1-3 +- restrict to compatible arches + +* Mon Apr 15 2013 T.C. Hollingsworth - 0.2.1-2 +- add macro for EPEL6 dependency generation + +* Fri Apr 12 2013 Stanislav Ochotnicky - 0.2.1-2 +- Add support for software collections + +* Tue Apr 09 2013 T.C. Hollingsworth - 0.2.1-1 +- new upstream release 0.2.1 + +* Mon Apr 08 2013 T.C. Hollingsworth - 0.2.0-2 +- fix rpmlint warnings + +* Fri Apr 05 2013 T.C. Hollingsworth - 0.2.0-1 +- initial package