@@ -0,0 +1,3255 @@
+#
+# spec file for package php5 (Version 5.2.12)
+#
+# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+# norootforbuild
+
+Name: php5
+%define suhosin_version 0.9.29
+%define suhosin_patch_version 0.9.7
+%define with_suhosin_patch 1
+%define pkg_name php5
+%define run_tests 0
+%define with_mime 1
+%define with_mhash 1
+%define with_mssql 0
+%define with_mysql 1
+%define with_dynsess 0
+%define with_sqlite 1
+
+%if 0%{?suse_version} == 1110
+
+%endif
+
+%if %{with_mssql}
+BuildRequires: freetds-devel
+%endif
+
+%if 0%{?sles_version} == 9
+# %define with_mysql 0
+BuildRequires: libmysqlclient15 libmysqlclient-devel
+%else
+BuildRequires: mysql-devel
+%endif
+
+%define with_spell 1
+%if 0%{?suse_version} < 930 && 0%{?suse_version} >= 800
+%define with_spell 0
+BuildRequires: heimdal-devel
+%else
+BuildRequires: krb5-devel
+%endif
+
+%if 0%{?sles_version} == 10
+%define with_spell 0
+%endif
+
+%define with_readline 1
+%if 0%{?sles_version} == 9
+%define with_readline 0
+%endif
+
+%if 0%{?sles_version} == 11
+%define with_sqlite 0
+%endif
+
+
+BuildRequires: apache2-devel bison curl-devel gmp-devel libmcrypt-devel libtidy-devel libtiff-devel libxslt-devel mhash-devel ncurses-devel net-snmp-devel pam-devel pkgconfig postfix postgresql-devel unixODBC-devel zip readline-devel
+%if 0%{?centos_version}
+BuildRequires: tcp_wrappers openldap openldap-devel libX11-devel gtk+-devel libc-client-devel
+BuildRequires: libpcap-devel mysql-devel gd-devel db4-devel qt-devel bzip2-devel
+BuildRequires: java-1.6.0-openjdk-devel
+%else
+BuildRequires: openldap2 openldap2-devel tcpd-devel db-devel gtk-devel imap-devel qt3-devel mm-devel orbit-devel
+
+%if 0%{?suse_version} < 1100
+BuildRequires: imap
+%else
+BuildRequires: imap-lib libbz2-devel xorg-x11-devel
+%endif
+
+%if 0%{?sles_version} == 9
+BuildRequires: xinetd libxml2-devel
+%else
+BuildRequires: libedit-devel update-alternatives
+%endif
+%endif
+
+%if %{with_spell}
+BuildRequires: aspell-devel
+%endif
+
+%if %{with_mhash}
+BuildRequires: mhash-devel
+%endif
+
+%if 0%{?suse_version} > 1000
+#!BuildIgnore: flex
+BuildRequires: flex-old
+# I would like this to become a hard dependency, as PHP is
+# documented to have this modules by default (no addtional libs are needed)
+Recommends: php-ctype php-dom php-iconv php-sqlite php-tokenizer
+Recommends: php-xmlreader php-xmlwriter php-json php-hash
+# other highly reccommended extensions
+Suggests: php-mbstring php-gd php-pear php-gettext php-mysql php-suhosin
+%else
+BuildRequires: flex libgcrypt-devel rpm-devel
+BuildRequires: libjpeg libjpeg-devel
+%endif
+
+# use system PCRE and sqlite on 10.2 an up only, previous versions will not work.
+%if 0%{?suse_version} > 1010
+%if 0%{?sles_version} >= 11
+BuildRequires: pcre-devel sqlite-devel
+%else
+BuildRequires: pcre-devel sqlite-devel sqlite2-devel
+%endif
+%endif
+
+#support t1lib in gd in 10.3 or later
+%if 0%{?suse_version} > 1020
+BuildRequires: re2c t1lib-devel
+#10.3 does not install sendmail binary with the minimal system
+Requires: smtp_daemon
+%endif
+
+%if 0%{?_with_ming:1}
+BuildRequires: ming-devel
+%endif
+#if 0%{?_with_qdbm:1}
+#BuildRequires: qdbm-devel
+#endif
+
+%if 0%{?suse_version} >= 1100
+
+%endif
+
+%define extension_dir %{_libdir}/%{pkg_name}/extensions
+%define peardir %{_datadir}/%{pkg_name}/PEAR
+%define php_sysconf %{_sysconfdir}/%{pkg_name}
+%define _x11prefix %(xft-config --prefix)
+
+########################################
+# apache macros
+########################################
+%define apxs2 %{_sbindir}/apxs2
+%define apache2_mmn %(MMN=$(%{apxs2} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
+%define apache2_libexecdir %(%{apxs2} -q LIBEXECDIR)
+%define apache2_sysconfdir %(%{apxs2} -q SYSCONFDIR)
+%define apache2_includedir %(%{apxs2} -q INCLUDEDIR)
+%define apache2_serverroot %(%{apxs2} -q PREFIX)
+
+#unfortunately at this stage we dont have a working PHP binary..
+#define builtin_tz_ver 2007.9
+###
+###
+Version: 5.2.12
+Summary: PHP5 Core Files
+Release: 3.1
+License: The PHP License, version 3.01
+Group: Development/Languages/Other
+Provides: php zend php-xml php-spl php-simplexml php-session php-pcre php-date php-reflection php-filter
+#Provides: php(tzdatabase) = %{builtin_tz_ver}
+%if %{with_dynsess} == 0
+Provides: php-hash = %{version}
+Provides: php5-hash = %{version}
+%endif
+AutoReqProv: on
+%if %{?suse_version:1}0
+%if 0%{?sles_version} != 9
+PreReq: update-alternatives
+%endif
+%endif
+#extensions that are no longer here
+Obsoletes: php5-dbx php5-dio php5-fam php5-filepro php5-yp
+Source0: php-%{version}.tar.bz2
+Source1: php-suse-addons.tar.bz2
+Source2: suhosin-%{suhosin_version}.tgz
+Source4: README.SUSE-pear
+#until it gets fixed in upstream...
+Source5: Registry.php
+Source6: %{name}-%{version}-rpmlintrc
+#SUSE specific stuff
+Patch1: php5-config.patch
+Patch2: php5-phpize.patch
+Patch3: php5-apache_sapi_install.patch
+Patch4: php5-php-config.patch
+#home made hack to really build against libedit
+Patch5: php5-really-with-libedit.patch
+%if %{with_suhosin_patch}
+Patch6: suhosin-patch-%{version}-%{suhosin_patch_version}.patch.gz
+%endif
+Patch7: php-5.2.6-systzdata.patch
+#bugs
+# compiler warnings
+Patch9: php5-warnings.patch
+Patch10: php5-zend.patch
+Patch11: php5-alignment.patch
+Patch12: suhosin-0.9.24-return-non-void.patch
+Patch13: configure.sqlite.patch
+#please use patch30 and up for security fixes
+Url: http://www.php.net
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
|