perl-CGI-Session-vl.spec 2.4 KB

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