]>
Commit | Line | Data |
---|---|---|
6331b27c | 1 | # |
2 | # Conditional build: | |
3 | # _without_tests - do not perform "make test" | |
4 | %include /usr/lib/rpm/macros.perl | |
5 | %define pdir HTML | |
6 | %define pnam Template-Expr | |
7 | Summary: HTML::Template::Expr - HTML::Template extension adding expression support | |
8 | #Summary(pl): | |
9 | Name: perl-HTML-Template-Expr | |
10 | Version: 0.03 | |
11 | Release: 1 | |
12 | License: GPL v1+ or Artistic | |
13 | Group: Development/Languages/Perl | |
14 | Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
15 | BuildRequires: perl >= 5.6 | |
16 | BuildRequires: rpm-perlprov >= 3.0.3-26 | |
17 | %if %{?_without_tests:0}%{!?_without_tests:1} | |
18 | BuildRequires: perl-HTML-Template >= 2.4 | |
19 | BuildRequires: perl-Parse-RecDescent | |
20 | %endif | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | This module provides an extension to HTML::Template which allows | |
26 | expressions in the template syntax. This is purely an addition - all | |
27 | the normal HTML::Template options, syntax and behaviors will still work. | |
28 | See L<HTML::Template> for details. | |
29 | ||
30 | # %description -l pl | |
31 | # TODO | |
32 | ||
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
37 | perl Makefile.PL | |
38 | %{__make} | |
39 | %{!?_without_tests:%{__make} test} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %{perl_sitelib}/HTML/Template/*.pm | |
52 | %{_mandir}/man3/* |