forked from pool/apache2-mod_perl
Accepting request 54192 from Apache:Modules
Accepted submit request 54192 from user coolo OBS-URL: https://build.opensuse.org/request/show/54192 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache2-mod_perl?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 25 18:09:09 UTC 2010 - chris@computersalat.de
|
||||||
|
|
||||||
|
- fix perl_process_packlist stuff
|
||||||
|
o remove .packlist, perllocal.pod files
|
||||||
|
- cleanupo spec
|
||||||
|
o replace 'mkdir -p' with 'install -d' or 'install -D'
|
||||||
|
o macros
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 5 12:02:09 UTC 2010 - coolo@novell.com
|
Fri Mar 5 12:02:09 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@@ -111,7 +111,7 @@ software depending on apache2-mod_perl.
|
|||||||
find -name ".svn" -type d | xargs rm -rfv
|
find -name ".svn" -type d | xargs rm -rfv
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL MP_APXS=`which %{apxs}` MP_CCOPTS="$(%{apxs} -q CFLAGS)"
|
perl Makefile.PL INSTALLDIRS=vendor MP_APXS=`which %{apxs}` MP_CCOPTS="$(%{apxs} -q CFLAGS)"
|
||||||
ln -s Apache-mod_perl_guide-1.29/bin bin
|
ln -s Apache-mod_perl_guide-1.29/bin bin
|
||||||
make
|
make
|
||||||
# XXX mod_include/SSI does not include files when they are not named .shtml
|
# XXX mod_include/SSI does not include files when they are not named .shtml
|
||||||
@@ -167,14 +167,31 @@ t/TEST -stop-httpd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%perl_make_install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
### since 11.4 perl_process_packlist
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir}
|
### removes .packlist, perllocal.pod files
|
||||||
cp -p src/modules/perl/mod_perl.so $RPM_BUILD_ROOT/%{apache_libexecdir}
|
%if 0%{?suse_version} > 1130
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{apache_includedir}/modules/perl
|
|
||||||
cp src/modules/perl/*.h $RPM_BUILD_ROOT/%{apache_includedir}/modules/perl/
|
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d
|
%else
|
||||||
|
# do not perl_process_packlist
|
||||||
|
# remove .packlist file
|
||||||
|
find $RPM_BUILD_ROOT%perl_vendorarch/auto -name .packlist -print0 | xargs -0 -r rm ;
|
||||||
|
# remove perllocal.pod file
|
||||||
|
%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod
|
||||||
|
%endif
|
||||||
|
|
||||||
|
#mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir}
|
||||||
|
#cp -p src/modules/perl/mod_perl.so $RPM_BUILD_ROOT/%{apache_libexecdir}
|
||||||
|
%{__install} -D src/modules/perl/mod_perl.so \
|
||||||
|
$RPM_BUILD_ROOT/%{apache_libexecdir}/mod_perl.so
|
||||||
|
|
||||||
|
#mkdir -p $RPM_BUILD_ROOT/%{apache_includedir}/modules/perl
|
||||||
|
%{__install} -d $RPM_BUILD_ROOT/%{apache_includedir}/modules/perl
|
||||||
|
%{__cp} src/modules/perl/*.h $RPM_BUILD_ROOT/%{apache_includedir}/modules/perl/
|
||||||
|
|
||||||
|
#mkdir -p $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d
|
||||||
|
%{__install} -d $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d
|
||||||
|
|
||||||
cat > $RPM_BUILD_ROOT/%{apache_sysconfdir}/mod_perl-startup.pl <<-EOF
|
cat > $RPM_BUILD_ROOT/%{apache_sysconfdir}/mod_perl-startup.pl <<-EOF
|
||||||
# Taken from http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File
|
# Taken from http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File
|
||||||
if ( ! \$ENV{MOD_PERL}) { die "GATEWAY_INTERFACE not Perl!"; }
|
if ( ! \$ENV{MOD_PERL}) { die "GATEWAY_INTERFACE not Perl!"; }
|
||||||
@@ -198,7 +215,10 @@ cat > $RPM_BUILD_ROOT/%{apache_sysconfdir}/mod_perl-startup.pl <<-EOF
|
|||||||
use APR::Const -compile => ':common';
|
use APR::Const -compile => ':common';
|
||||||
1;
|
1;
|
||||||
EOF
|
EOF
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{apache_serverroot}/perl-lib
|
|
||||||
|
#mkdir -p $RPM_BUILD_ROOT/%{apache_serverroot}/perl-lib
|
||||||
|
%{__install} -d $RPM_BUILD_ROOT/%{apache_serverroot}/perl-lib
|
||||||
|
|
||||||
cat > $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d/mod_perl.conf <<EOF
|
cat > $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d/mod_perl.conf <<EOF
|
||||||
<Directory "%{apache_serverroot}/perl-lib">
|
<Directory "%{apache_serverroot}/perl-lib">
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
@@ -229,12 +249,10 @@ cat > $RPM_BUILD_ROOT/%{apache_sysconfdir}/conf.d/mod_perl.conf <<EOF
|
|||||||
# vim: ft=apache
|
# vim: ft=apache
|
||||||
EOF
|
EOF
|
||||||
# install documentation files alongside perl modules, where applicable
|
# install documentation files alongside perl modules, where applicable
|
||||||
cp -av docs/api/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/
|
%{__cp} -av docs/api/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/
|
||||||
cp -av docs/api/APR/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/APR/
|
%{__cp} -av docs/api/APR/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/APR/
|
||||||
cp -av docs/api/Apache2/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/Apache2/
|
%{__cp} -av docs/api/Apache2/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/Apache2/
|
||||||
cp -av docs/api/ModPerl/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/ModPerl/
|
%{__cp} -av docs/api/ModPerl/*.pod $RPM_BUILD_ROOT/%{perl_vendorarch}/ModPerl/
|
||||||
# remove unwanted files
|
|
||||||
find $RPM_BUILD_ROOT/%{perl_sitearch} -name .packlist | xargs --no-run-if-empty rm -v
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@@ -242,7 +260,6 @@ find $RPM_BUILD_ROOT/%{perl_sitearch} -name .packlist | xargs --no-run-if-empty
|
|||||||
%doc docs
|
%doc docs
|
||||||
%dir %{apache_libexecdir}
|
%dir %{apache_libexecdir}
|
||||||
%{apache_libexecdir}/mod_perl.so
|
%{apache_libexecdir}/mod_perl.so
|
||||||
/var/adm/perl-modules/%{name}
|
|
||||||
%config(noreplace) %{apache_sysconfdir}/mod_perl-startup.pl
|
%config(noreplace) %{apache_sysconfdir}/mod_perl-startup.pl
|
||||||
%config(noreplace) %{apache_sysconfdir}/conf.d/mod_perl.conf
|
%config(noreplace) %{apache_sysconfdir}/conf.d/mod_perl.conf
|
||||||
%dir %{apache_serverroot}/perl-lib
|
%dir %{apache_serverroot}/perl-lib
|
||||||
|
Reference in New Issue
Block a user