perl-CGI-Application-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Summary: Framework for building reusable web-applications
  2. Name: perl-CGI-Application
  3. Version: 4.31
  4. Release: 2%{?_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. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. CGI::Application is intended to make it easier to create sophisticated,
  17. reusable web-based applications. This module implements a methodology which,
  18. if followed, will make your web software easier to design, easier to
  19. document, easier to write, and easier to evolve.
  20. %prep
  21. %setup -q -n CGI-Application-%{version}
  22. perldoc -t perlartistic > Artistic
  23. perldoc -t perlgpl > COPYING
  24. %build
  25. %{__perl} Makefile.PL INSTALLDIRS=vendor
  26. make
  27. %install
  28. rm -rf $RPM_BUILD_ROOT
  29. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  30. make DESTDIR=$RPM_BUILD_ROOT install
  31. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  32. sed "s@^$RPM_BUILD_ROOT@@g" |
  33. grep -v ^%{_mandir} |
  34. grep -v perllocal.pod |
  35. grep -v "\.packlist" > %{name}.files
  36. if [ "$(cat %{name}.files)X" = "X" ] ; then
  37. echo "ERROR: EMPTY FILE LIST"
  38. exit -1
  39. fi
  40. perllocalfile=`find %{buildroot} -name perllocal.pod`
  41. echo "mv $perllocalfile ."
  42. mv $perllocalfile .
  43. %check
  44. make test
  45. %clean
  46. rm -rf $RPM_BUILD_ROOT
  47. %files -f %{name}.files
  48. %defattr(-,root,root,-)
  49. %doc Artistic COPYING Changes README perllocal.pod
  50. %dir %{perl_vendorlib}/CGI
  51. %dir %{perl_vendorlib}/CGI/Application
  52. %{_mandir}/man3/*.3*
  53. %changelog
  54. * Sun May 22 2011 IWAI, Masaharu <iwai@alib.jp> 4.31-2
  55. - build with perl 5.12.3
  56. - add Vendor and Distribution tags
  57. * Thu Nov 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.31-1
  58. - new upstream release
  59. * Mon Apr 28 2008 IWAI, Masaharu <iwaim@cc.mbn.or.jp> 4.06-1
  60. - rebuild with perl-5.10.0-1
  61. * Fri Feb 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.06-0vl1
  62. - updated to 4.06
  63. - changed Group to Development/Libraries
  64. * Fri Sep 9 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.03-0vl1
  65. - Initial package for Vine Linux (VineSeed Plus)