perl-PHP-Session-vl.spec 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Name: perl-PHP-Session
  2. Version: 0.27
  3. Release: 2%{?_dist_release}
  4. Summary: read / write PHP session files
  5. License: GPL+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/PHP-Session/
  8. Source0: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/PHP-Session-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. BuildRequires: perl(Test::More) >= 0.32
  13. BuildRequires: perl(UNIVERSAL::require) >= 0.03
  14. Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
  15. Requires: perl(Test::More) >= 0.32
  16. Requires: perl(UNIVERSAL::require) >= 0.03
  17. %description
  18. PHP::Session provides a way to read / write PHP4 session files, with
  19. which you can make your Perl application session shared with PHP4.
  20. If you like Apache::Session interface for session management, there is
  21. a glue for Apache::Session of this module, Apache::Session::PHP.
  22. %prep
  23. %setup -q -n PHP-Session-%{version}
  24. %build
  25. perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PREFIX='/usr'
  26. make %{?_smp_mflags}
  27. %install
  28. rm -rf %{buildroot}
  29. make pure_install DESTDIR=%{buildroot}
  30. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  31. find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
  32. %{_fixperms} %{buildroot}
  33. %check
  34. make test
  35. %clean
  36. rm -rf %{buildroot}
  37. %files
  38. %doc Changes README
  39. %{perl_vendorlib}/*
  40. %{_mandir}/man3/*
  41. %changelog
  42. * Tue Nov 25 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.27-2
  43. - rebuilt with perl 5.16.3
  44. * Tue Mar 13 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.27-1
  45. - initial build for Vine Linux