File project.diff of Package php5-posix

--- php5.changes.orig
+++ php5.changes
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Mon Jun 15 18:11:28 UTC 2015 - jw@owncloud.com
+
+- reduced specfile to build php5-posix only.
+- disabled support for libfbclient2 to make it buildable on SLE-12
+
+-------------------------------------------------------------------
 Fri Aug 29 12:51:38 UTC 2014 - pgajdos@suse.com
 
 - security update: 
--- php5.spec.orig
+++ php5.spec
@@ -26,6 +26,7 @@ Name:           php5
 %define suhosin_version 0.9.33
 %define pkg_name php5
 %define with_spell 1
+%define with_systemd 0
 
 BuildRequires:  apache2-devel
 BuildRequires:  autoconf
@@ -39,7 +40,9 @@ BuildRequires:  enchant-devel
 %define with_firebird 1
 BuildRequires:  firebird-devel
 %if 0%{suse_version} > 1210
-BuildRequires:  libfbclient2-devel
+%define with_firebird 0
+# Not found in SLE-12. How did they ever compile their php?
+# BuildRequires:  libfbclient2-devel
 %endif
 %else
 # <= 11.1 or SLES 11
@@ -70,1211 +73,133 @@ BuildRequires:  postgresql-devel
 BuildRequires:  tcpd-devel
 BuildRequires:  unixODBC-devel
 BuildRequires:  update-alternatives
-BuildRequires:  xorg-x11-devel
-%if 0%{suse_version} > 1110
-BuildRequires:  freetds-devel
-%endif
-%if %{with_spell}
-BuildRequires:  aspell-devel
-%endif
-# 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
-# other highly reccommended extensions
-Suggests:       php-mbstring php-gd php-pear php-gettext php-mysql php-suhosin
-BuildRequires:  libedit-devel
-BuildRequires:  libjpeg-devel
-BuildRequires:  pcre-devel
-BuildRequires:  re2c
-BuildRequires:  sqlite3-devel
-#10.3 does not install sendmail binary with the minimal system
-Requires:       smtp_daemon
-%define extension_dir     %{_libdir}/%{pkg_name}/extensions
-%define peardir           %{_datadir}/%{pkg_name}/PEAR
-%define php_sysconf       %{_sysconfdir}/%{pkg_name}
-%define _x11prefix %(pkg-config --variable=prefix xft)
-########################################
-# 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 [ -e %{_includedir}/libxml/parser.h ]; then if grep -q XML_PARSE_OLDSAX %{_includedir}/libxml/parser.h;then echo 1; else echo 0; fi; else echo 0; fi)
-Version:        5.5.14
-Release:        0
-Provides:       php
-Provides:       php-api = %{apiver}
-Provides:       php-date
-Provides:       php-filter
-Provides:       php-hash
-Provides:       php-pcre
-Provides:       php-reflection
-Provides:       php-session
-Provides:       php-simplexml
-Provides:       php-spl
-Provides:       php-xml
-Provides:       php-zend-abi = %{zendver}
-Provides:       zend
-Provides:       php(api) = %{apiver}
-Provides:       php(zend-abi) = %{zendver}
-#extensions that are no longer here
-Obsoletes:      php5-dbase
-Obsoletes:      php5-dbx
-Obsoletes:      php5-dio
-Obsoletes:      php5-fam
-Obsoletes:      php5-filepro
-Obsoletes:      php5-ncurses
-Obsoletes:      php5-yp
-#builtin,nowdays required for everything that uses sha2
-Obsoletes:      php5-hash < %{version}
-Provides:       php5-hash = %{version}
-#Old extension, nowdays provided as a "wrapper" in in the hash extension for backward compat.
-Obsoletes:      php5-mhash
-#Don't mix these packages with php53-* from SLES 11 SP2
-Conflicts:      php53
-Source0:        http://www.php.net/distributions/php-%{version}.tar.bz2
-Source1:        php-suse-addons.tar.bz2
-Source2:        suhosin-%{suhosin_version}.tgz
-Source4:        README.SUSE-pear
-Source5:        README.macros
-Source6:        macros.php
-Source7:        install-pear-nozlib.phar
-Source8:        php-fpm.init
-Source100:      build-test.sh
-#SUSE specific stuff
-Patch0:         php5-phpize.patch
-Patch1:         php5-apache_sapi_install.patch
-Patch2:         php5-php-config.patch
-Patch3:         php5-ini.patch
-Patch4:         php5-no-build-date.patch
-Patch5:         php5-pts.patch
-Patch6:         php5-openssl.patch
-Patch7:         php5-systzdata-v7.patch
-Patch8:         php5-systemd-unit.patch
-#bugs
-# this is from https://raw.github.com/NewEraCracker/suhosin-patches/, check for official
-# one from suhosin git
-Patch10:        php5-suhosin-php55.patch
-Patch11:        php5-mbstring-missing-return.patch
-Patch12:        php5-BNC-457056.patch
-Patch13:        php5-cloexec.patch
-Patch14:        php5-missing-extdeps.patch
-# following patch is to fix configure tests for crypt; the aim is to have php
-# built against glibc's crypt; problem is, that our glibc doesn't support extended
-# DES, so as soon as upstream fixes this, don't forgot to remove extended DES
-# from their checking as I indicated in crypt-tests.patch yet, or php will
-# silently use his own implementation again
-Patch16:        php5-crypt-tests.patch
-# related to previous patch; !(defined(_REENTRANT) || defined(_THREAD_SAFE))
-Patch17:        php5-no-reentrant-crypt.patch
-Patch18:        php5-format-string-issues.patch
-# following patch connected fixes or workarounds https://bugs.php.net/bug.php?id=44522
-Patch19:        php5-big-file-upload.patch
-Patch20:        php5-per-mod-log.patch
-Patch21:        php5-apache24-updates.patch
-Patch22:        php-CVE-2014-2497.patch
-Patch23:        php-CVE-2014-4670.patch
-Patch24:        php-CVE-2014-4698.patch
-Patch25:        php5-finally-exception-crash.patch
-Patch26:        php-CVE-2014-3597.patch
-Patch27:        php-CVE-2014-5120.patch
-Url:            http://www.php.net
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-Summary:        PHP5 Core Files
-License:        PHP-3.01
-Group:          Development/Languages/Other
-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:       pecl
-Provides:       php-devel
-Summary:        Include files of PHP5
-Group:          Development/Languages/C and C++
-#this is required by the installed  development headers
-Requires:       %{name} = %{version}
-Requires:       glibc-devel
-Requires:       libxml2-devel
-#this is needed for "pecl" functionality
-Requires:       autoconf
-Requires:       automake
-Requires:       libtool
-Requires:       pcre-devel
-Conflicts:      php4-devel
-Provides:       php-macros = 2.0
-Obsoletes:      php-macros < 2.0
-
-%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}
-# php5-pear-Archive_Tar provides Tar.php, which is provided
-# by pear package itself; php5-pear-Archive_Tar was dropped
-# on version 1.3.10, install-pear-nozlib.phar
-# provides 1.3.11 currently
-Provides:       php5-pear-Archive_Tar = 1.3.11
-Obsoletes:      php5-pear-Archive_Tar < 1.3.11
-%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 details.
-
-
-
-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_mmn}
-Requires:       %{name} = %{version}
-Requires:       apache2-prefork
-PreReq:         apache2
-Conflicts:      apache2-mod_php4
-Provides:       mod_php_any
-Provides:       php-date
-Provides:       php-filter
-Provides:       php-pcre
-Provides:       php-reflection
-Provides:       php-session
-Provides:       php-simplexml
-Provides:       php-spl
-Provides:       php-xml
-
-%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
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Provides:       php-cgi
-Provides:       php-date
-Provides:       php-fastcgi
-Provides:       php-filter
-Provides:       php-pcre
-Provides:       php-reflection
-Provides:       php-session
-Provides:       php-simplexml
-Provides:       php-spl
-Provides:       php-xml
-
-%description fastcgi
-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.FastCGI for
-information on how to use this module.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package fpm
-Summary:        FastCGI Process Manager PHP5 Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-PreReq:         %insserv_prereq
-Provides:       php-date
-Provides:       php-filter
-Provides:       php-fpm
-Provides:       php-pcre
-Provides:       php-reflection
-Provides:       php-session
-Provides:       php-simplexml
-Provides:       php-spl
-Provides:       php-xml
-%if 0%{suse_version} > 1130
-%define with_systemd 1
-%{systemd_requires}
-BuildRequires:  pkgconfig(libsystemd-daemon)
-%else
-# <= 11.3 or SLES 11
-%define with_systemd 0
-%endif
-
-%description fpm
-  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.FastCGI for
-  information on how to use this module.
-
-
-{>
-(>Authors:
-  --------
-      The PHP Group
-      See http://www.php.net/credits.php for more details
-
-%package bcmath
-Provides:       php-bcmath
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description bcmath
-Binary Calculator which supports numbers of any size and precision,
-represented as strings.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package bz2
-Provides:       php-bz2
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description bz2
-PHP functions to read and write bzip2 (.bz2) compressed files.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package calendar
-Provides:       php-calendar
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description calendar
-PHP functions for converting between different calendar formats.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package ctype
-Provides:       php-ctype
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description ctype
-PHP functions for checking whether a character or string falls into a
-certain character class according to the current locale.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package curl
-Provides:       php-curl
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description curl
-PHP interface to libcurl that allows you to connect to and communicate
-with servers of many different types, using protocols of many different
-types.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package dba
-Provides:       php-dba
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description dba
-This is a general abstraction layer for several file-based databases.
-As such, functionality is limited to a common subset of features
-supported by modern databases such as Sleepycat Software's DB2. (This
-is not to be confused with IBM's DB2 software, which is supported
-through the ODBC functions.)
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package dom
-Provides:       php-dom
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description dom
-This module adds DOM support.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package enchant
-Provides:       php-enchant
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description enchant
-Enchant is the PHP binding for the Enchant library. Enchant steps in to provide uniformity and conformity on top of all spelling libraries, and implements certain features that may be lacking in any individual provider library. Everything should "just work" for any and every definition of "just working."
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package exif
-Provides:       php-exif
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Requires:       %{name}-mbstring = %{version}
-
-%description exif
-PHP functions for extracting EXIF (metadata from images) information
-stored in headers of JPEG and TIFF images.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package fileinfo
-Provides:       php-fileinfo
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description fileinfo
-The functions in this module try to guess the content type and encoding of a file by looking for certain magic byte sequences at specific positions within the file. While this is not a bullet proof approach the heuristics used do a very good job.
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package ftp
-Provides:       php-ftp
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Requires:       %{name}-openssl = %{version}
-
-%description ftp
-PHP functions for access to file servers speaking the File Transfer
-Protocol (FTP) as defined in rfc959.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package gd
-Provides:       php-gd
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description gd
-PHP functions to create and manipulate image files in a variety of
-different image formats, including GIF, PNG, JPEG, WBMP, and XPM. Even
-more convenient: PHP can output image streams directly to a browser.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package gettext
-Provides:       php-gettext
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description gettext
-PHP functions that implement an NLS (Native Language Support) API which
-can be used to internationalize your PHP applications.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package gmp
-Provides:       php-gmp
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description gmp
-PHP functions for work with arbitrary-length integers using the GNU MP
-library.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-
-%package iconv
-Provides:       php-iconv
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description iconv
-PHP interface to iconv character set conversion facility.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package imap
-Provides:       php-imap
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description imap
-PHP functions in this extension are not limited to the IMAP protocol,
-despite their name. The underlying c-client library also supports NNTP,
-POP3 and local mailbox access methods.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-
-%package intl
-Provides:       php-intl
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%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.
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-
-
-%package json
-Provides:       php-json
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description json
-Support for JSON (JavaScript Object Notation) serialization.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package ldap
-Provides:       php-ldap
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Requires:       %{name}-openssl = %{version}
-
-%description ldap
-PHP interface to Lightweight Directory Access Protocol (LDAP).
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package mbstring
-Provides:       php-mbstring
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description mbstring
-This extension provides multi-byte character safe string functions and
-other utility functions such as conversion functions.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package mcrypt
-Provides:       php-mcrypt
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description mcrypt
-PHP interface to the mcrypt library, which supports a wide variety of
-block algorithms.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-
-
-%package mssql
-Provides:       php-mssql
-Provides:       php_any_db
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-
-%description mssql
-PHP functions for access to MSSQL database servers.
-
-
-%package mysql
-Provides:       php-mysql
-Provides:       php5-mysqli = %{version}
-Provides:       php5-pdo_mysql = %{version}
-Provides:       php_any_db
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Requires:       %{name}-pdo = %{version}
-Obsoletes:      php5-mysqli < %{version}
-Obsoletes:      php5-pdo_mysql < %{version}
-
-%description mysql
-PHP functions for access to MySQL database servers.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%if %{with_firebird}
-%package firebird
-Provides:       php5-interbase
-Provides:       php5-pdo_firebird = %{version}
-Provides:       php_any_db
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Requires:       %{name}-pdo = %{version}
-Obsoletes:      php5-pdo_firebird < %{version}
-
-%description firebird
-PHP functions for access to firebird database servers.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-%endif
-
-%package odbc
-Provides:       php-odbc
-Provides:       php-pdo_odbc
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Requires:       %{name}-pdo = %{version}
-
-%description odbc
-This module adds ODBC support.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package opcache
-Provides:       php-opcache
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description opcache
-The Zend OPcache provides faster PHP execution through
-opcode caching and optimization.
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package openssl
-Provides:       php-openssl
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description openssl
-This module adds OpenSSL support.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package pcntl
-Provides:       php-pcntl
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description pcntl
-This module will attempt to implement all features related to process
-spawning and control (fork(), waitpid(), signal(), WIF's, etc). This is
-extremley experimental, with hope to become stable on most UNIX's. I
-greatly appreciate any feedback, fixes, and or suggestions on how to
-improve/better implement this functionality.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package phar
-Provides:       php-phar
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description phar
-The phar extension provides a way to put entire PHP applications into a
-single file called a "phar" (PHP Archive) for easy distribution and installation.
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package pdo
-Provides:       php-pdo
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description pdo
-PHP Data Objects - Data Access Abstraction
-
-- light-weight
-
-- provides common API for common database operations
-
-- keeps majority of PHP specific stuff in the PDO core (such as
-persistent resource management); drivers should only have to worry
-about getting the data and not about PHP internals.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package pgsql
-Provides:       php-pgsql
-Provides:       php5-pdo_pgsql = %{version}
-Provides:       php_any_db
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Requires:       %{name}-pdo = %{version}
-Obsoletes:      php5-pdo_pgsql < %{version}
-
-%description pgsql
-PHP functions for access to PostgreSQL database servers. It includes
-both traditional pgsql and pdo_pgsql drivers.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package posix
-Provides:       php-posix
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description posix
-This module allows to use POSIX-like functions in PHP.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%if %{with_spell}
-
-%package pspell
-Provides:       php-pspell
-Summary:        PHP5 pspell extension
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Requires:       aspell-en
-
-%description pspell
-PHP interface to the aspell, which provides spell checking
-functionality.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%endif
-
-%package readline
-Provides:       php-readline
-Summary:        PHP5 readline extension
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description readline
-PHP interface to libedit, which provides editable command line as well
-as PHP interactive mode (php -a)
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package shmop
-Provides:       php-shmop
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description shmop
-PHP functions to read, write, create and delete UNIX shared memory
-segments.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package snmp
-Provides:       php-snmp
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description snmp
-PHP functions for SNMP.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package soap
-Provides:       php-soap
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description soap
-This module provides SOAP support.
-
-SOAP extension can be used to write SOAP Servers and Clients. It
-supports subsets of SOAP 1.1, SOAP 1.2 and WSDL 1.1 specifications.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package sockets
-Provides:       php-sockets
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description sockets
-A low-level interface to the socket communication functions based on
-the popular BSD sockets, providing the possibility to act as a socket
-server as well as a client. This extension is experimental!
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package sqlite
-Provides:       php-sqlite
-Provides:       php-sqlite3 = %{version}
-Provides:       php5-pdo_sqlite = %{version}
-Provides:       php5-sqlite3 = %{version}
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Requires:       %{name}-pdo = %{version}
-
-%description sqlite
-This is an extension for the SQLite Embeddable SQL Database Engine.
-http://www.sqlite.org/
-
-SQLite is a C library that implements an embeddable SQL database
-engine. Programs that link with the SQLite library can have SQL
-database access without running a separate RDBMS process.
-
-SQLite is not a client library used to connect to a big database
-server. SQLite is the server. The SQLite library reads and writes
-directly to and from the database files on disk.
-
-This package includes sqlite and pdo_sqlite modules for sqlite version
-2 and 3 respectively.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-
-%package suhosin
-Provides:       php-suhosin
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description suhosin
-Suhosin is an advanced protection system for PHP installations. It was
-designed to protect servers and users from known and unknown flaws in
-PHP applications and the PHP core.
-
-Suhosin is binary compatible to normal PHP installation, which means it
-is compatible to 3rd party binary extension like ZendOptimizer.
-
-
-
-Authors:
---------
-    Stefan Esser <stefan.esser@hardened-php.net>
-    Peter Prochaska <peter.prochaska@hardened-php.net>
-    Christopher Kunz <christopher.kunz@hardened-php.net>
-
-%package sysvmsg
-Provides:       php-sysvmsg
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description sysvmsg
-This module provides System V IPC support.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package sysvsem
-Provides:       php-sysvsem
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description sysvsem
-PHP interface for System V semaphores.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package sysvshm
-Provides:       php-sysvshm
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description sysvshm
-PHP interface for System V shared memory.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package tidy
-Provides:       php-tidy
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description tidy
-Tidy is an extension based on Libtidy (http://tidy.sf.net/) and allows
-a PHP developer to clean, repair, and traverse HTML, XHTML, and XML
-documents -- including ones with embedded scripting languages such as
-PHP or ASP within them using OO constructs.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package tokenizer
-Provides:       php-tokenizer
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description tokenizer
-The tokenizer functions provide an interface to the PHP tokenizer
-embedded in the Zend Engine. Using these functions you may write your
-own PHP source analyzing or modification tools without having to deal
-with the language specification at the lexical level.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package wddx
-Provides:       php-wddx
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description wddx
-PHP functions for Web Distributed Data Exchange.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package xmlrpc
-Provides:       php-xmlrpc
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description xmlrpc
-This module adds XMLRPC-EPI support.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package xsl
-Provides:       php-xsl
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Requires:       %{name}-dom = %{version}
-
-%description xsl
-This module adds new XSL support to PHP.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package xmlreader
-Provides:       php-xmlreader
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-Requires:       %{name}-dom = %{version}
-
-%description xmlreader
-XMLReader represents a reader that provides non-cached, forward-only
-access to XML data. It is based upon the xmlTextReader API from libxml.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
-
-%package xmlwriter
-Provides:       php-xmlwriter
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
-
-%description xmlwriter
-XMLWriter wraps the libxml xmlWriter API. Represents a writer that
-provides a non-cached, forward-only means of generating streams or
-files containing XML data.
-
-
-
-Authors:
---------
-    The PHP Group
-    See http://www.php.net/credits.php for more details
+BuildRequires:  xorg-x11-devel
+%if 0%{suse_version} > 1110
+BuildRequires:  freetds-devel
+%endif
+%if %{with_spell}
+BuildRequires:  aspell-devel
+%endif
+# 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
+# other highly reccommended extensions
+Suggests:       php-mbstring php-gd php-pear php-gettext php-mysql php-suhosin
+BuildRequires:  libedit-devel
+BuildRequires:  libjpeg-devel
+BuildRequires:  pcre-devel
+BuildRequires:  re2c
+BuildRequires:  sqlite3-devel
+#10.3 does not install sendmail binary with the minimal system
+Requires:       smtp_daemon
+%define extension_dir     %{_libdir}/%{pkg_name}/extensions
+%define peardir           %{_datadir}/%{pkg_name}/PEAR
+%define php_sysconf       %{_sysconfdir}/%{pkg_name}
+%define _x11prefix %(pkg-config --variable=prefix xft)
+########################################
+# 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 [ -e %{_includedir}/libxml/parser.h ]; then if grep -q XML_PARSE_OLDSAX %{_includedir}/libxml/parser.h;then echo 1; else echo 0; fi; else echo 0; fi)
+Version:        5.5.14
+Release:        0
+Provides:       php
+Provides:       php-api = %{apiver}
+Provides:       php-date
+Provides:       php-filter
+Provides:       php-hash
+Provides:       php-pcre
+Provides:       php-reflection
+Provides:       php-session
+Provides:       php-simplexml
+Provides:       php-spl
+Provides:       php-xml
+Provides:       php-zend-abi = %{zendver}
+Provides:       zend
+Provides:       php(api) = %{apiver}
+Provides:       php(zend-abi) = %{zendver}
+#extensions that are no longer here
+Obsoletes:      php5-dbase
+Obsoletes:      php5-dbx
+Obsoletes:      php5-dio
+Obsoletes:      php5-fam
+Obsoletes:      php5-filepro
+Obsoletes:      php5-ncurses
+Obsoletes:      php5-yp
+#builtin,nowdays required for everything that uses sha2
+Obsoletes:      php5-hash < %{version}
+Provides:       php5-hash = %{version}
+#Old extension, nowdays provided as a "wrapper" in in the hash extension for backward compat.
+Obsoletes:      php5-mhash
+#Don't mix these packages with php53-* from SLES 11 SP2
+Conflicts:      php53
+Source0:        http://www.php.net/distributions/php-%{version}.tar.bz2
+Source1:        php-suse-addons.tar.bz2
+Source2:        suhosin-%{suhosin_version}.tgz
+Source4:        README.SUSE-pear
+Source5:        README.macros
+Source6:        macros.php
+Source7:        install-pear-nozlib.phar
+Source8:        php-fpm.init
+Source100:      build-test.sh
+Source101:      unpackaged_files.txt
+#SUSE specific stuff
+Patch0:         php5-phpize.patch
+Patch1:         php5-apache_sapi_install.patch
+Patch2:         php5-php-config.patch
+Patch3:         php5-ini.patch
+Patch4:         php5-no-build-date.patch
+Patch5:         php5-pts.patch
+Patch6:         php5-openssl.patch
+Patch7:         php5-systzdata-v7.patch
+Patch8:         php5-systemd-unit.patch
+#bugs
+# this is from https://raw.github.com/NewEraCracker/suhosin-patches/, check for official
+# one from suhosin git
+Patch10:        php5-suhosin-php55.patch
+Patch11:        php5-mbstring-missing-return.patch
+Patch12:        php5-BNC-457056.patch
+Patch13:        php5-cloexec.patch
+Patch14:        php5-missing-extdeps.patch
+# following patch is to fix configure tests for crypt; the aim is to have php
+# built against glibc's crypt; problem is, that our glibc doesn't support extended
+# DES, so as soon as upstream fixes this, don't forgot to remove extended DES
+# from their checking as I indicated in crypt-tests.patch yet, or php will
+# silently use his own implementation again
+Patch16:        php5-crypt-tests.patch
+# related to previous patch; !(defined(_REENTRANT) || defined(_THREAD_SAFE))
+Patch17:        php5-no-reentrant-crypt.patch
+Patch18:        php5-format-string-issues.patch
+# following patch connected fixes or workarounds https://bugs.php.net/bug.php?id=44522
+Patch19:        php5-big-file-upload.patch
+Patch20:        php5-per-mod-log.patch
+Patch21:        php5-apache24-updates.patch
+Patch22:        php-CVE-2014-2497.patch
+Patch23:        php-CVE-2014-4670.patch
+Patch24:        php-CVE-2014-4698.patch
+Patch25:        php5-finally-exception-crash.patch
+Patch26:        php-CVE-2014-3597.patch
+Patch27:        php-CVE-2014-5120.patch
+Url:            http://www.php.net
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Summary:        PHP5 Core Files
+License:        PHP-3.01
+Group:          Development/Languages/Other
+Requires:       timezone
 
-%package zip
-Provides:       php-zip
-Summary:        PHP5 Extension Module
-Group:          Development/Libraries/PHP
-Requires:       %{name} = %{version}
+%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.
 
-%description zip
-Zip is an extension to create, modify and read zip files.
+Additional documentation is available in package php-doc.
 
 
 
@@ -1283,14 +208,14 @@ Authors:
     The PHP Group
     See http://www.php.net/credits.php for more details
 
-%package zlib
-Provides:       php-zlib
+%package posix
+Provides:       php-posix
 Summary:        PHP5 Extension Module
 Group:          Development/Libraries/PHP
 Requires:       %{name} = %{version}
 
-%description zlib
-PHP functions to read and write gzip (.gz) compressed files.
+%description posix
+This module allows to use POSIX-like functions in PHP.
 
 
 
@@ -1695,394 +620,19 @@ ln -s /sbin/service %{buildroot}%{_sbind
 ln -s %{_sysconfdir}/init.d/php-fpm %{buildroot}%{_sbindir}/rcphp-fpm
 %endif
 
-%post -n apache2-mod_php5
-#some distro versions does not have this tool.
-if [ -x /usr/sbin/a2enmod ]
-then
-	if a2enmod -q php4 && ! a2enmod -q php5; then
-  		a2dismod php4
-  		a2enmod php5
-	fi
-fi
-
-%preun -n apache2-mod_php5
-if [ "$1" = "0" ]
-then
-	if [ -x /usr/sbin/a2enmod ]
-	then
-    	if a2enmod -q php5; then
-        	a2dismod php5
-    	fi
-	fi
-fi
-
-%if %{with_systemd}
-%pre fpm
-%service_add_pre php-fpm.service
-
-%postun fpm
-%service_del_postun php-fpm.service
-%restart_on_update php-fpm
-%insserv_cleanup
-
-%preun fpm
-%service_del_preun php-fpm.service
-%stop_on_removal php-fpm
-
-%post fpm
-%service_add_post php-fpm.service
-%{fillup_and_insserv -f php-fpm}
-%else
-%postun fpm
-%restart_on_update php-fpm
-%insserv_cleanup
-
-%preun fpm
-%stop_on_removal php-fpm
-
-%post fpm
-%{fillup_and_insserv -f php-fpm}
-%endif
-
-%files
-%defattr(-, root, root)
-%doc README* CODING_STANDARDS CREDITS EXTENSIONS LICENSE NEWS UPGRADING php-suse-addons/test.php5
-%doc %{_mandir}/man1/*
-%dir %{php_sysconf}
-%dir %{php_sysconf}/conf.d
-%dir %{php_sysconf}/cli
-%config(noreplace) %{php_sysconf}/cli/php.ini
-%{_bindir}/php
-%dir %{_libdir}/%{pkg_name}
-%dir %{extension_dir}
-%dir %{_datadir}/%{pkg_name}
-%attr(0755, wwwrun, root) %dir /var/lib/%{pkg_name}
-
-%files devel
-%defattr(-, root, root)
-%doc README.macros
-%{_includedir}/%{pkg_name}
-%{_bindir}/phpize
-%{_bindir}/php-config
-%{_bindir}/pecl
-%{_datadir}/%{pkg_name}/build
-%config %{_sysconfdir}/rpm/macros.php
-
-%files pear
-%defattr(-, root, root)
-%doc pear/README.SUSE
-%{_bindir}/pear
-%config(noreplace) %{php_sysconf}/cli/pear.conf
-%{peardir}
-%dir /var/lib/pear
-
-%files fastcgi
-%defattr(-, root, root)
-%{_bindir}/php-cgi
-/srv/www/cgi-bin/php
-%dir %{php_sysconf}/fastcgi
-%config(noreplace) %{php_sysconf}/fastcgi/php.ini
-
-%files fpm
-%defattr(-, root, root)
-%{_sbindir}/php-fpm
-%dir %{php_sysconf}/fpm
-%config %{php_sysconf}/fpm/php-fpm.conf.default
-%{_mandir}/man8/php-fpm.8.gz
-%config /etc/init.d/php-fpm
-%{_sbindir}/rcphp-fpm
-%dir /usr/share/php5/fpm
-/usr/share/php5/fpm/status.html
-%if %{with_systemd}
-%{_unitdir}/php-fpm.service
-%endif
-
-%files -n apache2-mod_php5
-%defattr(644,root,root,755)
-%{apache2_libexecdir}/mod_php5.so
-%dir %{php_sysconf}/apache2
-%config(noreplace) %{php_sysconf}/apache2/php.ini
-%config(noreplace) %{apache2_sysconfdir}/conf.d/%{pkg_name}.conf
-
-%files bcmath
-%defattr(644,root,root,755)
-%{extension_dir}/bcmath.so
-%config(noreplace) %{php_sysconf}/conf.d/bcmath.ini
-
-%files bz2
-%defattr(644,root,root,755)
-%{extension_dir}/bz2.so
-%config(noreplace) %{php_sysconf}/conf.d/bz2.ini
-
-%files calendar
-%defattr(644,root,root,755)
-%{extension_dir}/calendar.so
-%config(noreplace) %{php_sysconf}/conf.d/calendar.ini
-
-%files ctype
-%defattr(644,root,root,755)
-%{extension_dir}/ctype.so
-%config(noreplace) %{php_sysconf}/conf.d/ctype.ini
-
-%files curl
-%defattr(644,root,root,755)
-%{extension_dir}/curl.so
-%config(noreplace) %{php_sysconf}/conf.d/curl.ini
-
-%files dba
-%defattr(644,root,root,755)
-%{extension_dir}/dba.so
-%config(noreplace) %{php_sysconf}/conf.d/dba.ini
-
-%files dom
-%defattr(644,root,root,755)
-%{extension_dir}/dom.so
-%config(noreplace) %{php_sysconf}/conf.d/dom.ini
-
-%files enchant
-%defattr(644,root,root,755)
-%{extension_dir}/enchant.so
-%config(noreplace) %{php_sysconf}/conf.d/enchant.ini
-
-%files exif
-%defattr(644,root,root,755)
-%{extension_dir}/exif.so
-%config(noreplace) %{php_sysconf}/conf.d/exif.ini
-
-%files fileinfo
-%defattr(644,root,root,755)
-%{extension_dir}/fileinfo.so
-%config(noreplace) %{php_sysconf}/conf.d/fileinfo.ini
-
-%files ftp
-%defattr(644,root,root,755)
-%{extension_dir}/ftp.so
-%config(noreplace) %{php_sysconf}/conf.d/ftp.ini
-
-%files gd
-%defattr(644,root,root,755)
-%{extension_dir}/gd.so
-%config(noreplace) %{php_sysconf}/conf.d/gd.ini
-
-%files gettext
-%defattr(644,root,root,755)
-%{extension_dir}/gettext.so
-%config(noreplace) %{php_sysconf}/conf.d/gettext.ini
-
-%files gmp
-%defattr(644,root,root,755)
-%{extension_dir}/gmp.so
-%config(noreplace) %{php_sysconf}/conf.d/gmp.ini
-
-%files iconv
-%defattr(644,root,root,755)
-%{extension_dir}/iconv.so
-%config(noreplace) %{php_sysconf}/conf.d/iconv.ini
-
-%files imap
-%defattr(644,root,root,755)
-%{extension_dir}/imap.so
-%config(noreplace) %{php_sysconf}/conf.d/imap.ini
-
-%files intl
-%defattr(644,root,root,755)
-%{extension_dir}/intl.so
-%config(noreplace) %{php_sysconf}/conf.d/intl.ini
-
-%files json
-%defattr(644,root,root,755)
-%{extension_dir}/json.so
-%config(noreplace) %{php_sysconf}/conf.d/json.ini
-
-%files ldap
-%defattr(644,root,root,755)
-%{extension_dir}/ldap.so
-%config(noreplace) %{php_sysconf}/conf.d/ldap.ini
-
-%files mbstring
-%defattr(644,root,root,755)
-%{extension_dir}/mbstring.so
-%config(noreplace) %{php_sysconf}/conf.d/mbstring.ini
-
-%files mcrypt
-%defattr(644,root,root,755)
-%{extension_dir}/mcrypt.so
-%config(noreplace) %{php_sysconf}/conf.d/mcrypt.ini
-
-%if 0%{suse_version} > 1110
-
-%files mssql
-%defattr(644,root,root,755)
-%{extension_dir}/mssql.so
-%config(noreplace) %{php_sysconf}/conf.d/mssql.ini
-%endif
-
-%files mysql
-%defattr(644,root,root,755)
-%{extension_dir}/mysql.so
-%config(noreplace) %{php_sysconf}/conf.d/mysql.ini
-%{extension_dir}/mysqli.so
-%config(noreplace) %{php_sysconf}/conf.d/mysqli.ini
-%{extension_dir}/pdo_mysql.so
-%config(noreplace) %{php_sysconf}/conf.d/pdo_mysql.ini
-
-%if %{with_firebird}
-%files firebird
-%defattr(644,root,root,755)
-%{extension_dir}/interbase.so
-%config(noreplace) %{php_sysconf}/conf.d/interbase.ini
-%{extension_dir}/pdo_firebird.so
-%config(noreplace) %{php_sysconf}/conf.d/pdo_firebird.ini
-%endif
-
-%files odbc
-%defattr(644,root,root,755)
-%{extension_dir}/odbc.so
-%config(noreplace) %{php_sysconf}/conf.d/odbc.ini
-%{extension_dir}/pdo_odbc.so
-%config(noreplace) %{php_sysconf}/conf.d/pdo_odbc.ini
-
-%files opcache
-%defattr(644,root,root,755)
-%{extension_dir}/opcache.so
-%config(noreplace) %{php_sysconf}/conf.d/opcache.ini
-
-%files openssl
-%defattr(644,root,root,755)
-%{extension_dir}/openssl.so
-%config(noreplace) %{php_sysconf}/conf.d/openssl.ini
-
-%files phar
-%defattr(644,root,root,755)
-%{extension_dir}/phar.so
-%config(noreplace) %{php_sysconf}/conf.d/phar.ini
-%{_bindir}/phar
-%{_bindir}/phar.phar
-
-%files pcntl
-%defattr(644,root,root,755)
-%{extension_dir}/pcntl.so
-%config(noreplace) %{php_sysconf}/conf.d/pcntl.ini
-
-%files pdo
-%defattr(644,root,root,755)
-%{extension_dir}/pdo.so
-%config(noreplace) %{php_sysconf}/conf.d/pdo.ini
-
-%files pgsql
-%defattr(644,root,root,755)
-%{extension_dir}/pgsql.so
-%config(noreplace) %{php_sysconf}/conf.d/pgsql.ini
-%{extension_dir}/pdo_pgsql.so
-%config(noreplace) %{php_sysconf}/conf.d/pdo_pgsql.ini
+## from a previous build
+# Installed (but unpackaged) file(s) found:
+# Note that man pages are not yet compressed. Say phar.1* instead of phar.1.gz
+while read a; do rm -f %{buildroot}/$a; done < %{S:101}	# unpackaged_files.txt
 
 %files posix
 %defattr(644,root,root,755)
+%dir /etc/php5
+%dir /etc/php5/conf.d
+%dir /usr/lib64/php5
+%dir /usr/lib64/php5/extensions
+
 %{extension_dir}/posix.so
 %config(noreplace) %{php_sysconf}/conf.d/posix.ini
-%if %{with_spell}
-
-%files pspell
-%defattr(644,root,root,755)
-%{extension_dir}/pspell.so
-%config(noreplace) %{php_sysconf}/conf.d/pspell.ini
-%endif
-
-%files readline
-%defattr(644,root,root,755)
-%{extension_dir}/readline.so
-%config(noreplace) %{php_sysconf}/conf.d/readline.ini
-
-%files shmop
-%defattr(644,root,root,755)
-%{extension_dir}/shmop.so
-%config(noreplace) %{php_sysconf}/conf.d/shmop.ini
-
-%files snmp
-%defattr(644,root,root,755)
-%{extension_dir}/snmp.so
-%config(noreplace) %{php_sysconf}/conf.d/snmp.ini
-
-%files soap
-%defattr(644,root,root,755)
-%{extension_dir}/soap.so
-%config(noreplace) %{php_sysconf}/conf.d/soap.ini
-
-%files sockets
-%defattr(644,root,root,755)
-%{extension_dir}/sockets.so
-%config(noreplace) %{php_sysconf}/conf.d/sockets.ini
-
-%files sqlite
-%defattr(644,root,root,755)
-%{extension_dir}/pdo_sqlite.so
-%config(noreplace) %{php_sysconf}/conf.d/pdo_sqlite.ini
-%{extension_dir}/sqlite3.so
-%config(noreplace) %{php_sysconf}/conf.d/sqlite3.ini
-
-%files suhosin
-%defattr(644,root,root,755)
-%{extension_dir}/suhosin.so
-%config(noreplace) %{php_sysconf}/conf.d/suhosin.ini
-
-%files sysvmsg
-%defattr(644,root,root,755)
-%{extension_dir}/sysvmsg.so
-%config(noreplace) %{php_sysconf}/conf.d/sysvmsg.ini
-
-%files sysvsem
-%defattr(644,root,root,755)
-%{extension_dir}/sysvsem.so
-%config(noreplace) %{php_sysconf}/conf.d/sysvsem.ini
-
-%files sysvshm
-%defattr(644,root,root,755)
-%{extension_dir}/sysvshm.so
-%config(noreplace) %{php_sysconf}/conf.d/sysvshm.ini
-
-%files tidy
-%defattr(644,root,root,755)
-%{extension_dir}/tidy.so
-%config(noreplace) %{php_sysconf}/conf.d/tidy.ini
-
-%files tokenizer
-%defattr(644,root,root,755)
-%{extension_dir}/tokenizer.so
-%config(noreplace) %{php_sysconf}/conf.d/tokenizer.ini
-
-%files wddx
-%defattr(644,root,root,755)
-%{extension_dir}/wddx.so
-%config(noreplace) %{php_sysconf}/conf.d/wddx.ini
-
-%files xmlrpc
-%defattr(644,root,root,755)
-%{extension_dir}/xmlrpc.so
-%config(noreplace) %{php_sysconf}/conf.d/xmlrpc.ini
-
-%files xmlreader
-%defattr(644,root,root,755)
-%{extension_dir}/xmlreader.so
-%config(noreplace) %{php_sysconf}/conf.d/xmlreader.ini
-
-%files xmlwriter
-%defattr(644,root,root,755)
-%{extension_dir}/xmlwriter.so
-%config(noreplace) %{php_sysconf}/conf.d/xmlwriter.ini
-
-%files xsl
-%defattr(644,root,root,755)
-%{extension_dir}/xsl.so
-%config(noreplace) %{php_sysconf}/conf.d/xsl.ini
-
-%files zip
-%defattr(644,root,root,755)
-%{extension_dir}/zip.so
-%config(noreplace) %{php_sysconf}/conf.d/zip.ini
-
-%files zlib
-%defattr(644,root,root,755)
-%{extension_dir}/zlib.so
-%config(noreplace) %{php_sysconf}/conf.d/zlib.ini
 
 %changelog
openSUSE Build Service is sponsored by