packages (DEVEL): php/php.spec - add bcond_with to build with experimental ...
zergin
zergin at pld-linux.org
Sun Jul 5 02:29:50 CEST 2009
Author: zergin Date: Sun Jul 5 00:29:50 2009 GMT
Module: packages Tag: DEVEL
---- Log message:
- add bcond_with to build with experimental strict type hinting
- package missing intl extension
---- Files affected:
packages/php:
php.spec (1.688.2.33 -> 1.688.2.34)
---- Diffs:
================================================================
Index: packages/php/php.spec
diff -u packages/php/php.spec:1.688.2.33 packages/php/php.spec:1.688.2.34
--- packages/php/php.spec:1.688.2.33 Wed Jul 1 00:32:01 2009
+++ packages/php/php.spec Sun Jul 5 02:29:44 2009
@@ -60,6 +60,7 @@
%bcond_without apache2 # disable building apache 2.x module
%bcond_without zts # disable experimental-zts
%bcond_with tests # default off; test process very often hangs on buildersl; perform "make test"
+%bcond_with type_hints # experimental support for strict typing/casting
%define apxs1 /usr/sbin/apxs1
%define apxs2 /usr/sbin/apxs
@@ -87,7 +88,7 @@
Summary(uk.UTF-8): PHP Версії 5 - мова препроцесування HTML-файлів, виконувана на сервері
Name: php
Version: 5.3.0
-Release: %{rel}
+Release: %{rel}%{?with_type_hints:th}
Epoch: 4
License: PHP
Group: Libraries
@@ -120,6 +121,9 @@
Patch31: %{name}-fcgi-graceful.patch
Patch38: %{name}-tds.patch
Patch43: %{name}-use-prog_sendmail.patch
+%if %{with type_hints}
+Patch50: http://ilia.ws/patch/type_hint_53_v2.txt
+%endif
URL: http://www.php.net/
%{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
%{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
@@ -748,6 +752,24 @@
%description interbase -l pl.UTF-8
Moduł PHP umożliwiający dostęp do baz danych InterBase i Firebird.
+%package intl
+Summary: Internationalization extension (ICU wrapper)
+Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (wrapper ICU)
+Group: Libraries
+URL: http://www.php.net/manual/en/book.ibase.php
+Requires: %{name}-common = %{epoch}:%{version}-%{release}
+Provides: php(intl)
+
+%description intl
+Internationalization extension (further is referred as Intl) is a wrapper
+for ICU library, enabling PHP programmers to perform UCA-conformant
+collation and date/time/number/currency formatting in their scripts.
+
+%description intl -l pl.UTF-8
+Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest wrapperem
+biblioteki ICU, pozwalającym programistom PHP na wykonywanie w skryptach
+porównań zdgodnych z UCA oraz formatowań daty/czasu/walut.
+
%package json
Summary: PHP C extension for JSON serialization
Summary(pl.UTF-8): Rozszerzenie C PHP dla serializacji JSON
@@ -1558,6 +1580,11 @@
%prep
%setup -q
+
+%if %{with type_hints}
+%patch50 -p0
+%endif
+
%patch0 -p1
%patch1 -p1
#%patch2 -p1
@@ -2012,6 +2039,7 @@
%extension_scripts iconv
%extension_scripts imap
%extension_scripts interbase
+%extension_scripts intl
%extension_scripts json
%extension_scripts ldap
%extension_scripts mbstring
@@ -2102,6 +2130,9 @@
%triggerun interbase -- %{name}-interbase < 4:5.0.4-9.1
%{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*interbase\.so/d' %{_sysconfdir}/php.ini
+%triggerun intl -- %{name}-intl < 4:5.0.4-9.1
+%{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*intl\.so/d' %{_sysconfdir}/php.ini
+
%triggerun ldap -- %{name}-ldap < 4:5.0.4-9.1
%{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ldap\.so/d' %{_sysconfdir}/php.ini
@@ -2381,6 +2412,11 @@
%attr(755,root,root) %{php_extensiondir}/interbase.so
%endif
+%files intl
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/intl.ini
+%attr(755,root,root) %{php_extensiondir}/intl.so
+
%files json
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/json.ini
@@ -2679,6 +2715,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.688.2.34 2009/07/05 00:29:44 zergin
+- add bcond_with to build with experimental strict type hinting
+- package missing intl extension
+
Revision 1.688.2.33 2009/06/30 22:32:01 glen
- blocker so that somebody won't try to merge this to HEAD
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php/php.spec?r1=1.688.2.33&r2=1.688.2.34&f=u
More information about the pld-cvs-commit
mailing list