]>
Commit | Line | Data |
---|---|---|
1 | %include /usr/lib/rpm/macros.perl | |
2 | %define pdir Text | |
3 | %define pnam Template | |
4 | Summary: Text::Template - Expand template text with embedded Perl | |
5 | Name: perl-Text-Template | |
6 | Version: 1.43 | |
7 | Release: 1 | |
8 | License: GPL | |
9 | Group: Development/Languages/Perl | |
10 | Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
11 | BuildRequires: rpm-perlprov >= 3.0.3-16 | |
12 | BuildArch: noarch | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | This is a library for generating form letters, building HTML pages, | |
17 | or filling in templates generally. A `template' is a piece of text | |
18 | that has little Perl programs embedded in it here and there. When you | |
19 | `fill in' a template, you evaluate the little programs and replace them | |
20 | with their values. | |
21 | ||
22 | %prep | |
23 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
24 | ||
25 | %build | |
26 | perl Makefile.PL | |
27 | %{__make} | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | ||
32 | %{__make} install DESTDIR=$RPM_BUILD_ROOT | |
33 | ||
34 | %clean | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | %files | |
38 | %defattr(644,root,root,755) | |
39 | %doc README | |
40 | %{perl_sitelib}/Text/Template.pm | |
41 | %{perl_sitelib}/Text/Template | |
42 | %{_mandir}/man3/* |