1 |
# $Id: php5-cgi.spec,v 1.3 2009/11/03 06:26:30 marcohess Exp $ |
# $Id: php5-cgi.spec,v 1.2 2009/03/04 19:31:30 slords Exp $ |
2 |
# Authority: nocvs |
# Authority: nocvs |
3 |
# Name: David Harper |
# Name: David Harper |
4 |
|
|
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: 2%{?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 |
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. |
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 |
598 |
%endif |
%endif |
599 |
|
|
600 |
%changelog |
%changelog |
|
* Tue Nov 3 2009 Marco Hess <marco.hess@through-ip.com) 5.2.8-2 |
|
|
- Porting David Harper's <davidiwharper@hotmail.com> changes and updates |
|
|
to SME Contribs CVS repository and build system. Leave 5.3.0 upgrade |
|
|
for now, but ported: |
|
|
- Fix for PHP4 compatibility issues [SME: 5463] |
|
|
- Add MySQLi support |
|
|
- Re-add mbstring support |
|
|
- Misc. build fixes for CentOS/SME |
|
|
|
|
601 |
* Thu Sep 17 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-2.el4 |
* Thu Sep 17 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-2.el4 |
602 |
- Fix for PHP4 compatibility issues [SME: 5463] |
- Fix for PHP4 compatibility issues [SME: 5463] |
|
|
|
603 |
* Sun Sep 6 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-1.el4 |
* Sun Sep 6 2009 David Harper <davidiwharper@hotmail.com> 5.3.0-1.el4 |
604 |
- Upgrade to the latest version of PHP [SME: 5376] |
- Upgrade to the latest version of PHP [SME: 5376] |
605 |
- Add MySQLi support |
- Add MySQLi support |
606 |
- Re-add mbstring support |
- Re-add mbstring support |
607 |
- Misc. build fixes for CentOS/SME |
- Misc. build fixes for CentOS/SME |
608 |
|
* Mon Jan 12 2009 David Harper <davidiwharper@hotmail.com> 5.2.8-1.el4 |
|
* Mon Jan 12 2009 David Harper <davidiwharper@hotmail.com> 5.2.8-1.dh |
|
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 |
612 |
- Mass upgrade |
- Mass upgrade |
613 |
- Added rhel4 flags |
- Added rhel4 flags |