perl-HTML-Template-vl.spec 3.8 KB

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