2024-01-05 20:29:10 +01:00
|
|
|
Name: apache-mod_perl
|
2024-01-05 20:29:10 +01:00
|
|
|
Version: 2.0.9.svn1572460
|
|
|
|
Release: 1mamba
|
2024-01-05 20:29:10 +01:00
|
|
|
Summary: Apache module interface to PERL
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 20:29:10 +01:00
|
|
|
# svn co http://svn.apache.org/repos/asf/perl/modperl/branches/httpd24/ -r 1572460
|
|
|
|
# mv httpd24/ httpd24-2.0.9.svn1572460
|
|
|
|
# tar cJf ../SOURCES/httpd24-2.0.9.svn1572460.tar.xz httpd24-2.0.9.svn1572460
|
|
|
|
#Source: http://perl.apache.org/dist/mod_perl-%{version}.tar.gz
|
|
|
|
Source: http://perl.apache.org/dist/httpd24-%{version}.tar.xz
|
2024-01-05 20:29:10 +01:00
|
|
|
URL: http://www.cpan.org
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libapr-devel
|
|
|
|
BuildRequires: libaprutil-devel
|
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: perl-BSD-Resource
|
|
|
|
BuildRequires: perl-Data-Flow
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: perl-Compress-Zlib
|
|
|
|
BuildRequires: apache-devel
|
|
|
|
BuildRequires: libsasl-devel
|
|
|
|
# Patches against apache 2.4 (see http://www.gossamer-threads.com/lists/modperl/dev/104676)
|
|
|
|
Patch0: 0001-fix-compile-with-httpd-trunk-and-AP_DEBUG.patch
|
|
|
|
Patch1: 0002-per-module-loglevel-config.patch
|
|
|
|
Patch2: 0003-adjust-test-to-new-error-log-format.patch
|
|
|
|
Patch8: 0009-Parse-PROXY-constants-and-search-for-APR_INCLUDEDIR-.patch
|
|
|
|
Patch10: 0011-Call-ap_reserve_module_slots_directive.patch
|
|
|
|
Patch11: 0012-Remove-OPT_INCNOEXEC.patch
|
|
|
|
Patch12: 0013-Fixed-logleve.patch
|
|
|
|
Patch13: 0014-Use-module-name-in-ap_add_loaded_module.patch
|
|
|
|
Patch14: 0015-unixd_config-renamed-to-ap_unixd_config.patch
|
|
|
|
Patch15: 0016-remote_ip-renamed-to-client_ip.patch
|
|
|
|
Patch16: 0017-remove-apu_error.h-include.patch
|
|
|
|
Patch17: 0018-svav_getstr-has-to-return-apr_status_t.patch
|
|
|
|
Patch18: 0019-Remove-proxy-from-constants.t.patch
|
|
|
|
Patch19: 0020-Link-APR.so-against-libaprutil-1.patch
|
|
|
|
Patch21: 0022-Use-APLOG_MODULE_INDEX-in-ap_log_error.patch
|
|
|
|
Patch22: 0023-Define-perl_module-in-Const.xs.patch
|
|
|
|
Patch23: 0024-Include-apu_errno.h.patch
|
|
|
|
Patch24: 0025-Include-also-from-INCLUDEDIR-disable-test_loglevel.patch
|
|
|
|
Patch25: 0026-Disable-LimitExcept.patch
|
|
|
|
Patch27: 0028-Set-DefaultRuntimeDir-to-run-and-create-it.patch
|
|
|
|
Requires: apache >= 2.0.48
|
|
|
|
Provides: perl(Apache2::FunctionTable), perl(Apache2::StructureTable)
|
|
|
|
Provides: perl(Apache::TestConfigParse), perl(Apache::TestConfigPerl)
|
|
|
|
Provides: perl-Apache-Reload
|
|
|
|
Obsoletes: perl-Apache-Reload
|
|
|
|
BuildRoot: %{_tmppath}/perl-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
Apache module interface to PERL.
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 20:29:10 +01:00
|
|
|
%setup -q -n httpd24-%{version}
|
|
|
|
#%patch0 -p1
|
|
|
|
#%patch1 -p1
|
|
|
|
##%patch2 -p1
|
|
|
|
##%patch8 -p1
|
|
|
|
#%patch10 -p1
|
|
|
|
##%patch11 -p1
|
|
|
|
##%patch12 -p1
|
|
|
|
##%patch13 -p1
|
|
|
|
##%patch14 -p1
|
|
|
|
##%patch15 -p1
|
|
|
|
##%patch16 -p1
|
|
|
|
##%patch17 -p1
|
|
|
|
#%patch18 -p1
|
|
|
|
#%patch19 -p1
|
|
|
|
##%patch21 -p1
|
|
|
|
#%patch22 -p1
|
|
|
|
##%patch23 -p1
|
|
|
|
##%patch24 -p1
|
|
|
|
##%patch25 -p1
|
|
|
|
#%patch27 -p1
|
2024-01-05 20:29:10 +01:00
|
|
|
|
|
|
|
%define _use_internal_dependency_generator 0
|
2024-01-05 20:29:10 +01:00
|
|
|
%define __find_provides %{_builddir}/httpd24-%{version}/find_provides.sh
|
2024-01-05 20:29:10 +01:00
|
|
|
|
|
|
|
cat > find_provides.sh << _EOF
|
|
|
|
#! /bin/sh
|
|
|
|
%{_prefix}/lib/rpm/find-provides %{buildroot} %{_target_cpu} | \
|
|
|
|
grep -v "perl(warnings)"
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
chmod +x find_provides.sh
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL \
|
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
MP_APXS=%{_bindir}/apxs \
|
|
|
|
MP_APR_CONFIG=%{_bindir}/apr-1-config \
|
|
|
|
INSTALLDIRS=vendor
|
|
|
|
|
|
|
|
%make
|
|
|
|
##% make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
mkdir -p %{buildroot}%{_includedir}/apache
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/apache
|
|
|
|
|
|
|
|
%makeinstall_perl \
|
|
|
|
MODPERL_AP_INCLUDEDIR=%{_includedir}/apache \
|
|
|
|
MODPERL_AP_LIBEXECDIR=%{_libdir}/apache
|
|
|
|
packlist=`find %{buildroot} -name .packlist`
|
|
|
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
|
|
|
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
|
|
|
|
sort -u > .packlist && rm $packlist
|
|
|
|
|
|
|
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
|
|
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
|
|
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
rm -f .packlist
|
|
|
|
|
|
|
|
%post -n apache-mod_perl
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
#install
|
|
|
|
apxs -e -a -n perl %{_libdir}/apache/mod_perl.so
|
|
|
|
# sed -i -e "/^AddType image\/x-icon .*/a\
|
|
|
|
#AddType application/x-httpd-php .php" /etc/httpd/httpd.conf
|
|
|
|
test -e /var/lock/subsys/httpd &&
|
|
|
|
%{_initrddir}/httpd restart
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
#erase
|
|
|
|
apxs -e -A -n perl %{_libdir}/apache/mod_perl.so
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 1 ]; then
|
|
|
|
#upgrade
|
|
|
|
test -e /var/lock/subsys/httpd &&
|
|
|
|
%{_initrddir}/httpd restart
|
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/apache/*
|
|
|
|
%{_libdir}/apache/mod_perl.so
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 20:29:10 +01:00
|
|
|
* Sun Oct 05 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.9.svn1572460-1mamba
|
|
|
|
- update to 2.0.9.svn1572460
|
|
|
|
|
2024-01-05 20:29:10 +01:00
|
|
|
* Thu Nov 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.7-2mamba
|
|
|
|
- perl 5.16 mass rebuild
|
|
|
|
|
|
|
|
* Wed Jun 06 2012 Automatic Build System <autodist@mambasoft.it> 2.0.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu Apr 26 2012 Automatic Build System <autodist@mambasoft.it> 2.0.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Feb 14 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.5-2mamba
|
|
|
|
- obsolete perl-Apache-Reload
|
|
|
|
|
|
|
|
* Tue Feb 08 2011 Automatic Build System <autodist@mambasoft.it> 2.0.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Jan 01 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.4-3mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.4-2mamba
|
|
|
|
- rebuilt with perl 5.10
|
|
|
|
|
|
|
|
* Thu Jun 12 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.4-1mamba
|
|
|
|
- update to 2.0.4
|
|
|
|
|
|
|
|
* Thu Nov 15 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.3-1mamba
|
|
|
|
- update to 2.0.3
|
|
|
|
|
|
|
|
* Mon Nov 22 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-2qilnx
|
|
|
|
- rebuilt with perl 5.8.5
|
|
|
|
|
|
|
|
* Mon Nov 15 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-1qilnx
|
|
|
|
- new version build
|
|
|
|
- remove provide of perl(warning)
|
|
|
|
|
|
|
|
* Thu Jul 01 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.99_12-3qilnx
|
|
|
|
- specfile modified using the new perl template for QiLinux perl specfiles
|
|
|
|
|
|
|
|
* Thu Jan 08 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.99_12-2qilnx
|
|
|
|
- rebuild with Perl 5.8.2
|
|
|
|
|
|
|
|
* Fri Jan 02 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.99_12-1qilnx
|
|
|
|
- updated to version 1.99._12, Perl 5.8.1 compatible (see the "hash seed"
|
|
|
|
feature in Perl 5.8.1 to avoid "algorithmic complexity attacks")
|
|
|
|
- rebuild with Perl 5.8.1
|
|
|
|
- specfile updated, added missing requirements and provides entries
|
|
|
|
- security fix: only restart httpd daemon if it's running
|
|
|
|
- fix typo in preun script (apsx versus apxs)
|
|
|
|
|
|
|
|
* Mon Sep 15 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 1.99_09-1qilnx
|
|
|
|
- first build
|