mod_perl2-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Summary: An embedded Perl interpreter for the Apache Web server Version 2
  2. Summary(ja): Apache2 Web サーバ用 組み込み Perl インタプリタ
  3. Name: mod_perl2
  4. Version: 2.0.4
  5. Release: 2%{?_dist_release}
  6. URL: http://perl.apache.org/
  7. Source0: http://perl.apache.org/dist/mod_perl-%{version}.tar.gz
  8. Source1: perl.conf
  9. Source2: filter-requires.sh
  10. Source3: filter-provides.sh
  11. License: The Apache Software License, Version 2.0
  12. Group: System Environment/Daemons
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: apache2-devel >= 2.0.51
  15. BuildRequires: perl >= 5.6.0
  16. %define __find_requires %{SOURCE2}
  17. %define __find_provides %{SOURCE3}
  18. %description
  19. Mod_perl incorporates a Perl interpreter into the Apache web server,
  20. so that the Apache web server can directly execute Perl code.
  21. Mod_perl links the Perl runtime library into the Apache web server and
  22. provides an object-oriented Perl interface for Apache's C language
  23. API. The end result is a quicker CGI script turnaround process, since
  24. no external Perl interpreter has to be started.
  25. Install mod_perl if you're installing the Apache web server and you'd
  26. like for it to directly incorporate a Perl interpreter.
  27. %prep
  28. %setup -q -n mod_perl-%{version}
  29. %build
  30. perl Makefile.PL PREFIX=%{buildroot}/usr \
  31. MP_APXS=%{_bindir}/apxs \
  32. INSTALLDIRS=vendor
  33. make
  34. %install
  35. rm -rf %{buildroot}
  36. %makeinstall \
  37. MODPERL_AP_INCLUDEDIR=%{buildroot}%{_includedir}/apache2 \
  38. MODPERL_AP_LIBEXECDIR=%{buildroot}%{_libdir}/apache2/modules
  39. install -d -m 755 %{buildroot}%{_sysconfdir}/apache2/conf.d
  40. install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/apache2/conf.d/
  41. find %{buildroot} -type f -name perllocal.pod -exec rm -f {} ';'
  42. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  43. chmod -R u+w %{buildroot}/*
  44. %clean
  45. rm -rf %{buildroot}
  46. %files
  47. %defattr(-,root,root)
  48. %doc Changes INSTALL LICENSE README* STATUS SVN-MOVE docs
  49. %config(noreplace) %{_sysconfdir}/apache2/conf.d/*.conf
  50. %{_bindir}/*
  51. %{_mandir}/man3/*
  52. %{_includedir}/apache2/mod_perl*
  53. %{_includedir}/apache2/modperl*
  54. %{_libdir}/apache2/modules/mod_perl.so
  55. %{perl_vendorarch}/*.pm
  56. %{perl_vendorarch}/APR
  57. %{perl_vendorarch}/Apache
  58. %{perl_vendorarch}/Apache2
  59. %{perl_vendorarch}/Bundle
  60. %{perl_vendorarch}/ModPerl
  61. %{perl_vendorarch}/auto
  62. %changelog
  63. * Sun Oct 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.4-2
  64. - rebuilt with openldap-2.4.16
  65. * Fri Jan 23 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.4-1
  66. - new upstream release
  67. - new versioning policy
  68. - add default config file (SOURCE1) and prov/req filters (SOURCE2/3)
  69. - install under vendor_perl dir instead of site_perl
  70. * Mon Sep 22 2003 IWAI, Masaharu <iwai@alib.jp> 1.99_09-0vl1
  71. - Initial build.