Репозитории ALT
S: | 2.0.11-alt3 |
5.1: | 2.0.4-alt1 |
4.1: | 2.0.3-alt5 |
4.0: | 2.0.3-alt5 |
Группа :: Система/Серверы
Пакет: apache2-mod_perl
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# Spec file for mod_perl2 module for Apache 2.0 server
%define real_name mod_perl
%define module_name perl
%define version 2.0.4
%define release alt1
%define public_release NO
%define inside_bte %defined __BTE
Name: apache2-mod_perl
Version: %version
Release: %release
Summary: an embedded Perl interpreter for the Apache2 Web server
Summary(ru_RU.UTF-8): п╡я│я┌я─п╬п╣п╫п╫я▀п╧ п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─ Perl п╢п╩я▐ п╡п╣п╠-я│п╣я─п╡п╣я─п╟ Apache2
License: Apache License v. 2.0
Group: System/Servers
URL: http://perl.apache.org/
Packager: Nikolay A. Fetisov <naf at altlinux.ru>
Source: http://perl.apache.org/dist/%real_name-%version.tar.bz2
Source1: perl.load
Source2: perl.conf
Source3: perl.start
Source4: Apache-Test.tar
Source5: docs.tar
Patch0: mod_perl-2.0.2-multilib.patch
Patch1: %name-2.0.3-alt-perl_5.8.8_alt7.patch
Patch2: %name-2.0.4-tests-apache_util.patch
Patch3: %name-2.0.4-tests-hooks_authz.patch
Patch11: %name-2.0.3-alt-tests-uploads.patch
BuildRequires(pre): perl-base >= 5.6.1, perl-devel
BuildRequires(pre): apache2-devel >= 2.2.5
# Automatically added by buildreq on Thu Dec 11 2008
BuildRequires: apache-mod_perl-base perl-DBI perl-libwww perl-threads
BuildRequires: %(eval echo %apache2_apr_buildreq)
BuildRequires: libgdbm-devel libexpat-devel
BuildRequires: perl-Math-BigInt, perl-HTML-Parser, perl-BSD-Resource
BuildRequires: perl-Compress-Zlib, perl-CGI, perl-Encode
Requires(pre): apache2 >= %apache2_version-%apache2_release
Provides: mod_perl = %version
%description
Mod_perl incorporates a Perl interpreter into the Apache web
server, so that the Apache web server can directly execute Perl
code.
Mod_perl provides an object-oriented Perl interface for Apache's
C language API and allows to manage Apache, respond to requests
for web pages and much more. The end result is a quicker CGI
script turnaround process, since no external Perl interpreter
has to be started.
Install mod_perl if you're installing the Apache web server and
you'd like for it to directly incorporate a Perl interpreter.
%description -l ru_RU.UTF-8
Mod_perl п╡я│я┌я─п╟п╦п╡п╟п╣я┌ п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─ Perl п╡ п╡п╣п╠-я│п╣я─п╡п╣я─ Apache,
п©п╬п╥п╡п╬п╩я▐я▐ п╡п╣п╠ я│п╣я─п╡п╣я─я┐ п╫п╣п©п╬я│я─п╣п╢я│я┌п╡п╣п╫п╫п╬ п╦я│п©п╬п╩п╫я▐я┌я▄ п╨п╬п╢ п╫п╟ Perl.
Mod_perl п©я─п╣п╢п╬я│я┌п╟п╡п╩я▐п╣я┌ п╬п╠я┼п╣п╨я┌п╫п╬-п╬я─п╦п╣п╫я┌п╦я─п╬п╡п╟п╫п╫я▀п╧ п╦п╫я┌п╣я─я└п╣п╧я│ п╫п╟
Perl п╨ п╡п╫я┐я┌я─п╣п╫п╫п╣п╪я┐ API Apache п╦ п©п╬п╥п╡п╬п╩я▐п╣я┌ я┐п©я─п╟п╡п╩я▐я┌я▄ Apache,
п╬я┌п╡п╣я┤п╟я┌я▄ п╫п╟ п╥п╟п©я─п╬я│я▀ п╡п╣п╠-я│я┌я─п╟п╫п╦я├ п╦ п╪п╫п╬пЁп╬п╣ п╢я─я┐пЁп╬п╣. п▓ п╨п╬п╫п╣я┤п╫п╬п╪
п╦я┌п╬пЁп╣, п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╫п╦п╣ mod_perl п©п╬п╥п╡п╬п╩я▐п╣я┌ я┐я│п╨п╬я─п╦я┌я▄ п╡я▀п©п╬п╩п╫п╣п╫п╦п╣
CGI-я│п╨я─п╦п©я┌п╬п╡, я┌п╟п╨ п╨п╟п╨ п╦я│п╨п╩я▌я┤п╟п╣я┌ п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬я│я┌я▄ п╡ п╡я▀п╥п╬п╡п╟я┘
п╡п╫п╣я┬п╫п╣пЁп╬ п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─п╟ Perl.
Mod_perl п╪п╬п╤п╣я┌ п╠я▀я┌я▄ п©п╬п╩п╣п╥п╣п╫, п╣я│п╩п╦ п▓я▀ я┐я│я┌п╟п╫п╬п╡п╦п╩п╦ п╡п╣п╠-я│п╣я─п╡п╣я─
Apache п╦ п▓п╟п╪ п╫я┐п╤п╫п╟ п╦п╫я┌п╣пЁя─п╦я─п╬п╡п╟п╫п╫п╟я▐ п©п╬п╢п╢п╣я─п╤п╨п╟ Perl п╡ п╫я▒п╪.
%package devel
Summary: files needed for building XS modules that use mod_perl
Summary(ru_RU.UTF-8): я└п╟п╧п╩я▀ п╢п╩я▐ я│п╠п╬я─п╨п╦ п╪п╬п╢я┐п╩п╣п╧ Perl, п╦я│п©п╬п╩я▄п╥я┐я▌я┴п╦я┘ mod_perl
Group: Development/C
Requires: %name = %{version}-%{release}, apache2-devel
Provides: %name-devel = %version-%release
Obsoletes: %name-devel
%description devel
Mod_perl incorporates a Perl interpreter into the Apache web
server, so that the Apache web server can directly execute
Perl code.
This package contains the files needed for building XS modules
that use mod_perl.
%description devel -l ru_RU.UTF-8
Mod_perl п╡я│я┌я─п╟п╦п╡п╟п╣я┌ п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─ Perl п╡ п╡п╣п╠-я│п╣я─п╡п╣я─ Apache,
п©п╬п╥п╡п╬п╩я▐я▐ п╡п╣п╠ я│п╣я─п╡п╣я─я┐ п╫п╣п©п╬я│я─п╣п╢я│я┌п╡п╣п╫п╫п╬ п╦я│п©п╬п╩п╫я▐я┌я▄ п╨п╬п╢ п╫п╟ Perl.
п■п╟п╫п╫я▀п╧ п©п╟п╨п╣я┌ я│п╬п╢п╣я─п╤п╦я┌ я└п╟п╧п╩я▀, п╫п╣п╬п╠я┘п╬п╢п╦п╪я▀п╣ п╢п╩я▐ я─п╟п╥я─п╟п╠п╬я┌п╨п╦
XS-п╪п╬п╢я┐п╩п╣п╧ п╫п╟ Perl, п╦я│п©п╬п╩я▄п╥я┐я▌я┴п╦я┘ mod_perl.
%package doc
Summary: mod_perl2 Apache module documentation
Summary(ru_RU.UTF-8): п╢п╬п╨я┐п╪п╣п╫я┌п╟я├п╦я▐ п╨ п╪п╬п╢я┐п╩я▌ Apache mod_perl2
Group: Documentation
Requires: %name = %{version}-%{release}
Provides: %name-doc = %version-%release
Obsoletes: %name-doc
%description doc
Mod_perl incorporates a Perl interpreter into the Apache web
server, so that the Apache web server can directly execute
Perl code.
This package contains the documentation for mod_perl Apache2
module.
%description doc -l ru_RU.UTF-8
Mod_perl п╡я│я┌я─п╟п╦п╡п╟п╣я┌ п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─ Perl п╡ п╡п╣п╠-я│п╣я─п╡п╣я─ Apache,
п©п╬п╥п╡п╬п╩я▐я▐ п╡п╣п╠ я│п╣я─п╡п╣я─я┐ п╫п╣п©п╬я│я─п╣п╢я│я┌п╡п╣п╫п╫п╬ п╦я│п©п╬п╩п╫я▐я┌я▄ п╨п╬п╢ п╫п╟ Perl.
п■п╟п╫п╫я▀п╧ п©п╟п╨п╣я┌ я│п╬п╢п╣я─п╤п╦я┌ п╢п╬п╨я┐п╪п╣п╫я┌п╟я├п╦я▌ п╨ п╪п╬п╢я┐п╩я▌ mod_perl.
###########################
# Building mod_perl in incoming's hasher environment
# causes an sporadic and eventual errors during
# extensive test load. Disabling test for public releases.
%ifdef __BTE
%ifdef public_release
%def_without test
%endif
%endif
# Skip dependence search for some modules
%add_findreq_skiplist */Test/Builder.pm */Apache/Test.pm
%add_findreq_skiplist */Apache/TestConfig.pm */Apache/TestConfigC.pm
%add_findreq_skiplist */Apache/TestConfigParse.pm */Apache/TestConfigPerl.pm
%add_findreq_skiplist */Apache/TestHarness.pm */Apache/TestMM.pm
%add_findreq_skiplist */Apache/TestRequest.pm */Apache/TestRun.pm
%add_findreq_skiplist */Apache/TestClient.pm */Apache/TestMB.pm
%add_findreq_skiplist */Apache/TestServer.pm
%add_findreq_skiplist */Apache2/SourceTables.pm */Apache2/compat.pm
%add_findreq_skiplist */Apache2/SizeLimit.pm */Apache2/Resource.pm
%add_findreq_skiplist */ModPerl/CScan.pm */ModPerl/Code.pm
%add_findreq_skiplist */ModPerl/RegistryLoader.pm
%prep
%setup -q -n %real_name-%version
/bin/tar xvf %SOURCE4
/bin/tar xvf %SOURCE5
%patch0 -p1
# Remove tests
%patch2
%patch3
[[ "%inside_bte" == "1" ]] && patch -p0 < %PATCH11
mv -f -- LICENSE LICENSE.orig
ln -s -- $(relative %_licensedir/Apache-2.0 %_docdir/%name/LICENSE) LICENSE
%build
%perl_vendor_build MP_APXS=%apache2_apxs MP_APR_CONFIG=%apache2_apr_config
%install
%perl_vendor_install UNINST=0
# Install the config file
install -d -m 755 -- $RPM_BUILD_ROOT%apache2_mods_available
install -d -m 755 -- $RPM_BUILD_ROOT%apache2_mods_start
install -p -m 644 -- %SOURCE1 $RPM_BUILD_ROOT%apache2_mods_available/%module_name.load
install -p -m 644 -- %SOURCE2 $RPM_BUILD_ROOT%apache2_mods_available/%module_name.conf
subst 's, at a_libexecdir at ,%apache2_libexecdir,g' $RPM_BUILD_ROOT%apache2_mods_available/%module_name.load
install -p -m 644 -- %SOURCE3 $RPM_BUILD_ROOT%apache2_mods_start/100-%module_name.conf
# Install missed modules from install script
install -p -m 644 -- xs/tables/current/APR/FunctionTable.pm $RPM_BUILD_ROOT%perl_vendor_archlib/APR/FunctionTable.pm
install -p -m 644 -- xs/tables/current/Apache2/ConstantsTable.pm $RPM_BUILD_ROOT%perl_vendor_archlib/Apache2/ConstantsTable.pm
install -p -m 644 -- xs/tables/current/Apache2/FunctionTable.pm $RPM_BUILD_ROOT%perl_vendor_archlib/Apache2/FunctionTable.pm
install -p -m 644 -- xs/tables/current/Apache2/StructureTable.pm $RPM_BUILD_ROOT%perl_vendor_archlib/Apache2/StructureTable.pm
install -p -m 644 -- xs/tables/current/ModPerl/FunctionTable.pm $RPM_BUILD_ROOT%perl_vendor_archlib/ModPerl/FunctionTable.pm
%post
# Reconfigure Apache2:
%apache2_sbindir/a2chkconfig ||:
if [ -e %apache2_mods_enabled/%module_name.load ]; then
CONF_OK=0
%apache2_sbindir/apachectl2 configtest && CONF_OK=1 ||:
if [ "$CONF_OK" = "1" ]; then
service %apache2_dname condrestart ||:
else
echo "Some errors detected in Apache2 configuration!"
echo "To use %real_name check configuration and start %apache2_dname service."
echo
fi
else
echo "Apache2 %real_name module had been installed, but does't enabled."
echo "Check %apache2_mods_start directory for files with '%module_name=no' lines."
echo
fi
%preun
if [ "$1" = "0" ] ; then # last uninstall
[ -e %apache2_mods_enabled/%module_name.load ] && %apache2_sbindir/a2dismod %module_name 2>&1 >/dev/null ||:
fi
%postun
# Reconfigure Apache2:
%apache2_sbindir/a2chkconfig ||:
if [ "$1" = "0" ] ; then # last uninstall
CONF_OK=0
%apache2_sbindir/apachectl2 configtest && CONF_OK=1 ||:
if [ "$CONF_OK" = "1" ]; then
service %apache2_dname condrestart ||:
else
echo "Some errors detected in Apache2 configuration!"
echo "To complete %real_name uninstalling check configuration and restart %apache2_dname service."
echo
fi
fi
%files
%doc Changes README
%doc --no-dereference LICENSE
%config(noreplace) %apache2_mods_available/%module_name.conf
%config %apache2_mods_available/%module_name.load
%config %apache2_mods_start/100-%module_name.conf
%_bindir/mp2bug
%apache2_libexecdir/%real_name.so
%perl_vendor_archlib/mod_perl2.pm
%perl_vendor_archlib/Apache/*
%perl_vendor_archlib/Apache2/*
%perl_vendor_archlib/Bundle/*
%perl_vendor_archlib/APR*
%perl_vendor_archlib/ModPerl*
%perl_vendor_autolib/mod_perl2*
%perl_vendor_autolib/Apache2*
%perl_vendor_autolib/ModPerl*
%perl_vendor_autolib/APR*
%exclude %_man3dir/*
%files devel
%doc SVN-MOVE BRANCHING README-SVN RELEASE STATUS
%apache2_includedir/mod_perl.h
%apache2_includedir/modperl_*.h
%files doc
%doc docs/*
%changelog
…
Полный changelog можно просмотреть здесь
%define real_name mod_perl
%define module_name perl
%define version 2.0.4
%define release alt1
%define public_release NO
%define inside_bte %defined __BTE
Name: apache2-mod_perl
Version: %version
Release: %release
Summary: an embedded Perl interpreter for the Apache2 Web server
Summary(ru_RU.UTF-8): п╡я│я┌я─п╬п╣п╫п╫я▀п╧ п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─ Perl п╢п╩я▐ п╡п╣п╠-я│п╣я─п╡п╣я─п╟ Apache2
License: Apache License v. 2.0
Group: System/Servers
URL: http://perl.apache.org/
Packager: Nikolay A. Fetisov <naf at altlinux.ru>
Source: http://perl.apache.org/dist/%real_name-%version.tar.bz2
Source1: perl.load
Source2: perl.conf
Source3: perl.start
Source4: Apache-Test.tar
Source5: docs.tar
Patch0: mod_perl-2.0.2-multilib.patch
Patch1: %name-2.0.3-alt-perl_5.8.8_alt7.patch
Patch2: %name-2.0.4-tests-apache_util.patch
Patch3: %name-2.0.4-tests-hooks_authz.patch
Patch11: %name-2.0.3-alt-tests-uploads.patch
BuildRequires(pre): perl-base >= 5.6.1, perl-devel
BuildRequires(pre): apache2-devel >= 2.2.5
# Automatically added by buildreq on Thu Dec 11 2008
BuildRequires: apache-mod_perl-base perl-DBI perl-libwww perl-threads
BuildRequires: %(eval echo %apache2_apr_buildreq)
BuildRequires: libgdbm-devel libexpat-devel
BuildRequires: perl-Math-BigInt, perl-HTML-Parser, perl-BSD-Resource
BuildRequires: perl-Compress-Zlib, perl-CGI, perl-Encode
Requires(pre): apache2 >= %apache2_version-%apache2_release
Provides: mod_perl = %version
%description
Mod_perl incorporates a Perl interpreter into the Apache web
server, so that the Apache web server can directly execute Perl
code.
Mod_perl provides an object-oriented Perl interface for Apache's
C language API and allows to manage Apache, respond to requests
for web pages and much more. The end result is a quicker CGI
script turnaround process, since no external Perl interpreter
has to be started.
Install mod_perl if you're installing the Apache web server and
you'd like for it to directly incorporate a Perl interpreter.
%description -l ru_RU.UTF-8
Mod_perl п╡я│я┌я─п╟п╦п╡п╟п╣я┌ п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─ Perl п╡ п╡п╣п╠-я│п╣я─п╡п╣я─ Apache,
п©п╬п╥п╡п╬п╩я▐я▐ п╡п╣п╠ я│п╣я─п╡п╣я─я┐ п╫п╣п©п╬я│я─п╣п╢я│я┌п╡п╣п╫п╫п╬ п╦я│п©п╬п╩п╫я▐я┌я▄ п╨п╬п╢ п╫п╟ Perl.
Mod_perl п©я─п╣п╢п╬я│я┌п╟п╡п╩я▐п╣я┌ п╬п╠я┼п╣п╨я┌п╫п╬-п╬я─п╦п╣п╫я┌п╦я─п╬п╡п╟п╫п╫я▀п╧ п╦п╫я┌п╣я─я└п╣п╧я│ п╫п╟
Perl п╨ п╡п╫я┐я┌я─п╣п╫п╫п╣п╪я┐ API Apache п╦ п©п╬п╥п╡п╬п╩я▐п╣я┌ я┐п©я─п╟п╡п╩я▐я┌я▄ Apache,
п╬я┌п╡п╣я┤п╟я┌я▄ п╫п╟ п╥п╟п©я─п╬я│я▀ п╡п╣п╠-я│я┌я─п╟п╫п╦я├ п╦ п╪п╫п╬пЁп╬п╣ п╢я─я┐пЁп╬п╣. п▓ п╨п╬п╫п╣я┤п╫п╬п╪
п╦я┌п╬пЁп╣, п╦я│п©п╬п╩я▄п╥п╬п╡п╟п╫п╦п╣ mod_perl п©п╬п╥п╡п╬п╩я▐п╣я┌ я┐я│п╨п╬я─п╦я┌я▄ п╡я▀п©п╬п╩п╫п╣п╫п╦п╣
CGI-я│п╨я─п╦п©я┌п╬п╡, я┌п╟п╨ п╨п╟п╨ п╦я│п╨п╩я▌я┤п╟п╣я┌ п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬я│я┌я▄ п╡ п╡я▀п╥п╬п╡п╟я┘
п╡п╫п╣я┬п╫п╣пЁп╬ п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─п╟ Perl.
Mod_perl п╪п╬п╤п╣я┌ п╠я▀я┌я▄ п©п╬п╩п╣п╥п╣п╫, п╣я│п╩п╦ п▓я▀ я┐я│я┌п╟п╫п╬п╡п╦п╩п╦ п╡п╣п╠-я│п╣я─п╡п╣я─
Apache п╦ п▓п╟п╪ п╫я┐п╤п╫п╟ п╦п╫я┌п╣пЁя─п╦я─п╬п╡п╟п╫п╫п╟я▐ п©п╬п╢п╢п╣я─п╤п╨п╟ Perl п╡ п╫я▒п╪.
%package devel
Summary: files needed for building XS modules that use mod_perl
Summary(ru_RU.UTF-8): я└п╟п╧п╩я▀ п╢п╩я▐ я│п╠п╬я─п╨п╦ п╪п╬п╢я┐п╩п╣п╧ Perl, п╦я│п©п╬п╩я▄п╥я┐я▌я┴п╦я┘ mod_perl
Group: Development/C
Requires: %name = %{version}-%{release}, apache2-devel
Provides: %name-devel = %version-%release
Obsoletes: %name-devel
%description devel
Mod_perl incorporates a Perl interpreter into the Apache web
server, so that the Apache web server can directly execute
Perl code.
This package contains the files needed for building XS modules
that use mod_perl.
%description devel -l ru_RU.UTF-8
Mod_perl п╡я│я┌я─п╟п╦п╡п╟п╣я┌ п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─ Perl п╡ п╡п╣п╠-я│п╣я─п╡п╣я─ Apache,
п©п╬п╥п╡п╬п╩я▐я▐ п╡п╣п╠ я│п╣я─п╡п╣я─я┐ п╫п╣п©п╬я│я─п╣п╢я│я┌п╡п╣п╫п╫п╬ п╦я│п©п╬п╩п╫я▐я┌я▄ п╨п╬п╢ п╫п╟ Perl.
п■п╟п╫п╫я▀п╧ п©п╟п╨п╣я┌ я│п╬п╢п╣я─п╤п╦я┌ я└п╟п╧п╩я▀, п╫п╣п╬п╠я┘п╬п╢п╦п╪я▀п╣ п╢п╩я▐ я─п╟п╥я─п╟п╠п╬я┌п╨п╦
XS-п╪п╬п╢я┐п╩п╣п╧ п╫п╟ Perl, п╦я│п©п╬п╩я▄п╥я┐я▌я┴п╦я┘ mod_perl.
%package doc
Summary: mod_perl2 Apache module documentation
Summary(ru_RU.UTF-8): п╢п╬п╨я┐п╪п╣п╫я┌п╟я├п╦я▐ п╨ п╪п╬п╢я┐п╩я▌ Apache mod_perl2
Group: Documentation
Requires: %name = %{version}-%{release}
Provides: %name-doc = %version-%release
Obsoletes: %name-doc
%description doc
Mod_perl incorporates a Perl interpreter into the Apache web
server, so that the Apache web server can directly execute
Perl code.
This package contains the documentation for mod_perl Apache2
module.
%description doc -l ru_RU.UTF-8
Mod_perl п╡я│я┌я─п╟п╦п╡п╟п╣я┌ п╦п╫я┌п╣я─п©я─п╣я┌п╟я┌п╬я─ Perl п╡ п╡п╣п╠-я│п╣я─п╡п╣я─ Apache,
п©п╬п╥п╡п╬п╩я▐я▐ п╡п╣п╠ я│п╣я─п╡п╣я─я┐ п╫п╣п©п╬я│я─п╣п╢я│я┌п╡п╣п╫п╫п╬ п╦я│п©п╬п╩п╫я▐я┌я▄ п╨п╬п╢ п╫п╟ Perl.
п■п╟п╫п╫я▀п╧ п©п╟п╨п╣я┌ я│п╬п╢п╣я─п╤п╦я┌ п╢п╬п╨я┐п╪п╣п╫я┌п╟я├п╦я▌ п╨ п╪п╬п╢я┐п╩я▌ mod_perl.
###########################
# Building mod_perl in incoming's hasher environment
# causes an sporadic and eventual errors during
# extensive test load. Disabling test for public releases.
%ifdef __BTE
%ifdef public_release
%def_without test
%endif
%endif
# Skip dependence search for some modules
%add_findreq_skiplist */Test/Builder.pm */Apache/Test.pm
%add_findreq_skiplist */Apache/TestConfig.pm */Apache/TestConfigC.pm
%add_findreq_skiplist */Apache/TestConfigParse.pm */Apache/TestConfigPerl.pm
%add_findreq_skiplist */Apache/TestHarness.pm */Apache/TestMM.pm
%add_findreq_skiplist */Apache/TestRequest.pm */Apache/TestRun.pm
%add_findreq_skiplist */Apache/TestClient.pm */Apache/TestMB.pm
%add_findreq_skiplist */Apache/TestServer.pm
%add_findreq_skiplist */Apache2/SourceTables.pm */Apache2/compat.pm
%add_findreq_skiplist */Apache2/SizeLimit.pm */Apache2/Resource.pm
%add_findreq_skiplist */ModPerl/CScan.pm */ModPerl/Code.pm
%add_findreq_skiplist */ModPerl/RegistryLoader.pm
%prep
%setup -q -n %real_name-%version
/bin/tar xvf %SOURCE4
/bin/tar xvf %SOURCE5
%patch0 -p1
# Remove tests
%patch2
%patch3
[[ "%inside_bte" == "1" ]] && patch -p0 < %PATCH11
mv -f -- LICENSE LICENSE.orig
ln -s -- $(relative %_licensedir/Apache-2.0 %_docdir/%name/LICENSE) LICENSE
%build
%perl_vendor_build MP_APXS=%apache2_apxs MP_APR_CONFIG=%apache2_apr_config
%install
%perl_vendor_install UNINST=0
# Install the config file
install -d -m 755 -- $RPM_BUILD_ROOT%apache2_mods_available
install -d -m 755 -- $RPM_BUILD_ROOT%apache2_mods_start
install -p -m 644 -- %SOURCE1 $RPM_BUILD_ROOT%apache2_mods_available/%module_name.load
install -p -m 644 -- %SOURCE2 $RPM_BUILD_ROOT%apache2_mods_available/%module_name.conf
subst 's, at a_libexecdir at ,%apache2_libexecdir,g' $RPM_BUILD_ROOT%apache2_mods_available/%module_name.load
install -p -m 644 -- %SOURCE3 $RPM_BUILD_ROOT%apache2_mods_start/100-%module_name.conf
# Install missed modules from install script
install -p -m 644 -- xs/tables/current/APR/FunctionTable.pm $RPM_BUILD_ROOT%perl_vendor_archlib/APR/FunctionTable.pm
install -p -m 644 -- xs/tables/current/Apache2/ConstantsTable.pm $RPM_BUILD_ROOT%perl_vendor_archlib/Apache2/ConstantsTable.pm
install -p -m 644 -- xs/tables/current/Apache2/FunctionTable.pm $RPM_BUILD_ROOT%perl_vendor_archlib/Apache2/FunctionTable.pm
install -p -m 644 -- xs/tables/current/Apache2/StructureTable.pm $RPM_BUILD_ROOT%perl_vendor_archlib/Apache2/StructureTable.pm
install -p -m 644 -- xs/tables/current/ModPerl/FunctionTable.pm $RPM_BUILD_ROOT%perl_vendor_archlib/ModPerl/FunctionTable.pm
%post
# Reconfigure Apache2:
%apache2_sbindir/a2chkconfig ||:
if [ -e %apache2_mods_enabled/%module_name.load ]; then
CONF_OK=0
%apache2_sbindir/apachectl2 configtest && CONF_OK=1 ||:
if [ "$CONF_OK" = "1" ]; then
service %apache2_dname condrestart ||:
else
echo "Some errors detected in Apache2 configuration!"
echo "To use %real_name check configuration and start %apache2_dname service."
echo
fi
else
echo "Apache2 %real_name module had been installed, but does't enabled."
echo "Check %apache2_mods_start directory for files with '%module_name=no' lines."
echo
fi
%preun
if [ "$1" = "0" ] ; then # last uninstall
[ -e %apache2_mods_enabled/%module_name.load ] && %apache2_sbindir/a2dismod %module_name 2>&1 >/dev/null ||:
fi
%postun
# Reconfigure Apache2:
%apache2_sbindir/a2chkconfig ||:
if [ "$1" = "0" ] ; then # last uninstall
CONF_OK=0
%apache2_sbindir/apachectl2 configtest && CONF_OK=1 ||:
if [ "$CONF_OK" = "1" ]; then
service %apache2_dname condrestart ||:
else
echo "Some errors detected in Apache2 configuration!"
echo "To complete %real_name uninstalling check configuration and restart %apache2_dname service."
echo
fi
fi
%files
%doc Changes README
%doc --no-dereference LICENSE
%config(noreplace) %apache2_mods_available/%module_name.conf
%config %apache2_mods_available/%module_name.load
%config %apache2_mods_start/100-%module_name.conf
%_bindir/mp2bug
%apache2_libexecdir/%real_name.so
%perl_vendor_archlib/mod_perl2.pm
%perl_vendor_archlib/Apache/*
%perl_vendor_archlib/Apache2/*
%perl_vendor_archlib/Bundle/*
%perl_vendor_archlib/APR*
%perl_vendor_archlib/ModPerl*
%perl_vendor_autolib/mod_perl2*
%perl_vendor_autolib/Apache2*
%perl_vendor_autolib/ModPerl*
%perl_vendor_autolib/APR*
%exclude %_man3dir/*
%files devel
%doc SVN-MOVE BRANCHING README-SVN RELEASE STATUS
%apache2_includedir/mod_perl.h
%apache2_includedir/modperl_*.h
%files doc
%doc docs/*
%changelog
…
Полный changelog можно просмотреть здесь