perl-CGI-FormBuilder-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. %define pkgname CGI-FormBuilder
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 3.09
  5. Release: 1%{?_dist_release}
  6. Summary: CGI::FormBuilder - Easily generate and process stateful forms
  7. Summary(ja): CGI::FormBuilder - 状態をもつフォームを容易に作成および処理する
  8. License: Artistic or GPL
  9. Group: Development/Libraries
  10. URL: http://search.cpan.org/~nwiger/CGI-FormBuilder/
  11. Source0: http://search.cpan.org/CPAN/authors/id/N/NW/NWIGER/%{pkgname}-%{version}.tgz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. # Dependency
  15. BuildRequires: perl(HTML::Template) >= 2.06
  16. BuildRequires: perl(Text::Template) >= 1.43
  17. BuildRequires: perl(Template) >= 2.08
  18. BuildRequires: perl(CGI::FastTemplate) >= 1.09
  19. BuildRequires: perl(CGI::SSI) >= 0.92
  20. BuildRequires: perl(CGI::Session) >= 3.95
  21. Requires: perl
  22. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  23. Vendor: Project Vine
  24. Distribution: Vine Linux
  25. Packager: yasumichi
  26. %description
  27. The goal of CGI::FormBuilder (FormBuilder) is to provide an easy way for you
  28. to generate and process entire CGI form-based applications.
  29. %description -l ja
  30. CGI::FormBuilder (FormBuilder) の目標は、完全な CGI フォームベースのアプリケ
  31. ーションを作成および処理するための簡単な方法を提供することです。
  32. %prep
  33. %setup -q -n %{pkgname}-%{version}
  34. %build
  35. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  36. %{__make} %{?_smp_mflags}
  37. %install
  38. %{__rm} -rf ${RPM_BUILD_ROOT}
  39. %{__make} pure_install DESTDIR=${RPM_BUILD_ROOT}
  40. # remove unnecessary files.
  41. find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';'
  42. find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
  43. find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
  44. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  45. # generate file list
  46. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  47. sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files
  48. if [ "$(cat %{name}.files)X" = "X" ] ; then
  49. echo "ERROR: EMPTY FILE LIST"
  50. exit -1
  51. fi
  52. %check
  53. make test
  54. %clean
  55. %{__rm} -rf ${RPM_BUILD_ROOT}
  56. %files -f %{name}.files
  57. %defattr(-,root,root)
  58. %doc Changes README
  59. %changelog
  60. * Tue Dec 23 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.09-1
  61. - updated to 3.09
  62. - built with perl 5.16.3
  63. * Thu Oct 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 3.08-1
  64. - initial build for Vine Linux