]> git.pld-linux.org Git - packages/perl-HTML-Template.git/blame - perl-HTML-Template.spec
- up to 2.94
[packages/perl-HTML-Template.git] / perl-HTML-Template.spec
CommitLineData
f3d439f8 1#
2# Conditional build:
f400c2f7 3%bcond_without tests # do not perform "make test"
4#
72a86e92 5%include /usr/lib/rpm/macros.perl
f9cd280a 6%define pdir HTML
7%define pnam Template
73658af2 8Summary: HTML::Template - Perl module to use HTML templates from CGI scripts
2dccf969 9Summary(pl.UTF-8): HTML::Template - moduł Perla do obsługi szablonów HTML w skryptach CGI
9911ee26 10Name: perl-HTML-Template
4c7aefe1 11Version: 2.94
c1d5ca8f 12Release: 1
797ee7f8 13License: GPL v1+ or Artistic
9911ee26 14Group: Development/Languages/Perl
fecd9198 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
4c7aefe1
JR
16# Source0-md5: 7b7683c3672d55fb922734ea1e9ba7e8
17URL: https://github.com/mpeters/html-template/
8a2a7325 18BuildRequires: rpm-perlprov >= 4.1-13
4ca5456b 19BuildRequires: perl-devel >= 1:5.8.0
f400c2f7 20%if %{with tests}
f3d439f8 21BuildRequires: perl-Digest-MD5
22BuildRequires: perl-IPC-SharedCache
f3d439f8 23%endif
d4906482 24BuildArch: noarch
5daf04a9 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
9911ee26 26
27%description
f3d439f8 28This module attempts make using HTML templates simple and natural.
29
30It extends standard HTML with a few new HTML-esque tags - <TMPL_VAR>,
31<TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> and <TMPL_ELSE>. The file written
32with HTML and these new tags is called a template. It is usually saved
33separate from your script - possibly even created by someone else!
34
35Using this module you fill in the values for the variables, loops and
36branches declared in the template. This allows you to seperate design -
37the HTML - from the data, which you generate in the Perl script.
9911ee26 38
f838fd34
JR
39%description -l pl.UTF-8
40HTML::Template jest modułem pozwalającym na wykorzystywanie szablonów
41HTML (i nie tylko) w skryptach CGI (a także w dowolnym innym
42oprogramowaniu przy tworzeniu którego zachodzi potrzeba rozdzielenia
43programu od wyglądu danych.
9911ee26 44
45%prep
72a86e92 46%setup -q -n %{pdir}-%{pnam}-%{version}
9911ee26 47
48%build
8a2a7325 49%{__perl} Makefile.PL \
348bee96 50 INSTALLDIRS=vendor
da56de8f 51%{__make}
f3d439f8 52
f400c2f7 53%{?with_tests:TEST_SHARED_MEMORY=1 TEST_FILE_CACHE=1 %{__make} test}
9911ee26 54
55%install
56rm -rf $RPM_BUILD_ROOT
5daf04a9 57
9f1b61e8 58%{__make} install \
59 DESTDIR=$RPM_BUILD_ROOT
9911ee26 60
8a2a7325 61install -d $RPM_BUILD_ROOT%{perl_vendorlib}/%{pdir}/%{pnam}
9911ee26 62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%files
67%defattr(644,root,root,755)
f3d439f8 68%doc Changes README ANNOUNCE FAQ templates scripts
8a2a7325 69%{perl_vendorlib}/%{pdir}/*.pm
70%dir %{perl_vendorlib}/%{pdir}/%{pnam}
9911ee26 71%{_mandir}/man3/*
This page took 0.206158 seconds and 4 git commands to generate.