Author: glen Date: Sun Jun 17 15:29:01 2012 GMT Module: packages Tag: HEAD ---- Log message: - new
---- Files affected: packages/nodejs-microtime: library-path.patch (NONE -> 1.1) (NEW), nodejs-microtime.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/nodejs-microtime/library-path.patch diff -u /dev/null packages/nodejs-microtime/library-path.patch:1.1 --- /dev/null Sun Jun 17 17:29:01 2012 +++ packages/nodejs-microtime/library-path.patch Sun Jun 17 17:28:56 2012 @@ -0,0 +1,12 @@ +--- nodejs-microtime-0.2.0/index.js~ 2011-11-07 20:47:19.000000000 +0200 ++++ nodejs-microtime-0.2.0/index.js 2012-06-17 18:24:15.300783077 +0300 +@@ -5,8 +5,7 @@ + // `[email protected]` and `[email protected]`. + // (from https://github.com/indexzero/daemon.node) + // +-try { binding = require('./build/default/microtime') } +-catch (ex) { binding = require('./build/Release/microtime') } ++binding = require('./microtime') + + exports.now = binding.now + exports.nowDouble = binding.nowDouble ================================================================ Index: packages/nodejs-microtime/nodejs-microtime.spec diff -u /dev/null packages/nodejs-microtime/nodejs-microtime.spec:1.1 --- /dev/null Sun Jun 17 17:29:02 2012 +++ packages/nodejs-microtime/nodejs-microtime.spec Sun Jun 17 17:28:56 2012 @@ -0,0 +1,67 @@ +# $Revision$, $Date$ +%define pkg microtime +Summary: Get the current time in microseconds +Name: nodejs-%{pkg} +Version: 0.2.0 +Release: 1 +License: MIT +Group: Development/Libraries +URL: https://github.com/wadey/node-microtime +Source0: http://registry.npmjs.org/microtime/-/%{pkg}-%{version}.tgz +# Source0-md5: 9bc25aebc64b0c7370727013098dd6c3 +Patch0: library-path.patch +BuildRequires: nodejs-devel +BuildRequires: rpmbuild(macros) >= 1.634 +BuildRequires: sed >= 4.0 +Requires: nodejs +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Date.now() will only give you accuracy in milliseconds. This module +calls gettimeofday(2) to get the time in microseconds and provides it +in a few different formats. + +The same warning from that function applies: The resolution of the +system clock is hardware dependent, and the time may be updated +continuously or in `ticks'. + +%prep +%setup -qc +mv package/* . +%patch0 -p1 + +# make it noop for npm link +%{__sed} -i -e 's,node-waf configure build,/bin/true,' package.json + +%build +NODE_PATH=%{nodejs_libdir}/%{pkg} \ +node-waf configure build + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg} +cp -pr index.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg} + +node-waf install \ + --destdir=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README.md LICENSE +%dir %{nodejs_libdir}/%{pkg} +%{nodejs_libdir}/%{pkg}/package.json +%{nodejs_libdir}/%{pkg}/index.js +%attr(755,root,root) %{nodejs_libdir}/%{pkg}/microtime.node + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2012/06/17 15:28:56 glen +- new ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
