1 |
# $Id: php5-cgi.spec,v 1.1 2009/03/04 17:04:43 slords Exp $ |
# $Id: php5-cgi.spec,v 1.2 2009/03/04 19:31:30 slords Exp $ |
2 |
# Authority: ???? |
# Authority: nocvs |
3 |
# Name: David Harper |
# Name: David Harper |
4 |
|
|
5 |
%define rhel4 1 |
%define rhel4 1 |
14 |
|
|
15 |
Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor) |
Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor) |
16 |
Name: php5-cgi |
Name: php5-cgi |
17 |
Version: 5.2.8 |
Version: 5.3.0 |
18 |
Release: 1%{?dist} |
Release: 2.el4.sme |
19 |
%{?rh90:Epoch: 1 } |
%{?rh90:Epoch: 1 } |
20 |
License: The PHP License |
License: The PHP License |
21 |
Group: Development/Languages |
Group: Development/Languages |
57 |
%{?_with_tidy:BuildRequires: tidy} |
%{?_with_tidy:BuildRequires: tidy} |
58 |
%{?_with_tidy:Requires: tidy} |
%{?_with_tidy:Requires: tidy} |
59 |
|
|
60 |
Obsoletes: php-dbg, mod_php, php3, phpfi, stronghold-php, php-xslt |
Obsoletes: php-dbg, php3, phpfi, stronghold-php, php-xslt |
61 |
# Enforce Apache module ABI compatibility |
# Enforce Apache module ABI compatibility |
62 |
Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel) |
Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel) |
63 |
Requires: php5-cgi-pear |
Requires: php5-cgi-pear |
310 |
# Prevent %%doc confusion over LICENSE files |
# Prevent %%doc confusion over LICENSE files |
311 |
cp Zend/LICENSE Zend/ZEND_LICENSE |
cp Zend/LICENSE Zend/ZEND_LICENSE |
312 |
cp TSRM/LICENSE TSRM_LICENSE |
cp TSRM/LICENSE TSRM_LICENSE |
313 |
cp regex/COPYRIGHT regex_COPYRIGHT |
cp ext/ereg/regex/COPYRIGHT regex_COPYRIGHT |
314 |
cp ext/gd/libgd/README gd_README |
cp ext/gd/libgd/README gd_README |
315 |
|
|
316 |
# Source is built twice: once for /usr/bin/php5/php, once for the Apache DSO. |
# Source is built twice: once for /usr/bin/php5/php, once for the Apache DSO. |
317 |
mkdir build-cgi |
mkdir build-cgi |
318 |
|
|
319 |
# Use correct libdir |
# Use correct libdir |
320 |
perl -pi -e 's|%{_prefix}/lib|%{_libdir}|' php.ini-recommended |
perl -pi -e 's|%{_prefix}/lib|%{_libdir}|' php.ini-production |
321 |
perl -pi -e 's|extension_dir \= \"\.\/\"|extension_dir \= \"%{_libdir}\/php5\/\"|' php.ini-recommended |
perl -pi -e 's|extension_dir \= \"\.\/\"|extension_dir \= \"%{_libdir}\/php5\/\"|' php.ini-production |
322 |
|
|
323 |
# Remove bogus test; position of read position after fopen(, "a+") |
# Remove bogus test; position of read position after fopen(, "a+") |
324 |
# is not defined by C standard, so don't presume anything. |
# is not defined by C standard, so don't presume anything. |
378 |
--with-png-dir=%{_prefix} \ |
--with-png-dir=%{_prefix} \ |
379 |
--with-gd \ |
--with-gd \ |
380 |
--enable-gd-native-ttf \ |
--enable-gd-native-ttf \ |
381 |
|
--enable-mbstring \ |
382 |
|
--with-mysqli=/usr/bin/mysql_config \ |
383 |
--without-gdbm \ |
--without-gdbm \ |
384 |
--with-gettext \ |
--with-gettext \ |
385 |
--with-ncurses \ |
--with-ncurses \ |
475 |
|
|
476 |
# Install the default configuration file and icons |
# Install the default configuration file and icons |
477 |
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php5 |
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/php5 |
478 |
install -m 644 php.ini-recommended $RPM_BUILD_ROOT%{_sysconfdir}/php5/php.ini |
install -m 644 php.ini-production $RPM_BUILD_ROOT%{_sysconfdir}/php5/php.ini |
479 |
#install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons |
#install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons |
480 |
#install -m 644 *.gif $RPM_BUILD_ROOT%{contentdir}/icons/ |
#install -m 644 *.gif $RPM_BUILD_ROOT%{contentdir}/icons/ |
481 |
|
|
531 |
%config %{_sysconfdir}/php5/pear.conf |
%config %{_sysconfdir}/php5/pear.conf |
532 |
%{_bindir}/php5/php |
%{_bindir}/php5/php |
533 |
%{_bindir}/php5/php-cgi |
%{_bindir}/php5/php-cgi |
534 |
|
%{_bindir}/php5/phar.phar |
535 |
%dir %{_libdir}/php5 |
%dir %{_libdir}/php5 |
536 |
%dir %{_localstatedir}/lib/php5 |
%dir %{_localstatedir}/lib/php5 |
537 |
%attr(0700,apache,apache) %dir %{_localstatedir}/lib/php5/session |
%attr(0700,apache,apache) %dir %{_localstatedir}/lib/php5/session |
557 |
%{_libdir}/php5/build |
%{_libdir}/php5/build |
558 |
|
|
559 |
%files pgsql -f files.pgsql |
%files pgsql -f files.pgsql |
560 |
%{_libdir}/php5/pgsql.so |
#%{_libdir}/php5/pgsql.so |
561 |
|
|
562 |
%files mysql -f files.mysql |
%files mysql -f files.mysql |
563 |
%{_libdir}/php5/mysql.so |
#%{_libdir}/php5/mysql.so |
564 |
|
|
565 |
%files odbc -f files.odbc |
%files odbc -f files.odbc |
566 |
%{_libdir}/php5/odbc.so |
#%{_libdir}/php5/odbc.so |
567 |
|
|
568 |
%if %{with_oci8} |
%if %{with_oci8} |
569 |
%files oci8 -f files.oci8 |
%files oci8 -f files.oci8 |
582 |
%endif |
%endif |
583 |
|
|
584 |
%files imap -f files.imap |
%files imap -f files.imap |
585 |
%{_libdir}/php5/imap.so |
# %{_libdir}/php5/imap.so |
586 |
|
|
587 |
%files ldap -f files.ldap |
%files ldap -f files.ldap |
588 |
%{_libdir}/php5/ldap.so |
# %{_libdir}/php5/ldap.so |
589 |
|
|
590 |
%files snmp -f files.snmp |
%files snmp -f files.snmp |
591 |
%{_libdir}/php5/snmp.so |
# %{_libdir}/php5/snmp.so |
592 |
|
|
593 |
%files xmlrpc -f files.xmlrpc |
%files xmlrpc -f files.xmlrpc |
594 |
%{_libdir}/php5/xmlrpc.so |
# %{_libdir}/php5/xmlrpc.so |
595 |
|
|
596 |
%if %{with_mbstring} |
%if %{with_mbstring} |
597 |
%files mbstring -f files.mbstring |
%files mbstring -f files.mbstring |
598 |
%endif |
%endif |
599 |
|
|
600 |
%changelog |
%changelog |
601 |
* Mon Jan 12 2009 David Harper <davidiwharper@hotmail.com> 5.2.8-1.dh |
* Thu Sep 17 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-2.el4 |
602 |
|
- Fix for PHP4 compatibility issues [SME: 5463] |
603 |
|
* Sun Sep 6 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-1.el4 |
604 |
|
- Upgrade to the latest version of PHP [SME: 5376] |
605 |
|
- Add MySQLi support |
606 |
|
- Re-add mbstring support |
607 |
|
- Misc. build fixes for CentOS/SME |
608 |
|
* Mon Jan 12 2009 David Harper <davidiwharper@hotmail.com> 5.2.8-1.el4 |
609 |
- Upgrade to latest version of PHP |
- Upgrade to latest version of PHP |
610 |
- Build fixes for CentOS/SME |
- Build fixes for CentOS/SME |
611 |
* Fri Jan 20 2006 Stuart K. Low <stuart@serverpeak.com> 5.1.2-1 |
* Fri Jan 20 2006 Stuart K. Low <stuart@serverpeak.com> 5.1.2-1 |