]> git.pld-linux.org Git - packages/perl-HTML-Template-Extension.git/blob - perl-HTML-Template-Extension.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTML-Template-Extension.git] / perl-HTML-Template-Extension.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    HTML
6 %define         pnam    Template-Extension
7 Summary:        HTML::Template::Extension - Module support extension for HTML::Template
8 Summary(pl.UTF-8):      HTML::Template::Extension - rozszerzenie obsługujące moduły dla HTML::Template
9 Name:           perl-HTML-Template-Extension
10 Version:        0.26
11 Release:        1
12 License:        GPL v2+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  494a89334e9c00567930669e35972a34
16 URL:            http://search.cpan.org/dist/HTML-Template-Extension/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  perl-HTML-Parser
21 BuildRequires:  perl-HTML-Template >= 2.1
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This module extends HTML::Template to easily support methods and tags
28 not implemented in parent module. Piece of code needed to add new tags
29 syntax and new functionality are called plugins. All plugins can be
30 dynamically loaded for supporting needed syntax and functionality.
31
32 %description -l pl.UTF-8
33 Ten moduł rozszerza klasę HTML::Template tak, aby mogła łatwo
34 obsługiwać metody i znaczniki nie zaimplementowane w macierzystym
35 module. Kawałki kodu potrzebne do dodania składni nowych znaczników i
36 nowej funkcjonalności są nazywane wtyczkami. Wszystkie wtyczki mogą
37 być dynamicznie wczytywane w celu obsługi wymaganej składni i
38 funkcjonalności.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc Changes README TODO DISCLAIMER
62 %{perl_vendorlib}/HTML/Template/*.pm
63 %dir %{perl_vendorlib}/HTML/Template/Extension
64 %{perl_vendorlib}/HTML/Template/Extension/*.pm
65 %{_mandir}/man3/*
This page took 0.061977 seconds and 4 git commands to generate.