perl-CGI-Application-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Summary: Framework for building reusable web-applications
  2. Name: perl-CGI-Application
  3. Version: 4.31
  4. Release: 1%{?_dist_release}
  5. Group: Development/Libraries
  6. License: GPL or Artistic
  7. URL: http://search.cpan.org/~markstos/CGI-Application/
  8. Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MARKSTOS/CGI-Application-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. BuildRequires: perl-HTML-Template
  12. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  13. %description
  14. CGI::Application is intended to make it easier to create sophisticated,
  15. reusable web-based applications. This module implements a methodology which,
  16. if followed, will make your web software easier to design, easier to
  17. document, easier to write, and easier to evolve.
  18. %prep
  19. %setup -q -n CGI-Application-%{version}
  20. perldoc -t perlartistic > Artistic
  21. perldoc -t perlgpl > COPYING
  22. %build
  23. %{__perl} Makefile.PL INSTALLDIRS=vendor
  24. make
  25. %install
  26. rm -rf $RPM_BUILD_ROOT
  27. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  28. make DESTDIR=$RPM_BUILD_ROOT install
  29. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  30. sed "s@^$RPM_BUILD_ROOT@@g" |
  31. grep -v ^%{_mandir} |
  32. grep -v perllocal.pod |
  33. grep -v "\.packlist" > %{name}.files
  34. if [ "$(cat %{name}.files)X" = "X" ] ; then
  35. echo "ERROR: EMPTY FILE LIST"
  36. exit -1
  37. fi
  38. perllocalfile=`find %{buildroot} -name perllocal.pod`
  39. echo "mv $perllocalfile ."
  40. mv $perllocalfile .
  41. %check
  42. make test
  43. %clean
  44. rm -rf $RPM_BUILD_ROOT
  45. %files -f %{name}.files
  46. %defattr(-,root,root,-)
  47. %doc Artistic COPYING Changes README perllocal.pod
  48. %dir %{perl_vendorlib}/CGI
  49. %dir %{perl_vendorlib}/CGI/Application
  50. %{_mandir}/man3/*.3*
  51. %changelog
  52. * Thu Nov 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.31-1
  53. - new upstream release
  54. * Mon Apr 28 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 4.06-1
  55. - rebuild with perl-5.10.0-1
  56. * Fri Feb 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.06-0vl1
  57. - updated to 4.06
  58. - changed Group to Development/Libraries
  59. * Fri Sep 9 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.03-0vl1
  60. - Initial package for Vine Linux (VineSeed Plus)