]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: HTML::Template - Perl module to use HTML templates from CGI scripts |
2dccf969 | 9 | Summary(pl.UTF-8): HTML::Template - moduł Perla do obsługi szablonów HTML w skryptach CGI |
9911ee26 | 10 | Name: perl-HTML-Template |
4c7aefe1 | 11 | Version: 2.94 |
c1d5ca8f | 12 | Release: 1 |
797ee7f8 | 13 | License: GPL v1+ or Artistic |
9911ee26 | 14 | Group: Development/Languages/Perl |
fecd9198 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
4c7aefe1 JR |
16 | # Source0-md5: 7b7683c3672d55fb922734ea1e9ba7e8 |
17 | URL: https://github.com/mpeters/html-template/ | |
8a2a7325 | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
4ca5456b | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
f400c2f7 | 20 | %if %{with tests} |
f3d439f8 | 21 | BuildRequires: perl-Digest-MD5 |
22 | BuildRequires: perl-IPC-SharedCache | |
f3d439f8 | 23 | %endif |
d4906482 | 24 | BuildArch: noarch |
5daf04a9 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9911ee26 | 26 | |
27 | %description | |
f3d439f8 | 28 | This module attempts make using HTML templates simple and natural. |
29 | ||
30 | It 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 | |
32 | with HTML and these new tags is called a template. It is usually saved | |
33 | separate from your script - possibly even created by someone else! | |
34 | ||
35 | Using this module you fill in the values for the variables, loops and | |
36 | branches declared in the template. This allows you to seperate design - | |
37 | the HTML - from the data, which you generate in the Perl script. | |
9911ee26 | 38 | |
f838fd34 JR |
39 | %description -l pl.UTF-8 |
40 | HTML::Template jest modułem pozwalającym na wykorzystywanie szablonów | |
41 | HTML (i nie tylko) w skryptach CGI (a także w dowolnym innym | |
42 | oprogramowaniu przy tworzeniu którego zachodzi potrzeba rozdzielenia | |
43 | programu 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 | |
56 | rm -rf $RPM_BUILD_ROOT | |
5daf04a9 | 57 | |
9f1b61e8 | 58 | %{__make} install \ |
59 | DESTDIR=$RPM_BUILD_ROOT | |
9911ee26 | 60 | |
8a2a7325 | 61 | install -d $RPM_BUILD_ROOT%{perl_vendorlib}/%{pdir}/%{pnam} |
9911ee26 | 62 | |
63 | %clean | |
64 | rm -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/* |