Sisyphus repositório
Última atualização: 24 setembro 2019 | SRPMs: 17480 | Visitas: 15150855
en ru br
ALT Linux repositórios
4.1: 5.2.5-alt1.M41.3
4.0: 5.2.2-alt1

Group :: Sistema/Servidores
RPM: apache-mod_php5

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define php5_sapi apache-mod_php
%define so_file

Name: apache-mod_php5
Version: %php5_version
Release: %php5_release

Summary: The PHP5 HTML-embedded scripting language for use with Apache
Group: System/Servers
License: PHP

Prereq: php5 = %php5_version-%php5_release
Prereq: apache >= %apache_version-%apache_release

Conflicts: mod_php
Obsoletes: mod_php5
Provides: mod_php5
Provides: php-engine = %php5_version-%php5_release

Source1: %name-php.conf
Source2: %name.service
Source3: php.ini
Source4: %name-browscap.ini
Source5: php.control

Patch0: php-5.1.3-sapi-mod_php.patch
Patch1: php-alt-namespace.patch

BuildRequires(pre): rpm-build-php5 apache-devel
BuildRequires: php5-devel = %php5_version-%php5_release

# Automatically added by buildreq on Fri Jul 01 2005

BuildRequires: libmm-devel libxml2-devel zlib-devel

PHP is an HTML-embedded scripting language.  PHP attempts to make it
easy for developers to write dynamically generated web pages.  PHP
also offers built-in database integration for several commercial
and non-commercial database management systems, so writing a
database-enabled web page with PHP is fairly simple.  The most
common use of PHP coding is probably as a replacement for CGI
scripts.  The mod_php module enables the Apache web server to
understand and process the embedded PHP language in web pages.

This package contains PHP version 5. You'll also need to install the
Apache web server.

%setup -T -c
%php5_sapi_prepare apache
%patch0 -p1 -b .fix
%patch1 -p1 -b .fix1

rm -f internal_functions.c

%apache_apxs \
 $(php-config --includes) \
 $(php-config --ldflags) %php5_optflags \
 $(php-config --libs) \
 -I. -I./include -I/usr/include/apache -Iext/date/lib -I/usr/include/libxml2 \
 -Wl,-rpath=%_libdir/apache -L%_libdir/apache -lhttpd \
 -lphp-%_php5_version \
 -o %so_file -c *.c

%__mkdir_p \
%buildroot/%_libdir/apache \
%buildroot/%apache_modconfdir \
%buildroot/%php5_servicedir/%php5_sapi \
%buildroot/%php5_sysconfdir/%php5_sapi/php.d \
%buildroot/%php5_sysconfdir/%php5_sapi/control.d \

%__install -m 644 %SOURCE1 %buildroot/%apache_modconfdir/%name.conf
%__install -m 700 %SOURCE2 %buildroot/%php5_servicedir/%php5_sapi/condrestart
%__install -m 644 %SOURCE3 %buildroot/%php5_sysconfdir/%php5_sapi/php.ini
%__install -m 644 %SOURCE4 %buildroot/%php5_sysconfdir/%php5_sapi/browscap.ini
%__install -m 755 %SOURCE5 %buildroot/%_sysconfdir/control.d/facilities/%name

%__cp %so_file %buildroot/%_libdir/apache

for f in \
%buildroot/%apache_modconfdir/%name.conf \
%buildroot/%php5_sysconfdir/%php5_sapi/php.ini \
 %__subst 's, at SAPI at ,%php5_sapi,g' "$f"
 %__subst 's, at PHP_VERSION at ,%_php5_version,g' "$f"
 %__subst 's, at PHP_LIBDIR at ,%_libdir/php,g' "$f"
 %__subst 's, at HTDOCSDIR at ,%apache_htdocsdir,g' "$f"
 %__subst 's, at PHP_BROWSCAP at ,%php5_sysconfdir/%php5_sapi/browscap.ini,g' "$f"
 %__subst 's, at PHP_UPLOADDIR at ,%apache_tmpdir/uploads,g' "$f"
 %__subst 's, at PHP_SESSIONDIR at ,%apache_tmpdir/sessions,g' "$f"
 %__subst 's, at LIBDIR at ,%_libdir,g' "$f"



%config(noreplace) %apache_modconfdir/%name.conf
%dir %php5_sysconfdir/%php5_sapi
%dir %php5_sysconfdir/%php5_sapi/php.d
%dir %php5_sysconfdir/%php5_sapi/control.d
%config(noreplace) %php5_sysconfdir/%php5_sapi/php.ini
%config(noreplace) %php5_sysconfdir/%php5_sapi/browscap.ini
%doc apache


Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009