|
@@ -27,7 +27,7 @@
|
|
|
Name: php5
|
|
|
Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
|
|
|
Summary(ja): HTML 埋め込み型スクリプト言語 PHP
|
|
|
-Version: 5.3.3
|
|
|
+Version: 5.3.5
|
|
|
Release: 1%{_dist_release}
|
|
|
|
|
|
License: The PHP License
|
|
@@ -83,6 +83,7 @@ BuildRequires: postfix
|
|
|
BuildRequires: readline-devel
|
|
|
BuildRequires: sqlite3-devel
|
|
|
BuildRequires: zlib-devel
|
|
|
+BuildRequires: libicu-devel >= 3.6
|
|
|
%if %{?_dist_release} != "vl4"
|
|
|
BuildRequires: krb5-devel
|
|
|
%endif
|
|
@@ -344,6 +345,18 @@ Provides: php-xmlrpc = %{version}-%{release}
|
|
|
The php-xmlrpc package contains a dynamic shared object that will add
|
|
|
support for the XML-RPC protocol to PHP.
|
|
|
|
|
|
+#----------------------------------------------------------------------
|
|
|
+%package intl
|
|
|
+Summary: A module for PHP applications to use the ICU APIs
|
|
|
+Group: Development/Languages
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+Provides: php-intl = %{version}-%{release}
|
|
|
+
|
|
|
+%description intl
|
|
|
+ The php-intl package is a wrapper for ICU library, enabling PHP programmers
|
|
|
+to perform UCA-conformant collation and date/time/number/currency formatting
|
|
|
+in their scripts.
|
|
|
+
|
|
|
#======================================================================
|
|
|
%prep
|
|
|
%setup -q -n %{srcname}
|
|
@@ -382,32 +395,29 @@ CFLAGS="-fPIC" \
|
|
|
--libdir=%{_libdir}/%{_name} \
|
|
|
--with-libdir=%{_lib} \
|
|
|
--sysconfdir=%{php_confdir} \
|
|
|
+ --with-layout=GNU \
|
|
|
+ --with-config-file-path=%{php_confdir} \
|
|
|
+ --with-config-file-scan-dir=%{php_confdir}/php.d \
|
|
|
+ --with-exec-dir=%{_libdir}/%{_name}/bin \
|
|
|
--program-suffix=%{majorver} \
|
|
|
--enable-safe-mode \
|
|
|
--disable-rpath \
|
|
|
--enable-bcmath \
|
|
|
--enable-calendar \
|
|
|
+ --enable-dba=shared --with-gdbm --with-db4 \
|
|
|
--enable-exif \
|
|
|
--enable-ftp \
|
|
|
+ --enable-inline-optimization \
|
|
|
+ --enable-intl=shared \
|
|
|
--enable-mbstring \
|
|
|
--enable-shmop \
|
|
|
--enable-soap \
|
|
|
--enable-sockets \
|
|
|
- --with-sqlite=shared \
|
|
|
- --enable-sqlite-utf8 \
|
|
|
--enable-sysvmsg --enable-sysvsem --enable-sysvshm \
|
|
|
--enable-wddx \
|
|
|
- --enable-inline-optimization \
|
|
|
--enable-zend-multibyte \
|
|
|
- --with-layout=GNU \
|
|
|
- --with-config-file-path=%{php_confdir} \
|
|
|
- --with-config-file-scan-dir=%{php_confdir}/php.d \
|
|
|
- --with-exec-dir=%{_libdir}/%{_name}/bin \
|
|
|
- --with-openssl \
|
|
|
- --with-zlib \
|
|
|
--with-bz2 \
|
|
|
--with-curl \
|
|
|
- --enable-dba=shared --with-gdbm --with-db4 \
|
|
|
--with-gd --with-jpeg-dir=%{_prefix} --with-png-dir=%{_prefix} --with-freetype-dir=%{_prefix} \
|
|
|
--with-gettext \
|
|
|
--with-gmp \
|
|
@@ -419,14 +429,17 @@ CFLAGS="-fPIC" \
|
|
|
--with-mcrypt=shared,%{_prefix} \
|
|
|
--with-mysql=shared,%{_prefix} \
|
|
|
--with-mysqli=shared \
|
|
|
- --with-unixODBC=shared,%{_prefix} \
|
|
|
+ --with-openssl \
|
|
|
--enable-pdo=shared --with-pdo-odbc=shared,unixODBC,%{_prefix} --with-pdo-mysql=shared,%{_prefix} --with-pdo-pgsql=shared,%{_prefix} --with-pdo-sqlite=shared,%{_prefix} \
|
|
|
--with-pgsql=shared \
|
|
|
+ --with-pic \
|
|
|
--with-snmp=shared,%{_prefix} \
|
|
|
+ --with-sqlite=shared --enable-sqlite-utf8 \
|
|
|
+ --with-unixODBC=shared,%{_prefix} \
|
|
|
--with-xmlrpc=shared \
|
|
|
--with-xsl \
|
|
|
+ --with-zlib \
|
|
|
%{?_with_pear:--with-pear=%{pear_rootdir}}%{!?_with_pear:--without-pear} \
|
|
|
- --with-pic \
|
|
|
$*
|
|
|
if test $? != 0; then
|
|
|
tail -500 config.log
|
|
@@ -500,6 +513,11 @@ cp $RPM_BUILD_ROOT%{_bindir}/phpize{%{majorver},}
|
|
|
cp $RPM_BUILD_ROOT%{_mandir}/man1/php-config{%{majorver},}.1
|
|
|
cp $RPM_BUILD_ROOT%{_mandir}/man1/phpize{%{majorver},}.1
|
|
|
|
|
|
+# fix path in phar
|
|
|
+
|
|
|
+perl -pi -e 's|^#!/.+/build-cgi/sapi/cli/php$|#!/usr/bin/php5|' %{buildroot}%{_bindir}/phar.phar
|
|
|
+
|
|
|
+
|
|
|
%if %{with_pear}
|
|
|
# http://pear.php.net/bugs/bug.php?id=6154
|
|
|
perl -pi -e 's#s:([0-9]+):(.)(%{buildroot})+#"s:".($1-length($3)).":$2"#eg;' %{buildroot}%{php_confdir}/pear.conf
|
|
@@ -544,7 +562,8 @@ ln -sf %{_bindir}/%{_name}-cgi $RPM_BUILD_ROOT%{apache2_fcgidir}/%{_name}-fcgi
|
|
|
|
|
|
#----------------------------------------------------------------------
|
|
|
# Generate files lists and stub .ini files for each subpackage
|
|
|
-for mod in dba imap ldap mcrypt mysql mysqli odbc pgsql snmp sqlite xmlrpc \
|
|
|
+for mod in dba imap ldap mcrypt snmp xmlrpc intl\
|
|
|
+ mysql mysqli odbc pgsql sqlite \
|
|
|
pdo pdo_odbc pdo_mysql pdo_pgsql pdo_sqlite; do
|
|
|
cat > $RPM_BUILD_ROOT%{php_confdir}/php.d/${mod}.ini <<EOF
|
|
|
; Enable ${mod} extension module
|
|
@@ -703,9 +722,17 @@ rm -f files.*
|
|
|
%files snmp -f files.snmp
|
|
|
%files sqlite -f files.sqlite
|
|
|
%files xmlrpc -f files.xmlrpc
|
|
|
+%files intl -f files.intl
|
|
|
|
|
|
#======================================================================
|
|
|
%changelog
|
|
|
+* Mon Jan 10 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.5-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
+* Fri Dec 10 2010 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.3.4-1
|
|
|
+- new upstream release.
|
|
|
+- added a sub-package "php5-intl".
|
|
|
+
|
|
|
* Sun Sep 5 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.3.3-1
|
|
|
- new upstream release
|
|
|
|