ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/mod_perl2.spec
(Generate patch)

Comparing COMP/CMSDIST/mod_perl2.spec (file contents):
Revision 1.1 by egeland, Tue Feb 5 18:26:23 2008 UTC vs.
Revision 1.4 by egeland, Mon Feb 25 19:28:59 2008 UTC

# Line 1 | Line 1
1   ### RPM external mod_perl2 2.0.3
2   ## INITENV +PATH PERL5LIB %i/lib/site_perl/%perlversion
3  
4 + %define perlversion %(perl -e 'printf "%%vd", $^V')
5 + %define perlarch %(perl -MConfig -e 'print $Config{archname}')
6 +
7   # See http://perl.apache.org/docs/2.0/user/install/install.html
8  
9   Source0: http://perl.apache.org/dist/mod_perl-%realversion.tar.gz
# Line 29 | Line 32 | make
32   %install
33   make install
34  
35 + mkdir -p %i/conf
36 + cat << \EOF > %i/conf/mod_perl2.conf
37 + LoadModule perl_module %i/modules/mod_perl.so
38 + # Additional configuration bits go here.
39 + EOF
40 +
41   # By default mod_perl.so and include/ directory is moved to the
42   # $APACHE2_ROOT/modules and $APACHE2_ROOT/include, respectively, which
43   # is bad for us handling multiple versions in a rpm. With
# Line 37 | Line 46 | make install
46   # move these resources back to a sane location and clean up.
47   mv %i/$APACHE2_ROOT/* %i
48   rm -r %i/$(echo $APACHE2_ROOT | sed 's|^/||' | cut -d/ -f1)
49 +
50 + %post
51 + %{relocateConfig}conf/mod_perl2.conf

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines