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 libphp5.so
%def_with interbase
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
Url: http://www.php.net/
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.2.5-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 libexpat-devel zlib-devel
%if_with interbase
BuildRequires: firebird-devel
%endif
%description
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.
%prep
%setup -T -c
%php5_sapi_prepare apache
%patch0 -p1 -b .fix
%patch1 -p1 -b .fix1
%build
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 \
-DUSE_TRANSFER_TABLES=1 \
-Wl,-rpath=%_libdir/apache -L%_libdir/apache -lhttpd \
-lphp-%_php5_version \
-o %so_file -c *.c
%install
%__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 \
%buildroot/%_sysconfdir/control.d/facilities
%__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 \
%buildroot/%_sysconfdir/control.d/facilities/%name
do
%__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"
done
%post
%php5_sapi_postin
%php5_servicedir/%php5_sapi/condrestart
%preun
%php5_sapi_preun
%files
%_sysconfdir/control.d/facilities/*
%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
%php5_servicedir/%php5_sapi
%_libdir/apache/%so_file
%doc apache
%doc CREDITS
%changelog
…
Todas as alterações você pod ver aqui
%define so_file libphp5.so
%def_with interbase
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
Url: http://www.php.net/
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.2.5-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 libexpat-devel zlib-devel
%if_with interbase
BuildRequires: firebird-devel
%endif
%description
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.
%prep
%setup -T -c
%php5_sapi_prepare apache
%patch0 -p1 -b .fix
%patch1 -p1 -b .fix1
%build
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 \
-DUSE_TRANSFER_TABLES=1 \
-Wl,-rpath=%_libdir/apache -L%_libdir/apache -lhttpd \
-lphp-%_php5_version \
-o %so_file -c *.c
%install
%__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 \
%buildroot/%_sysconfdir/control.d/facilities
%__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 \
%buildroot/%_sysconfdir/control.d/facilities/%name
do
%__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"
done
%post
%php5_sapi_postin
%php5_servicedir/%php5_sapi/condrestart
%preun
%php5_sapi_preun
%files
%_sysconfdir/control.d/facilities/*
%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
%php5_servicedir/%php5_sapi
%_libdir/apache/%so_file
%doc apache
%doc CREDITS
%changelog
…
Todas as alterações você pod ver aqui