Blame SPECS/nodejs-sntp.spec

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