]> git.pld-linux.org Git - packages/perl-Text-Template.git/blob - perl-Text-Template.spec
- updated URL and macros
[packages/perl-Text-Template.git] / perl-Text-Template.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4 #
5 %define         pdir    Text
6 %define         pnam    Template
7 Summary:        Text::Template - expand template text with embedded Perl
8 Summary(pl.UTF-8):      Text::Template - przetwarzanie szablonów tekstowych z wbudowanym kodem w Perlu
9 Name:           perl-Text-Template
10 Version:        1.61
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  de5146c2001214cb0a251e627f5b185d
17 URL:            https://metacpan.org/dist/Text-Template
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRequires:  rpmbuild(macros) >= 1.745
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 1.721995 seconds and 3 git commands to generate.