]> git.pld-linux.org Git - packages/perl-Benchmark-Timer.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 18 Dec 2003 13:01:31 +0000 (13:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Benchmark-Timer.spec -> 1.1

perl-Benchmark-Timer.spec [new file with mode: 0644]

diff --git a/perl-Benchmark-Timer.spec b/perl-Benchmark-Timer.spec
new file mode 100644 (file)
index 0000000..e7eb687
--- /dev/null
@@ -0,0 +1,65 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    Benchmark
+%define        pnam    Timer
+Summary:       Benchmark::Timer - Perl code benchmarking tool
+Summary(pl):   Benchmark::Timer - narzêdzie do testowania wydajno¶ci kodu perlowego
+Name:          perl-Benchmark-Timer
+Version:       0.5
+Release:       1
+# same as perl
+License:       GPL or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 798b37903b9a8ae1624e9c745123f2eb
+BuildRequires: perl-Time-HiRes
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Benchmark::Timer class allows you to time portions of code
+conveniently, as well as benchmark code by allowing timings of
+repeated trials. It is perfect for when you need more precise
+information about the running time of portions of your code than the
+Benchmark module will give you, but don't want to go all out and
+profile your code.
+
+%description -l pl
+Klasa Benchmark::Timer pozwala wygodnie mierzyæ czas wykonywania
+fragmentów kodu, a tak¿e mierzyæ wydajno¶æ kodu pozwalaj±c na
+mierzenie czasu w powtarzanych próbach. Jest to idealne je¶li
+potrzebujemy bardziej precyzyjnej informacji o czasie dzia³ania
+fragmentów kodu ni¿ mo¿e daæ modu³ Benchmark, ale nie chcemy i¶æ na
+ca³o¶æ i profilowaæ kodu.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%dir %{perl_vendorlib}/Benchmark
+%{perl_vendorlib}/Benchmark/Timer.pm
+%{_mandir}/man3/*
This page took 0.060343 seconds and 4 git commands to generate.