Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
>
php-5.3.0
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 26
[-]
[+]
Added
php5.spec
@@ -0,0 +1,2989 @@ +# +# spec file for package php5 (Version 5.2.5) +# +# 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 +%global apiver 20090626 +%global zendver 20090626 +%define suhosin_version 0.9.29 +%define suhosin_patch_version 0.9.8-BETA-1 +%define with_suhosin_patch 0 +%define pkg_name php5 +%define with_spell 1 +%if 0%{?suse_version} < 930 +%define with_spell 0 +BuildRequires: heimdal-devel +%else +BuildRequires: krb5-devel +%endif +BuildRequires: mysql-devel libicu-devel apache2-devel enchant-devel bison curl-devel db-devel gmp-devel gtk-devel imap imap-devel libmcrypt-devel libtidy-devel libtiff-devel libxslt-devel mhash-devel mm-devel net-snmp-devel openldap2-devel orbit-devel pam-devel pkgconfig postfix postgresql-devel qt3-devel tcpd-devel unixODBC-devel update-alternatives zip +%if %{with_spell} +BuildRequires: aspell-devel +%endif +%if 0%{?suse_version} > 1000 +# 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 +BuildRequires: libedit-devel +# use system PCRE and sqlite on 10.2 an up only, previous versions will not work. +%if 0%{?suse_version} > 1010 +BuildRequires: pcre-devel sqlite-devel sqlite2-devel +%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_qdbm:1} +#BuildRequires: qdbm-devel +#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) +%define need_libxml2_hack %(if grep -q XML_PARSE_OLDSAX %{_includedir}/libxml/parser.h;then echo 1; else echo 0; fi) +#unfortunately at this stage we dont have a working PHP binary.. +#define builtin_tz_ver 2007.9 +### +### +Version: 5.3.0 +Release: 29 +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-api = %{apiver}, php-zend-abi = %{zendver} +Provides: php(api) = %{apiver}, php(zend-abi) = %{zendver} +AutoReqProv: on +PreReq: update-alternatives +#extensions that are no longer here +Obsoletes: php5-dbx php5-dio php5-fam php5-filepro php5-yp php5-dbase php5-ncurses +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: macros.php +#SUSE specific stuff +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.3.0-systzdata-v6.patch +#bugs +Patch12: suhosin-0.9.24-return-non-void.patch +Patch13: php-5.2.9-BNC-457056.patch +Patch14: php-5.3.0-ldap-checks.patch +Patch15: php-5.3.0-fix-rpmlint-errors.patch +Patch16: php-5.3.0-open_basedir-borked.patch +Patch17: php-5.3.0-curl_code_10.patch +Patch18: suhosin-0.9.29-retval.patch +Patch19: php-5.3.0-bnc513080.patch +Patch20: php-5.3.0-ini.patch +Url: http://www.php.net +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Summary: PHP5 Core Files +Requires: timezone + +%description +This package contains the PHP5 core files, including PHP binary (CLI) +and PHP configuration (php.ini). This package must be installed in +order to use PHP. Additionally, extension modules and server modules +(e.g. for Apache) may be installed. + +Additional documentation is available in package php-doc. + + + +Authors: +-------- + The PHP Group + See http://www.php.net/credits.php for more details + +%package devel +Provides: php-devel pecl +Summary: Include files of PHP5 +Group: Development/Languages/C and C++ +#this is required by the installed development headers +Requires: %{name} = %{version} glibc-devel libxml2-devel +#this is needed for "pecl" functionality +Requires: autoconf automake +# 5.2.2 or later installs php_pcre.h that requires pcre-devel +%if 0%{?suse_version} > 1010 +Requires: pcre-devel +%endif +Conflicts: php4-devel +PreReq: update-alternatives + +%description devel +PHP is a server-side, cross-platform, HTML embedded scripting language. +If you are completely new to PHP and want to get some idea of how it +works, have a look at the Introductory Tutorial. Once you get beyond +that have a look at the example archive sites and some of the other +resources available in the Links section. PHP5 is the latest version. + + + +Authors: +-------- + The PHP Group + See http://www.php.net/credits.php for more details + +%package pear +Provides: php-pear +Summary: PHP Extension and Application Repository +Group: Development/Libraries/PHP +Requires: %{name}-zlib = %{version} +PreReq: update-alternatives +%if 0%{?suse_version} > 1110 +BuildArch: noarch +%endif + +%description pear +PEAR is a code repository for PHP extensions and PHP library code +similar to TeX's CTAN and Perl's CPAN. This package provides an access +to the repository. + +See http://pear.php.net/manual/ for more datails. + + + +Authors: +-------- + The PHP Group + See http://www.php.net/credits.php for more details + +%package -n apache2-mod_php5 +Summary: PHP5 Module for Apache 2.0 +Group: Productivity/Networking/Web/Servers +Requires: apache2-prefork %{apache2_mmn} %{name} = %{version} +PreReq: apache2 +Conflicts: apache2-mod_php4 +Provides: mod_php_any php-xml php-spl php-simplexml php-session php-pcre php-date php-reflection php-filter + +%description -n apache2-mod_php5 +PHP is a server-side, cross-platform HTML embedded scripting language. +If you are completely new to PHP and want to get some idea of how it +works, have a look at the Introductory tutorial. Once you get beyond +that, have a look at the example archive sites and some of the other +resources available in the links section. +