1433 |
--with-config-file-scan-dir=%{_sysconfdir}/php.d \ |
--with-config-file-scan-dir=%{_sysconfdir}/php.d \ |
1434 |
--disable-debug \ |
--disable-debug \ |
1435 |
--enable-inline-optimization \ |
--enable-inline-optimization \ |
1436 |
|
--with-exec-dir=%{_bindir} \ |
1437 |
--with-regex=system \ |
--with-regex=system \ |
1438 |
--with-pcre-regex=%{_prefix} \ |
--with-pcre-regex=%{_prefix} \ |
1439 |
--with-freetype-dir=%{_prefix} --with-zlib=%{_prefix} \ |
--with-freetype-dir=%{_prefix} --with-zlib=%{_prefix} \ |
1440 |
--with-png-dir=%{_prefix} \ |
--with-png-dir=%{_prefix} \ |
1441 |
--with-pdo-odbc=unixODBC \ |
--with-pdo-odbc=unixODBC \ |
1442 |
|
--enable-magic-quotes \ |
1443 |
|
--enable-safe-mode \ |
1444 |
--with-zlib=shared,%{_prefix} --with-zlib-dir=%{_prefix} \ |
--with-zlib=shared,%{_prefix} --with-zlib-dir=%{_prefix} \ |
1445 |
--with-openssl=shared,%{_prefix} \ |
--with-openssl=shared,%{_prefix} \ |
1446 |
--enable-libxml=%{_prefix} --with-libxml-dir=%{_prefix} \ |
--enable-libxml=%{_prefix} --with-libxml-dir=%{_prefix} \ |
1484 |
--enable-session=shared,%{_prefix} \ |
--enable-session=shared,%{_prefix} \ |
1485 |
--enable-shmop=shared,%{_prefix} \ |
--enable-shmop=shared,%{_prefix} \ |
1486 |
--enable-simplexml \ |
--enable-simplexml \ |
1487 |
--with-snmp=shared \ |
--with-snmp=shared,%{_prefix} --enable-ucd-snmp-hack \ |
1488 |
--enable-soap=shared,%{_prefix} --with-libxml-dir=%{_prefix} \ |
--enable-soap=shared,%{_prefix} --with-libxml-dir=%{_prefix} \ |
1489 |
--enable-sockets=shared,%{_prefix} \ |
--enable-sockets=shared,%{_prefix} \ |
1490 |
|
--with-sqlite=shared,%{_prefix} \ |
1491 |
--with-sqlite3=shared,%{_prefix} \ |
--with-sqlite3=shared,%{_prefix} \ |
1492 |
--with-sybase-ct=shared,%{_prefix} \ |
--with-sybase-ct=shared,%{_prefix} \ |
1493 |
--enable-sysvmsg=shared,%{_prefix} \ |
--enable-sysvmsg=shared,%{_prefix} \ |
1501 |
--enable-xmlwriter=shared,%{_prefix} \ |
--enable-xmlwriter=shared,%{_prefix} \ |
1502 |
--with-xsl=shared,%{_prefix} \ |
--with-xsl=shared,%{_prefix} \ |
1503 |
--enable-wddx=shared --with-libxml-dir=%{_prefix} \ |
--enable-wddx=shared --with-libxml-dir=%{_prefix} \ |
1504 |
--enable-zip=shared --with-libzip=%{_prefix} \ |
--enable-zip=shared --with-libzip=%{_prefix} |
|
|
|
1505 |
|
|
1506 |
cp -f Makefile Makefile.$i |
cp -f Makefile Makefile.$i |
1507 |
|
|
1538 |
make -f Makefile.fpm sapi/fpm/php-fpm |
make -f Makefile.fpm sapi/fpm/php-fpm |
1539 |
cp -af php_config.h.apxs main/php_config.h |
cp -af php_config.h.apxs main/php_config.h |
1540 |
|
|
1541 |
|
# apache |
1542 |
|
mkdir build-apache |
1543 |
|
pushd build-apache |
1544 |
|
build --with-apxs2=%{_sbindir}/apxs |
1545 |
|
|
1546 |
|
cp ../sapi/apache2handler/* . |
1547 |
|
%{_sbindir}/apxs -c \ |
1548 |
|
`apr-1-config --link-ld --libs` \ |
1549 |
|
`xml2-config --cflags` \ |
1550 |
|
-I .. -I ../main -I ../Zend -I ../TSRM \ |
1551 |
|
-I Zend -I TSRM -I main -I ext/date/lib \ |
1552 |
|
-lphp5_common \ |
1553 |
|
mod_php5.c \ |
1554 |
|
sapi_apache2.c \ |
1555 |
|
apache_config.c \ |
1556 |
|
php_functions.c \ |
1557 |
|
main/internal_functions.c |
1558 |
|
popd |
1559 |
|
|
1560 |
%install |
%install |
1561 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
1604 |
install -m0644 scripts/man1/phpize.1 %{buildroot}%{_mandir}/man1/ |
install -m0644 scripts/man1/phpize.1 %{buildroot}%{_mandir}/man1/ |
1605 |
install -m0644 scripts/man1/php-config.1 %{buildroot}%{_mandir}/man1/ |
install -m0644 scripts/man1/php-config.1 %{buildroot}%{_mandir}/man1/ |
1606 |
|
|
|
|
|
|
# apache-mod_php |
|
|
mkdir build-apache |
|
|
pushd build-apache |
|
|
build --with-apxs2=%{_sbindir}/apxs |
|
|
|
|
|
cp ../sapi/apache2handler/* . |
|
|
%{_sbindir}/apxs -c \ |
|
|
`apr-1-config --link-ld --libs` \ |
|
|
`xml2-config --cflags` \ |
|
|
-I .. -I ../main -I ../Zend -I ../TSRM \ |
|
|
-I Zend -I TSRM -I main -I ext/date/lib \ |
|
|
-lphp5_common \ |
|
|
mod_php5.c \ |
|
|
sapi_apache2.c \ |
|
|
apache_config.c \ |
|
|
php_functions.c \ |
|
|
main/internal_functions.c |
|
|
popd |
|
|
|
|
|
|
|
|
%install |
|
|
rm -rf %{buildroot} |
|
|
|
|
|
install -d %{buildroot}%{_libdir} |
|
|
install -d %{buildroot}%{_bindir} |
|
|
install -d %{buildroot}%{_sysconfdir}/php.d |
|
|
install -d %{buildroot}%{_libdir}/php/extensions |
|
|
install -d %{buildroot}%{_libdir}/apache-extramodules |
|
|
install -d %{buildroot}%{_mandir}/man1 |
|
|
install -d %{buildroot}%{_sysconfdir}/cron.d |
|
|
install -d %{buildroot}/var/lib/php |
|
|
install -d %{buildroot}%{_datadir}/php |
|
|
|
|
|
|
|
1607 |
#perl -pi -e "s|^libdir=.*|libdir='%{_libdir}'|g" .libs/*.la* |
#perl -pi -e "s|^libdir=.*|libdir='%{_libdir}'|g" .libs/*.la* |
1608 |
|
|
1609 |
make -C build-apache install \ |
make -C build-apache install \ |