]> git.pld-linux.org Git - packages/perl-Text-Template.git/blob - perl-Text-Template.spec
- up to 1.53
[packages/perl-Text-Template.git] / perl-Text-Template.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Text
7 %define         pnam    Template
8 Summary:        Text::Template - expand template text with embedded Perl
9 Summary(pl.UTF-8):      Text::Template - przetwarzanie szablonów tekstowych z wbudowanym kodem w Perlu
10 Name:           perl-Text-Template
11 Version:        1.53
12 Release:        1
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  904981e0ff233c4ab6099f4d889729c8
18 URL:            http://search.cpan.org/dist/Text-Template/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-Test-More-UTF8
23 %endif
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This is a library for generating form letters, building HTML pages,
29 or filling in templates generally.  A `template' is a piece of text
30 that has little Perl programs embedded in it here and there.  When you
31 `fill in' a template, you evaluate the little programs and replace
32 them with their values.
33
34 %description -l pl.UTF-8
35 To jest biblioteka do generowania listów z formularzy, budowania stron
36 HTML lub ogólnie wypełniania szablonów. Szablon (template) to kawałek
37 tekstu, który ma wbudowane gdzieniegdzie małe programy w Perlu. Przy
38 "wypełnianiu" szablonu te małe programy są wykonywane i zastępowane
39 zwracanymi przez nie wartościami.
40
41 %prep
42 %setup -q -n %{pdir}-%{pnam}-%{version}
43
44 %build
45 %{__perl} Makefile.PL \
46         INSTALLDIRS=vendor
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc README
63 %{perl_vendorlib}/Text/Template.pm
64 %{perl_vendorlib}/Text/Template
65 %{_mandir}/man3/Text::Template*.3pm*
This page took 0.078796 seconds and 3 git commands to generate.