]>
Commit | Line | Data |
---|---|---|
b1ecaa8d | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
848e0699 | 4 | |
b1ecaa8d | 5 | %define pdir Template |
6 | %define pnam Timer | |
848e0699 | 7 | %include /usr/lib/rpm/macros.perl |
b1ecaa8d | 8 | Summary: Template::Timer - Rudimentary profiling for Template Toolkit |
cf38e928 | 9 | Summary(pl.UTF-8): Template::Timer - podstawowe profilowanie dla Template Toolkitu |
b1ecaa8d | 10 | Name: perl-Template-Timer |
e3b7a2f4 | 11 | Version: 1.00 |
96d4f4b4 | 12 | Release: 1 |
b1ecaa8d | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
e3b7a2f4 | 17 | # Source0-md5: b7d488e5a1fd4f8171c5f81183921dc2 |
848e0699 | 18 | URL: http://search.cpan.org/dist/Template-Timer/ |
b1ecaa8d | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl-Template-Toolkit | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Template::Timer provides inline timings of the template processing | |
47741372 | 29 | throughout your code. It's an overridden version of Template::Context |
b1ecaa8d | 30 | that wraps the process() and include() methods. |
31 | ||
350d9069 | 32 | %description -l pl.UTF-8 |
848e0699 ER |
33 | Template::Timer udostępnia mierzenie czasu przetwarzania kodu. Jest to |
34 | przeciążona wersja klasy Template::Context przechwytująca metody | |
47741372 | 35 | process() i include(). |
b1ecaa8d | 36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes README | |
59 | %{perl_vendorlib}/Template/*.pm | |
60 | %{_mandir}/man3/* |