]>
Commit | Line | Data |
---|---|---|
b1ecaa8d | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Template | |
7 | %define pnam Timer | |
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 |
b1ecaa8d | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl-Template-Toolkit | |
22 | %endif | |
23 | BuildArch: noarch | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Template::Timer provides inline timings of the template processing | |
47741372 | 28 | throughout your code. It's an overridden version of Template::Context |
b1ecaa8d | 29 | that wraps the process() and include() methods. |
30 | ||
350d9069 JR |
31 | %description -l pl.UTF-8 |
32 | Template::Timer udostępnia mierzenie czasu przetwarzania kodu. Jest | |
33 | to przeciążona wersja klasy Template::Context przechwytująca metody | |
47741372 | 34 | process() i include(). |
b1ecaa8d | 35 | |
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
42 | %{__make} | |
43 | ||
44 | %{?with_tests:%{__make} test} | |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Changes README | |
58 | %{perl_vendorlib}/Template/*.pm | |
59 | %{_mandir}/man3/* |