]>
Commit | Line | Data |
---|---|---|
6331b27c | 1 | # |
2 | # Conditional build: | |
63a17d37 | 3 | %bcond_without tests # do not perform "make test" |
98b968fb | 4 | |
f70a3aea | 5 | %define pdir HTML |
6 | %define pnam Template-Expr | |
98b968fb | 7 | %include /usr/lib/rpm/macros.perl |
6331b27c | 8 | Summary: HTML::Template::Expr - HTML::Template extension adding expression support |
ba62adc4 | 9 | Summary(pl.UTF-8): HTML::Template::Expr - rozszerzenie HTML::Template dodające obsługę wyrażeń |
6331b27c | 10 | Name: perl-HTML-Template-Expr |
a482b5b2 | 11 | Version: 0.07 |
33c5c439 | 12 | Release: 2 |
6331b27c | 13 | License: GPL v1+ or Artistic |
14 | Group: Development/Languages/Perl | |
31d9f02d | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
a482b5b2 | 16 | # Source0-md5: 717ea56c2244b6e2d26a0e477a4d069c |
98b968fb | 17 | URL: http://search.cpan.org/dist/HTML-Template-Expr/ |
5fc05b0b | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
a577ea7f | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
63a17d37 | 20 | %if %{with tests} |
6331b27c | 21 | BuildRequires: perl-HTML-Template >= 2.4 |
22 | BuildRequires: perl-Parse-RecDescent | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This module provides an extension to HTML::Template which allows | |
98b968fb | 29 | expressions in the template syntax. This is purely an addition - all |
4421f424 JB |
30 | the normal HTML::Template options, syntax and behaviors will still |
31 | work. See HTML::Template for details. | |
32 | ||
f6e7d21f JR |
33 | %description -l pl.UTF-8 |
34 | Ten moduł dostarcza rozszerzenie do HTML::Template, pozwalające na | |
35 | używanie wyrażeń w składni szablonów. Jest to czysty dodatek - | |
36 | wszystkie normalne opcje HTML::Template, składnia i zachowanie nadal | |
37 | działa. Więcej szczegółów w HTML::Template. | |
6331b27c | 38 | |
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
a577ea7f | 43 | %{__perl} Makefile.PL \ |
42d323b2 | 44 | INSTALLDIRS=vendor |
6331b27c | 45 | %{__make} |
63a17d37 | 46 | |
47 | %{?with_tests:%{__make} test} | |
6331b27c | 48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
8f2f59a8 | 52 | %{__make} install \ |
53 | DESTDIR=$RPM_BUILD_ROOT | |
6331b27c | 54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
a577ea7f | 60 | %{perl_vendorlib}/HTML/Template/*.pm |
6331b27c | 61 | %{_mandir}/man3/* |