[avgtime] Initial release (RHBZ#842778).

Richard W.M. Jones rjones at fedoraproject.org
Wed Jul 25 16:07:29 UTC 2012


commit e1b6eaaeb4c9c6e6fd73d23a591ba15736df3df1
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Jul 25 17:07:05 2012 +0100

    Initial release (RHBZ#842778).

 .gitignore   |    1 +
 avgtime.spec |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources      |    1 +
 3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..993d6b6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/avgtime-20120724.tar.gz
diff --git a/avgtime.spec b/avgtime.spec
new file mode 100644
index 0000000..b98f2ac
--- /dev/null
+++ b/avgtime.spec
@@ -0,0 +1,56 @@
+%global verdate 20120724
+
+Name:           avgtime
+Version:        0
+Release:        0.1.git%{verdate}%{?dist}
+Summary:        Time a command and print average, standard deviation
+
+License:        Boost
+URL:            https://github.com/jmcabo/avgtime
+
+# There are no upstream source tarballs.  The source tarball
+# here was constructed as follows:
+#
+#   git clone https://github.com/jmcabo/avgtime.git
+#   cd avgtime
+#   d=`date +%Y%m%d`
+#   git archive -o /tmp/avgtime-$d.tar.gz --prefix=avgtime-$d/ HEAD
+#
+Source0:        avgtime-%{verdate}.tar.gz
+
+BuildRequires:  ldc
+BuildRequires:  ldc-druntime
+BuildRequires:  ldc-phobos-devel
+
+
+%description
+'avgtime' works like the Linux 'time' command, except it runs the
+command repeatedly and displays statistics:
+
+- median
+- average
+- standard deviation
+- 95% and 99% confidence intervals
+
+
+%prep
+%setup -q -n avgtime-%{verdate}
+
+
+%build
+ldc2 avgtime.d
+
+
+%install
+mkdir -p $RPM_BUILD_ROOT%{_bindir}
+cp -a avgtime $RPM_BUILD_ROOT%{_bindir}
+
+
+%files
+%doc README.md LICENSE_1_0.txt
+%{_bindir}/avgtime
+
+
+%changelog
+* Wed Jul 25 2012 Richard W.M. Jones <rjones at redhat.com> - 0-0.1.git20120724
+- Initial release.
diff --git a/sources b/sources
index e69de29..f0076ff 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9365c4dc7e4238e6515ccf1f96edc372  avgtime-20120724.tar.gz


More information about the scm-commits mailing list