Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
>
php-5.2.12
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 9
[-]
[+]
Changed
php5.spec
@@ -17,17 +17,20 @@ %define with_suhosin_patch 1 %define pkg_name php5 %define with_spell 1 +%define with_sqlite 1 %if 0%{?sles_version} != 11 %define with_dynsess 1 %else %define with_dynsess 0 %endif + %if 0%{?suse_version} < 930 %define with_spell 0 BuildRequires: heimdal-devel %else BuildRequires: krb5-devel %endif + BuildRequires: apache2-devel bison curl-devel db-devel gmp-devel gtk-devel imap-devel libmcrypt-devel libtidy-devel libtiff-devel libxslt-devel mhash-devel mm-devel mysql-devel ncurses-devel net-snmp-devel openldap2 openldap2-devel orbit-devel pam-devel pkgconfig postfix postgresql-devel qt3-devel tcpd-devel unixODBC-devel update-alternatives zip gcc-c++ procps %if %{with_spell} @@ -878,6 +881,7 @@ The PHP Group See http://www.php.net/credits.php for more details +%if %{with_sqlite} %package sqlite Provides: php-sqlite php5-pdo_sqlite = %{version} Summary: PHP5 Extension Module @@ -906,6 +910,7 @@ -------- The PHP Group See http://www.php.net/credits.php for more details +%endif %package suhosin Provides: php-suhosin @@ -1357,20 +1362,22 @@ --with-qdbm=%{_usr} \ %endif --enable-pdo=shared \ +%if %{with_sqlite} + --enable-sqlite-utf8 \ %if 0%{?suse_version} > 1010 --with-pdo_sqlite=shared,%{_usr} \ + --with-sqlite=shared,%{_usr} \ %else --with-pdo_sqlite=shared \ + --with-sqlite=shared \ +%endif +%else + --without-sqlite \ + --without-pdo_sqlite \ %endif --with-pdo-mysql=shared,%{_usr} \ --with-pdo-pgsql=shared,%{_usr} \ --with-pdo-odbc=shared,unixODBC,%{_usr} \ -%if 0%{?suse_version} > 1010 - --with-sqlite=shared,%{_usr} \ -%else - --with-sqlite=shared \ -%endif - --enable-sqlite-utf8 \ --enable-zip=shared \ --enable-suhosin=shared \ --disable-cgi @@ -1787,12 +1794,14 @@ %{extension_dir}/sockets.so %config(noreplace) %{php_sysconf}/conf.d/sockets.ini +%if %{with_sqlite} %files sqlite %defattr(644,root,root,755) %{extension_dir}/sqlite.so %config(noreplace) %{php_sysconf}/conf.d/sqlite.ini %{extension_dir}/pdo_sqlite.so %config(noreplace) %{php_sysconf}/conf.d/pdo_sqlite.ini +%endif %files suhosin %defattr(644,root,root,755)