Summary(uk): íÏÄÕÌØ ×ÂÕÄÏ×Õ×ÁÎÎÑ ¦ÎÔÅÒÐÒÅÔÁÔÏÒÁ Perl × ÓÅÒ×ÅÒ Apache
Summary(zh_CN): ÓÃÓÚ Apache web ·þÎñ³ÌÐòµÄ Perl ½âÊͳÌÐò¡£
Name: apache-mod_perl
-Version: 2.0.0
-#%define _rc RC6
-Release: 0.9
+Version: 2.0.2
+Release: 2
Epoch: 1
License: Apache
Group: Networking/Daemons
Source0: http://perl.apache.org/dist/mod_perl-%{version}.tar.gz
-# Source0-md5: 99325d82e2c42361123f6a242e57a593
+# Source0-md5: ad0a509fd34e3b8452887d80a1d45dea
Source1: %{name}.conf
Patch0: %{name}-Makefile_PL.patch
URL: http://perl.apache.org/
-BuildRequires: apache-devel >= 2.0.0
+BuildRequires: apache-devel >= 2.0.55-1
BuildRequires: apr-util-devel >= 1:1.0.0
BuildRequires: expat-devel
BuildRequires: gdbm-devel
BuildRequires: openldap-devel
BuildRequires: perl-devel >= 1:5.8.2
-# These modules aren't needed?
-#BuildRequires: perl-B-Graph
-#BuildRequires: perl-BSD-Resource
-#BuildRequires: perl-Devel-Symdump
-#BuildRequires: perl-HTML-Parser
-#BuildRequires: perl-MIME-Base64
-#BuildRequires: perl-URI
-#BuildRequires: perl-devel >= 5.6.1
-#BuildRequires: perl-libwww
BuildRequires: rpm-perlprov >= 3.0.3-16
-%requires_eq apache
+%requires_eq_to apache apache-devel
+Requires: apache(modules-api) = %apache_modules_api
Requires: perl(DynaLoader) = %(%{__perl} -MDynaLoader -e 'print DynaLoader->VERSION')
-Requires(post,preun): %{apxs}
# What's this for?
Provides: perl(mod_perl_hooks)
Provides: mod_perl
Provides: perl-Apache-Test
-# bugs in rpm perl dependency finder?
-Provides: perl(Apache::FunctionTable)
-Provides: perl(Apache::StructureTable)
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Obsoletes: mod_perl
Obsoletes: mod_perl-common
+Conflicts: perl-modules < 1:5.8.6-6
# TODO: separate -devel with ExtUtils::Embed and friends?
-%define _noautoreq 'perl(Apache::.*)' 'perl(mod_perl)' 'perl(ModPerl::.*)' 'perl(ExtUtils::Embed)'
+%define _noautoreq 'perl(Apache::.*)' 'perl(mod_perl)' 'perl(ModPerl::.*)' 'perl(ExtUtils::Embed)' 'perl(Module::Build)'
%define _sysconfdir %(%{apxs} -q SYSCONFDIR)
%define _pkglibdir %(%{apxs} -q LIBEXECDIR)
%prep
%setup -q -n mod_perl-%{version}
-%patch0 -p1 -b .orig
+%patch0 -p1
%build
%{__perl} Makefile.PL \
MP_APXS=%{apxs} \
MP_APR_CONFIG=%{_bindir}/apr-1-config \
- INSTALLDIRS=vendor \
- MP_CCOPTS="-I/usr/include/apache `apu-1-config --includes`"
+ MP_APU_CONFIG=%{_bindir}/apu-1-config \
+ INSTALLDIRS=vendor
%{__make} \
OPTIMIZE="%{rpmcflags}" \
DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name \*.orig -exec rm -f '{}' \;
-install xs/tables/current/Apache2/* $RPM_BUILD_ROOT/%{perl_vendorarch}/Apache2
-install xs/tables/current/APR/* $RPM_BUILD_ROOT/%{perl_vendorarch}/APR
-install xs/tables/current/ModPerl/* $RPM_BUILD_ROOT/%{perl_vendorarch}/ModPerl
+install xs/tables/current/Apache2/* $RPM_BUILD_ROOT%{perl_vendorarch}/Apache2
+install xs/tables/current/APR/* $RPM_BUILD_ROOT%{perl_vendorarch}/APR
+install xs/tables/current/ModPerl/* $RPM_BUILD_ROOT%{perl_vendorarch}/ModPerl
-rm -rf $RPM_BUILD_ROOT/%{perl_vendorarch}/Bundle/ApacheTest.pm
-rm -f $RPM_BUILD_ROOT/%{_mandir}/man?/Bundle::Apache2.3pm
-mv -f $RPM_BUILD_ROOT/%{perl_vendorarch}/Bundle/Apache3.pm $RPM_BUILD_ROOT/%{perl_vendorarch}/
+rm -rf $RPM_BUILD_ROOT%{perl_vendorarch}/Bundle
+rm -f $RPM_BUILD_ROOT%{_mandir}/man?/Bundle*
install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/75_mod_perl.conf
%clean
fi
fi
-
%files
%defattr(644,root,root,755)
%doc Changes INSTALL README STATUS
%attr(755,root,root) %{_pkglibdir}/*.so
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*.conf
%{perl_vendorarch}/*.pm
%{perl_vendorarch}/APR
%{perl_vendorarch}/Apache
%{perl_vendorarch}/Apache2
%{perl_vendorarch}/ModPerl
-%{perl_vendorarch}/Bundle
%dir %{perl_vendorarch}/auto/*
%{perl_vendorarch}/auto/*/*.bs