1 | %define rel 1 |
---|
2 | |
---|
3 | Summary: a Perl module to use HTML Templates |
---|
4 | Name: perl-HTML-Template |
---|
5 | Version: 2.95 |
---|
6 | Release: %{rel}%{?_dist_release} |
---|
7 | License: GPL/Artistic |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://www.cpan.org/authors/id/S/SA/SAMTREGAR/HTML-Template-%{version}.tar.gz |
---|
10 | Url: http://search.cpan.org/search?dist=HTML-Template |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
12 | BuildRequires: perl >= 5.004 |
---|
13 | Requires: perl >= 5.004 |
---|
14 | BuildArch: noarch |
---|
15 | AutoReq: false |
---|
16 | |
---|
17 | Vendor: Project Vine |
---|
18 | Distribution: Vine Linux |
---|
19 | |
---|
20 | %description |
---|
21 | This module attempts make using HTML templates simple and natural. |
---|
22 | It extends standard HTML with a few new HTML-esque tags - <TMPL_VAR>, |
---|
23 | <TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> and <TMPL_ELSE>. The file |
---|
24 | written with HTML and these new tags is called a template. It is |
---|
25 | usually saved separate from your script - possibly even created by |
---|
26 | someone else! Using this module you fill in the values for the |
---|
27 | variables, loops and branches declared in the template. This allows |
---|
28 | you to seperate design - the HTML - from the data, which you generate |
---|
29 | in the Perl script. |
---|
30 | |
---|
31 | %description -l ja |
---|
32 | このモジュールは HTML テンプレートを使うことを簡単に、自然にしようとし |
---|
33 | ます。これは標準の HTML をいくつかの新しいHTML風のタグ - <TMPL_VAR>, |
---|
34 | <TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF>, <TMPL_ELSE>, <TMPL_UNLESS> で拡 |
---|
35 | 張します。 HTML とこれらの新しいタグで書かれたファイルはテンプレートと |
---|
36 | 呼ばれます。これは通常スクリプトとは別に保存されます - もしかしたら他の |
---|
37 | 誰かによって作成されることさえあるかもしれません! このモジュールを使っ |
---|
38 | て、変数のための値を埋めたり、テンプレートで宣言されたループや分岐をお |
---|
39 | こないます。これにより Perl スクリプトで作成されるデータからデザイン |
---|
40 | - HTML - を分けることが出来ます。 |
---|
41 | |
---|
42 | %prep |
---|
43 | %setup -q -n HTML-Template-%{version} |
---|
44 | |
---|
45 | %build |
---|
46 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
---|
47 | #PREFIX=%{buildroot}%{_prefix} |
---|
48 | make |
---|
49 | |
---|
50 | %install |
---|
51 | rm -rf $RPM_BUILD_ROOT |
---|
52 | mkdir -p $RPM_BUILD_ROOT%{_prefix} |
---|
53 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
54 | |
---|
55 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
56 | |
---|
57 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
58 | |
---|
59 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
60 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
61 | grep -v ^%{_mandir} | |
---|
62 | grep -v perllocal.pod | |
---|
63 | grep -v "\.packlist" > %{name}.files |
---|
64 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
65 | echo "ERROR: EMPTY FILE LIST" |
---|
66 | exit -1 |
---|
67 | fi |
---|
68 | |
---|
69 | %check |
---|
70 | make test |
---|
71 | |
---|
72 | %clean |
---|
73 | rm -rf $RPM_BUILD_ROOT |
---|
74 | |
---|
75 | |
---|
76 | %files -f %{name}.files |
---|
77 | %defattr(-,root,root) |
---|
78 | %doc ANNOUNCE Changes FAQ README scripts templates |
---|
79 | %{_mandir}/*/* |
---|
80 | %dir %{perl_vendorlib}/HTML |
---|
81 | |
---|
82 | %changelog |
---|
83 | * Thu Jul 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.95-1 |
---|
84 | - new upstream release. |
---|
85 | |
---|
86 | * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.9-3vl6 |
---|
87 | - build with perl 5.12.3 |
---|
88 | - drop defined perl_vendorlib macro |
---|
89 | - add Vendor and Distribution tags |
---|
90 | - fix typo in changelog 2.9-{1,2} |
---|
91 | |
---|
92 | * Wed Apr 08 2009 Shu KONNO <owa@bg.wakwak.com> 2.9-2 |
---|
93 | - spec in utf-8 |
---|
94 | |
---|
95 | * Mon Apr 28 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 2.9-1 |
---|
96 | - rebuild with perl-5.10.0-1 |
---|
97 | |
---|
98 | * Tue Jul 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.9-0vl1 |
---|
99 | - new upstream release |
---|
100 | - changed Group to Development/Libraries |
---|
101 | |
---|
102 | * Sun Jul 16 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7-0vl2 |
---|
103 | - added Japanese description from VinePlus/3.2 package |
---|
104 | - added Autoreq: false |
---|
105 | - installed perl modules to vendor_perl |
---|
106 | |
---|
107 | * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 2.7-0vl1 |
---|
108 | - new upstream release |
---|
109 | - built with perl-5.8.6 |
---|
110 | |
---|
111 | * Thu Apr 24 2003 IWAI Masaharu <iwai@alib.jp> 2.6-0vl1 |
---|
112 | - build with perl-5.8.0 |
---|
113 | - version up to 2.6 |
---|
114 | |
---|
115 | * Mon Apr 29 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 2.5-0vl1 |
---|
116 | - first build for Vine Linux |
---|