perl-CGI-Session-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Summary: persistent session data in CGI applications with Perl
  2. Name: perl-CGI-Session
  3. Version: 4.42
  4. Release: 1%{?_dist_release}
  5. License: Artistic
  6. Group: Development/Libraries
  7. Source0: http://search.cpan.org/CPAN/authors/id/S/SH/SHERZODR/CGI-Session-%{version}.tar.gz
  8. URL: http://search.cpan.org/~sherzodr/CGI-Session/
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildArch: noarch
  11. BuildRequires: perl >= 5.8.2
  12. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. CGI-Session is a Perl5 library that provides an easy, reliable and
  17. modular session management system across HTTP requests. Persistency is a
  18. key feature for such applications as shopping carts,
  19. login/authentication routines, and application that need to carry data
  20. accross HTTP requests. CGI::Session does that and many more
  21. %prep
  22. %setup -q -n CGI-Session-%{version}
  23. %build
  24. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
  25. make
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  29. make DESTDIR=$RPM_BUILD_ROOT install
  30. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  31. sed "s@^$RPM_BUILD_ROOT@@g" |
  32. grep -v ^%{_mandir} |
  33. grep -v perllocal.pod |
  34. grep -v "\.packlist" > %{name}.files
  35. if [ "$(cat %{name}.files)X" = "X" ] ; then
  36. echo "ERROR: EMPTY FILE LIST"
  37. exit -1
  38. fi
  39. %check
  40. make test
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %files -f %{name}.files
  44. %defattr(-,root,root)
  45. %doc README Changes
  46. %{_mandir}/*/*
  47. %dir %{perl_vendorlib}/CGI
  48. %dir %{perl_vendorlib}/CGI/Session
  49. %dir %{perl_vendorlib}/CGI/Session/ID
  50. %dir %{perl_vendorlib}/CGI/Session/Driver
  51. %dir %{perl_vendorlib}/CGI/Session/Serialize
  52. %dir %{perl_vendorlib}/CGI/Session/Test
  53. %changelog
  54. * Thu Nov 12 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.42-1
  55. - new upstream release
  56. - applied new versioning policy
  57. * Wed Jan 02 2008 Shu KONNO <owa@bg.wakwak.com> 4.14-0vl3
  58. - rebuilt
  59. * Thu Nov 30 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.14-0vl1
  60. - updated to 4.14
  61. - changed Group to Development/Libraries
  62. * Fri Sep 9 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.02-0vl1
  63. - updated to 4.02
  64. - use vendor_perl dir
  65. * Mon Apr 28 2003 IWAI Masaharu <iwai@alib.jp> 3.93-0vl1
  66. - first build for Vine Linux