Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
>
php-5.2.6
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 13
[-]
[+]
Added
php5.spec
@@ -0,0 +1,2821 @@ +# +# spec file for package php5 (Version 5.2.4RC2) +# +# Copyright (c) 2007 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.20 +%define suhosin_patch_version 0.9.6.2 +%define with_suhosin_patch 1 +%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: apache2-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 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 +%if %{with_spell} +BuildRequires: aspell-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 +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%{?opensuse_bs} +BuildRequires: ming-devel 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) +### +### +Version: 5.2.5 +Release: 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-dbx php-dio php-fam php-filepro php-yp +Autoreqprov: on +PreReq: update-alternatives +#extensions that are no longer here +Obsoletes: php-dbx php-dio php-fam php-filepro php-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 +# update to PHP_5_2 CVS (future 5.2.4) +# Patch0: PHP_5_2-CVS-2007-07-30.patch.bz2 +#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 +%endif +#bugs +# compiler warnings +Patch9: php5-warnings.patch +#please use patch30 and up for security fixes +Patch30: php-%{version}-restore-ini-level2.patch +URL: http://www.php.net +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Summary: PHP5 Core Files + +%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 +PreReq: update-alternatives + +%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. + +Please refer to /usr/share/doc/packages/php5/README.SUSE for +information on how to load the module into the Apache webserver. + + + +Authors: +-------- + The PHP Group + See http://www.php.net/credits.php for more details + +%package fastcgi +Summary: FastCGI PHP5 Module