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