perl-CGI-Application-vl.spec 2.5 KB

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