perl-CGI-FormBuilder-vl.spec 2.0 KB

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