[perl-Dumbbench] Import
Petr Pisar
ppisar at fedoraproject.org
Fri Sep 5 12:30:16 UTC 2014
commit 36c4b9bc52ac31eda7195db52d36ecf69dd5c2bc
Author: Petr Písař <ppisar at redhat.com>
Date: Fri Sep 5 14:21:37 2014 +0200
Import
.gitignore | 1 +
perl-Dumbbench.spec | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..37c2944 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Dumbbench-0.09.tar.gz
diff --git a/perl-Dumbbench.spec b/perl-Dumbbench.spec
new file mode 100644
index 0000000..5a16f60
--- /dev/null
+++ b/perl-Dumbbench.spec
@@ -0,0 +1,83 @@
+# SOOT is not packaged yet
+%bcond_with SOOT
+
+Name: perl-Dumbbench
+Version: 0.09
+Release: 1%{?dist}
+Summary: More reliable bench-marking with the least amount of thinking
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/Dumbbench/
+Source0: http://www.cpan.org/authors/id/B/BD/BDFOY/Dumbbench-%{version}.tar.gz
+BuildArch: noarch
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::MakeMaker)
+# Run-time:
+BuildRequires: perl(Carp)
+BuildRequires: perl(Class::XSAccessor) >= 1.05
+BuildRequires: perl(constant)
+BuildRequires: perl(Exporter)
+BuildRequires: perl(List::Util)
+BuildRequires: perl(Number::WithError) >= 1.00
+BuildRequires: perl(Params::Util)
+BuildRequires: perl(parent)
+# SOOT is optional
+BuildRequires: perl(Statistics::CaseResampling) >= 0.06
+BuildRequires: perl(strict)
+BuildRequires: perl(Time::HiRes)
+BuildRequires: perl(warnings)
+# Tests:
+BuildRequires: perl(Capture::Tiny)
+BuildRequires: perl(Test::More)
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires: perl(Class::XSAccessor) >= 1.05
+Requires: perl(Number::WithError) >= 1.00
+Requires: perl(Statistics::CaseResampling) >= 0.06
+
+# Remove under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Class::XSAccessor|Number::WithError|Statistics::CaseResampling)\\)$
+
+%description
+Dumbbench is a fancier benchmark module for Perl. It times the runs of code,
+does some statistical analysis to discard outliers, and prints the results.
+
+%if %with SOOT
+%package BoxPlot
+Summary: Dumbbench visualization using ROOT
+
+%description BoxPlot
+Dumbbench::BoxPlot module provides a way how to plot a Dumbbench timing using
+ROOT toolkit.
+%endif
+
+%prep
+%setup -q -n Dumbbench-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{_bindir}/*
+%{perl_vendorlib}/*
+%exclude %{perl_vendorlib}/Dumbbench/BoxPlot.pm
+%{_mandir}/man3/*
+
+%if %with SOOT
+%files BoxPlot
+%doc r
+%{perl_vendorlib}/Dumbbench/BoxPlot.pm
+%endif
+
+%changelog
+* Tue May 14 2013 Petr Pisar <ppisar at redhat.com> 0.09-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..68e2010 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+781a91c4eac92cf5008e7e1c0c6753db Dumbbench-0.09.tar.gz
More information about the scm-commits
mailing list