]> git.pld-linux.org Git - packages/apache1-mod_perl.git/commitdiff
- added -optimize patch to make it --debug friendly
authorradek <radek@pld-linux.org>
Fri, 21 Nov 2003 16:06:35 +0000 (16:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- don't BR:perl, used perl-devel instead; sorted BR's
- use the __perl macro
- killed one subshell

Changed files:
    apache1-mod_perl.spec -> 1.6

apache1-mod_perl.spec

index 03e0735a36c709e88e0f101e6347b9b1c5df8fac..961e38816be9b983b5425ccbb5aa07b26449b8ce 100644 (file)
@@ -31,18 +31,19 @@ Source0:    http://perl.apache.org/dist/mod_perl-%{version}.tar.gz
 Patch0:                apache-perl-rh.patch
 # from ftp://ftp.kddlabs.co.jp/Linux/packages/Kondara/pub/Jirai/
 Patch1:                mod_perl-v6.patch
+Patch2:                %{name}-optimize.patch
 URL:           http://perl.apache.org/
+BuildRequires: %{apxs}
 BuildRequires: apache(EAPI)-devel
-BuildRequires: perl >= 5.8.0
 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.8.0
 BuildRequires: perl-libwww
 BuildRequires: rpm-perlprov >= 4.1-13
-BuildRequires: %{apxs}
 PreReq:                apache(EAPI)
 Requires(post,preun):  %{apxs}
 Provides:      perl(mod_perl_hooks)
@@ -185,18 +186,22 @@ Apache web 
 %setup  -q -n mod_perl-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
-perl Makefile.PL \
+%{__perl} Makefile.PL \
        USE_APXS=1 \
        WITH_APXS=%{apxs} \
        EVERYTHING=1 \
        PERL_STACKED_HANDLERS=1 \
+       OPTIMIZE="%{rpmcflags}" \
        INSTALLDIRS=vendor
 
-(cd apaci; ln -s ../src/modules .; chmod +x find_source)
-%{__make}
+ln -s ../src/modules apaci/modules
+chmod +x apaci/find_source
 
+%{__make} \
+       OPTIMIZE="%{rpmcflags}"
 %{__make} -C faq
 
 %install
This page took 0.092677 seconds and 4 git commands to generate.