]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: Benchmark::Timer - Perl code benchmarking tool |
f0208757 | 9 | Summary(pl.UTF-8): Benchmark::Timer - narzędzie do testowania wydajności kodu perlowego |
d0046f8c | 10 | Name: perl-Benchmark-Timer |
82dcaa3a | 11 | Version: 0.7102 |
d813626c | 12 | Release: 1 |
d0046f8c | 13 | # same as perl |
61d962dc | 14 | License: GPL v1+ or Artistic |
d0046f8c JB |
15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
82dcaa3a | 17 | # Source0-md5: d79a85ebdd458a34b5e979b636f5128b |
ea643349 | 18 | URL: http://search.cpan.org/dist/Benchmark-Timer/ |
d813626c | 19 | BuildRequires: perl-Statistics-TTest |
d0046f8c JB |
20 | BuildRequires: perl-devel >= 1:5.8.0 |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | The Benchmark::Timer class allows you to time portions of code | |
27 | conveniently, as well as benchmark code by allowing timings of | |
28 | repeated trials. It is perfect for when you need more precise | |
29 | information about the running time of portions of your code than the | |
30 | Benchmark module will give you, but don't want to go all out and | |
31 | profile your code. | |
32 | ||
f4c9782c JR |
33 | %description -l pl.UTF-8 |
34 | Klasa Benchmark::Timer pozwala wygodnie mierzyć czas wykonywania | |
35 | fragmentów kodu, a także mierzyć wydajność kodu pozwalając na | |
36 | mierzenie czasu w powtarzanych próbach. Jest to idealne jeśli | |
37 | potrzebujemy bardziej precyzyjnej informacji o czasie działania | |
38 | fragmentów kodu niż może dać moduł Benchmark, ale nie chcemy iść na | |
39 | cał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 | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -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/* |