perl-CGI-FastTemplate-vl.spec 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. %define pkgname CGI-FastTemplate
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 1.09
  5. Release: 2%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. Source0: http://search.cpan.org/CPAN/authors/id/J/JM/JMOORE/%{pkgname}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Packager: yasumichi
  14. Summary: CGI::FastTemplate - Perl extension for managing templates, and performing variable interpolation.
  15. Summary(ja): CGI::FastTemplate - テンプレートの管理および可変的な書き込み実行のための Perl 拡張
  16. # Dependency
  17. Requires: perl
  18. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  19. BuildRequires: perl
  20. %description
  21. CGI::FastTemplate - Perl extension for managing templates, and performing variable interpolation.
  22. %description -l ja
  23. CGI::FastTemplate - テンプレートの管理および可変的な書き込み実行のための Perl 拡張
  24. %prep
  25. %setup -q -n CGI-FastTemplate-1.09
  26. %build
  27. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  28. %{__make} %{?_smp_mflags}
  29. %install
  30. %{__rm} -rf ${RPM_BUILD_ROOT}
  31. %{__make} pure_install DESTDIR=${RPM_BUILD_ROOT}
  32. # remove unnecessary files.
  33. find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';'
  34. find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
  35. find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
  36. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  37. # generate file list
  38. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  39. sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files
  40. if [ "$(cat %{name}.files)X" = "X" ] ; then
  41. echo "ERROR: EMPTY FILE LIST"
  42. exit -1
  43. fi
  44. %clean
  45. %{__rm} -rf ${RPM_BUILD_ROOT}
  46. %files -f %{name}.files
  47. %defattr(-,root,root)
  48. %doc README
  49. %changelog
  50. * Thu Jul 17 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.09-2
  51. - rebuild with perl-5.16.3
  52. * Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.09-1
  53. - initial build for Vine Linux