]> git.pld-linux.org Git - packages/perl-Benchmark-Timer.git/blame - perl-Benchmark-Timer.spec
use generic url
[packages/perl-Benchmark-Timer.git] / perl-Benchmark-Timer.spec
CommitLineData
d0046f8c
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
ea643349 4
38d91821 5%define pdir Benchmark
6%define pnam Timer
ea643349 7%include /usr/lib/rpm/macros.perl
d0046f8c 8Summary: Benchmark::Timer - Perl code benchmarking tool
f0208757 9Summary(pl.UTF-8): Benchmark::Timer - narzędzie do testowania wydajności kodu perlowego
d0046f8c 10Name: perl-Benchmark-Timer
82dcaa3a 11Version: 0.7102
d813626c 12Release: 1
d0046f8c 13# same as perl
61d962dc 14License: GPL v1+ or Artistic
d0046f8c
JB
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
82dcaa3a 17# Source0-md5: d79a85ebdd458a34b5e979b636f5128b
ea643349 18URL: http://search.cpan.org/dist/Benchmark-Timer/
d813626c 19BuildRequires: perl-Statistics-TTest
d0046f8c
JB
20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26The Benchmark::Timer class allows you to time portions of code
27conveniently, as well as benchmark code by allowing timings of
28repeated trials. It is perfect for when you need more precise
29information about the running time of portions of your code than the
30Benchmark module will give you, but don't want to go all out and
31profile your code.
32
f4c9782c
JR
33%description -l pl.UTF-8
34Klasa Benchmark::Timer pozwala wygodnie mierzyć czas wykonywania
35fragmentów kodu, a także mierzyć wydajność kodu pozwalając na
36mierzenie czasu w powtarzanych próbach. Jest to idealne jeśli
37potrzebujemy bardziej precyzyjnej informacji o czasie działania
38fragmentów kodu niż może dać moduł Benchmark, ale nie chcemy iść na
39całość i profilować kodu.
d0046f8c
JB
40
41%prep
42%setup -q -n %{pdir}-%{pnam}-%{version}
43
44%build
45%{__perl} Makefile.PL \
46 INSTALLDIRS=vendor
47
48%{__make}
49
50%{?with_tests:%{__make} test}
51
52%install
53rm -rf $RPM_BUILD_ROOT
54
55%{__make} install \
56 DESTDIR=$RPM_BUILD_ROOT
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
d813626c 63%doc CHANGES README
d0046f8c
JB
64%dir %{perl_vendorlib}/Benchmark
65%{perl_vendorlib}/Benchmark/Timer.pm
66%{_mandir}/man3/*
This page took 0.0615 seconds and 4 git commands to generate.