]> git.pld-linux.org Git - packages/php.git/blobdiff - php.spec
- backport from PHP CVS to fix compilation with PostgreSQL 7.2.x
[packages/php.git] / php.spec
index 6274099957625a3657f382eae7dccdbe9a7eab6b..5f80fc21be5ae0e36652abc1280d0b46b1442674 100644 (file)
--- a/php.spec
+++ b/php.spec
@@ -1,43 +1,52 @@
-#
+
+# SECURITY: CAN-2003-0097 CAN-2003-0166 CAN-2003-0172(?) CAN-2003-0860 CAN-2003-0861 CAN-2003-0863 CAN-2004-0263(?) CAN-2004-0594 CAN-2004-0595 CAN-2004-0958 CAN-2004-0959
+
 # Automatic pear requirements finding:
 %include       /usr/lib/rpm/macros.php
 
+# Conditional build:
+%bcond_with interbase   # - with InterBase extension module    (BR: proprietary libs)
+%bcond_with java        # - with Java extension module         (BR: jdk)
+%bcond_with oci8        # - with Oracle oci8 extension module  (BR: proprietary libs)
+%bcond_with oracle      # - with oracle extension module               (BR: proprietary libs)
+%bcond_with pcntl       # - with pcntl extension module                (problems: SEGV on exit)
+%bcond_without cpdf     # - without cpdf extension module
+%bcond_without curl     # - without CURL extension module
+%bcond_without domxslt  # - without DOM XSLT/EXSLT support in DOM XML extension module
+%bcond_without gif      # - build GD extension module with gd library without GIF support
+%bcond_without imap     # - without IMAP extension module
+%bcond_without ldap     # - without LDAP extension module
+%bcond_without mhash    # - without mhash extension module
+%bcond_without ming     # - without ming extension module
+%bcond_without mm       # - without mm support for session storage
+%bcond_without mnogosearch  # - without mnogosearch extension module
+%bcond_without msession # - without msession extension module
+%bcond_without odbc     # - without ODBC extension module
+%bcond_without openssl  # - without OpenSSL support and OpenSSL extension module
+%bcond_without pcre     # - without PCRE extension module
+%bcond_without pdf      # - without PDF extension module
+%bcond_without pspell   # - without pspell extension module
+%bcond_without pgsql    # - without PostgreSQL extension module
+%bcond_without snmp     # - without SNMP extension module
+%bcond_without recode   # - without recode extension module
+%bcond_without sybase_ct # - without Sybase-CT extension module
+%bcond_without wddx     # - without WDDX extension module
+%bcond_without xml      # - without XML extension module
+%bcond_without xmlrpc   # - without XML-RPC extension module
+%bcond_without xslt     # - without XSLT extension module
+
 %define        _apache2        %(rpm -q apache-devel 2> /dev/null | grep -Eq '\\-2\\.[0-9]+\\.' && echo 1 || echo 0)
-%define                apxs            /usr/sbin/apxs
+%define        apxs            /usr/sbin/apxs
 
 %if %{_apache2}
-%define _without_recode 1
-%define _without_mm 1
+%undefine      with_recode
+%undefine      with_mm
 %endif
 
 %ifnarch %{ix86}
-%define _without_msession 1
+%undefine      with_msession
 %endif
 
-# Conditional build:
-# _with_interbase      - with InterBase extension module       (BR: proprietary libs)
-# _with_java           - with Java extension module            (BR: jdk)
-# _with_oci8           - with Oracle oci8 extension module     (BR: proprietary libs)
-# _with_oracle         - with oracle extension module          (BR: proprietary libs)
-# _with_pcntl          - with pcntl extension module           (problems: SEGV on exit)
-# _without_cpdf                - without cpdf extension module
-# _without_domxslt     - without DOM XSLT/EXSLT support in DOM XML extension module
-# _without_gif         - build GD extension module with gd library without GIF support
-# _without_imap                - without IMAP extension module
-# _without_ldap                - without LDAP extension module
-# _without_mm          - without mm support for session storage
-# _without_msession    - without msession extension module
-# _without_odbc                - without ODBC extension module
-# _without_openssl     - without OpenSSL support and OpenSSL extension module
-# _without_pcre                - without PCRE extension module
-# _without_pdf         - without PDF extension module
-# _without_snmp                - without SNMP extension module
-# _without_recode      - without recode extension module
-# _without_sybase_ct   - without Sybase-CT extension module
-# _without_wddx                - without WDDX extension module
-# _without_xml         - without XML extension module
-# _without_xmlrpc      - without XML-RPC extension module
-# _without_xslt                - without XSLT extension module
 Summary:       The PHP HTML-embedded scripting language for use with Apache
 Summary(fr):   Le langage de script embarque-HTML PHP pour Apache
 Summary(pl):   Jêzyk skryptowy PHP -- u¿ywany wraz z serwerem Apache
@@ -46,16 +55,18 @@ Summary(ru):        PHP 
 Summary(uk):   PHP ÷ÅÒÓ¦§ 4 -- ÍÏ×Á ÐÒÅÐÒÏÃÅÓÕ×ÁÎÎÑ HTML-ÆÁÊ̦×, ×ÉËÏÎÕ×ÁÎÁ ÎÁ ÓÅÒ×ÅÒ¦
 Name:          php
 Version:       4.2.3
-Release:       1
+Release:       17
 Epoch:         3
 Group:         Libraries
 License:       PHP
-Source0:       http://www.php.net/distributions/%{name}-%{version}.tar.bz2
+Source0:       http://static.php.net/www.php.net/distributions/%{name}-%{version}.tar.bz2
+# Source0-md5: a0c7531f3d53a7736742c780f72a0f41
 Source1:       FAQ.%{name}
 Source2:       zend.gif
 Source3:       http://www.php.net/distributions/manual/%{name}_manual_en.tar.bz2
+# Source3-md5: d89cb5124f95d2c30fb0d0e2dfe5de4e
 Source4:       %{name}-module-install
-Source5:       %{name}-mod_php.conf
+Source5:       %{name}-mod_%{name}.conf
 Source6:       %{name}-cgi.ini
 Source7:       %{name}-apache.ini
 Patch0:                %{name}-shared.patch
@@ -64,24 +75,31 @@ Patch2:             %{name}-mysql-socket.patch
 Patch3:                %{name}-mail.patch
 Patch4:                %{name}-link-libs.patch
 Patch5:                %{name}-fastcgi.patch
-#Patch6:               %{name}-no_php_pcre_in_SAPI_c.patch
-Patch7:                %{name}-libpq_fs_h_path.patch
-Patch8:                %{name}-wddx-fix.patch
-Patch9:                %{name}-cpdf-fix.patch
-Patch10:       %{name}-session-fix-shared.patch
-Patch11:       %{name}-hyperwave-fix.patch
-Patch12:       %{name}-openssl-for-ext-only.patch
-Patch13:       %{name}-java-fix.patch
-Patch14:       %{name}-mcal-shared-lib.patch
-Patch15:       %{name}-msession-shared-lib.patch
-Patch16:       %{name}-build_modules.patch
-Patch17:       %{name}-sapi-ini-file.patch
-Patch18:       %{name}-php_iconv_string_declaration.patch
-Patch19:       %{name}-pear-cosmetic.patch
-Patch20:       %{name}-mnogosearch.patch
-Patch21:       %{name}-ini.patch
-Patch22:       %{name}-acam.patch
-Patch23:       %{name}-xmlrpc-fix.patch
+Patch6:                %{name}-libpq_fs_h_path.patch
+Patch7:                %{name}-wddx-fix.patch
+Patch8:                %{name}-cpdf-fix.patch
+Patch9:                %{name}-session-fix-shared.patch
+Patch10:       %{name}-hyperwave-fix.patch
+Patch11:       %{name}-openssl-for-ext-only.patch
+Patch12:       %{name}-java-fix.patch
+Patch13:       %{name}-mcal-shared-lib.patch
+Patch14:       %{name}-msession-shared-lib.patch
+Patch15:       %{name}-build_modules.patch
+Patch16:       %{name}-sapi-ini-file.patch
+Patch17:       %{name}-%{name}_iconv_string_declaration.patch
+Patch18:       %{name}-pear-cosmetic.patch
+Patch19:       %{name}-mnogosearch.patch
+Patch20:       %{name}-ini.patch
+Patch21:       %{name}-acam.patch
+Patch22:       %{name}-xmlrpc-fix.patch
+Patch23:       %{name}-iconv-bug18039.patch
+# CAN-2002-1396
+Patch24:       %{name}-wrap.patch
+# CAN-2003-0442
+Patch25:       %{name}-sessid.patch
+# similar to CAN-2004-0263(?)
+Patch26:       %{name}-vhost.patch
+Patch27:       %{name}-gd_free.patch
 Icon:          php4.gif
 URL:           http://www.php.net/
 BuildRequires: apache-devel
@@ -90,22 +108,26 @@ BuildRequires:     automake >= 1.4d
 BuildRequires: bison
 BuildRequires: bzip2-devel
 BuildRequires: cracklib-devel >= 2.7-15
-BuildRequires: curl-devel
+%{?with_curl:BuildRequires:    curl-devel}
 BuildRequires: cyrus-sasl-devel
 BuildRequires: db3-devel >= 3.1.17
-%if %(expr %{?_without_xml:0}%{!?_without_xml:1} + %{?_without_xmlrpc:0}%{!?_without_xmlrpc:1})
+%if %{defined with_xml} || %{defined with_xmlrpc}
 BuildRequires: expat-devel
 %endif
 BuildRequires: flex
-%{!?_without_sybase_ct:BuildRequires:  freetds-devel}
+%{?with_sybase_ct:BuildRequires: freetds-devel}
 BuildRequires: freetype-devel >= 2.0
 BuildRequires: gd-devel >= 2.0.1
-%{!?_without_gif:BuildRequires:        gd-devel(gif)}
+%if %{defined with_gif}
+BuildRequires: gd-devel(gif)
+%else
+BuildConflicts: gd-devel(gif)
+%endif
 BuildRequires: gdbm-devel
 BuildRequires: gmp-devel
-%{!?_without_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2 }
-%{?_with_java:BuildRequires:   jdk >= 1.1}
-%{!?_without_cpdf:BuildRequires:       libcpdf-devel >= 2.02r1-2}
+%{?with_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2 }
+%{?with_java:BuildRequires:    jdk >= 1.1}
+%{?with_cpdf:BuildRequires:    libcpdf-devel >= 2.02r1-2}
 BuildRequires: libjpeg-devel
 BuildRequires: libltdl-devel >= 1.4
 BuildRequires: libmcal-devel
@@ -113,31 +135,31 @@ BuildRequires:    libmcrypt-devel >= 2.4.4
 BuildRequires: libpng >= 1.0.8
 BuildRequires: libtiff-devel
 BuildRequires: libtool >= 0:1.4.2-9
-%{!?_without_xml:BuildRequires:        libxml2-devel >= 2.2.7}
-%{!?_without_domxslt:BuildRequires:    libxslt-devel >= 1.0.3}
-BuildRequires: mhash-devel
-BuildRequires: ming-devel >= 0.1.0
-%{!?_without_mm:BuildRequires: mm-devel >= 1.1.3}
-BuildRequires: mnogosearch-devel >= 3.2.6
+%{?with_xml:BuildRequires:     libxml2-devel >= 2.2.7}
+%{?with_domxslt:BuildRequires: libxslt-devel >= 1.0.3}
+%{?with_mhash:BuildRequires:   mhash-devel}
+%{?with_ming:BuildRequires:    ming-devel >= 0.1.0}
+%{?with_mm:BuildRequires:      mm-devel >= 1.1.3}
+%{?with_mnogosearch:BuildRequires:     mnogosearch-devel >= 3.2.6}
 BuildRequires: mysql-devel >= 3.23.32
-%{!?_without_ldap:BuildRequires: openldap-devel >= 2.0}
-%if %(expr %{?_without_openssl:0}%{!?_without_openssl:1} + %{?_without_ldap:0}%{!?_without_ldap:1})
-BuildRequires: openssl-devel >= 0.9.6a
+%{?with_ldap:BuildRequires: openldap-devel >= 2.0}
+%if %{defined with_openssl} || %{defined with_ldap}
+BuildRequires: openssl-devel >= 0.9.6m
 %endif
 BuildRequires: pam-devel
-%{!?_without_pdf:BuildRequires:        pdflib-devel >= 4.0.0}
+%{?with_pdf:BuildRequires:     pdflib-devel >= 4.0.0}
 BuildRequires: perl
-%{!?_without_msession:BuildRequires:   phoenix-devel}
-BuildRequires: postgresql-devel
-BuildRequires: postgresql-backend-devel >= 7.2
-BuildRequires: pspell-devel
-%{!?_without_recode:BuildRequires:     recode-devel >= 3.5d-3}
-BuildRequires: rpm-php-pearprov >= 4.0.2-80
-%{!?_without_xslt:BuildRequires:       sablotron-devel}
+%{?with_msession:BuildRequires:        phoenix-devel}
+%{?with_pgsql:BuildRequires:   postgresql-devel}
+%{?with_pgsql:BuildRequires:   postgresql-backend-devel >= 7.2}
+%{?with_pspell:BuildRequires:  pspell-devel}
+%{?with_recode:BuildRequires:  recode-devel >= 3.5d-3}
+BuildRequires: rpm-php-pearprov >= 4.0.2-100
+%{?with_xslt:BuildRequires:    sablotron-devel}
 BuildRequires: t1lib-devel
-%{!?_without_snmp:BuildRequires: ucd-snmp-devel >= 4.2.3}
-%{!?_without_odbc:BuildRequires: unixODBC-devel}
-%{!?_without_xmlrpc:BuildRequires:     xmlrpc-epi-devel}
+%{?with_snmp:BuildRequires: ucd-snmp-devel >= 4.2.6}
+%{?with_odbc:BuildRequires: unixODBC-devel}
+%{?with_xmlrpc:BuildRequires:  xmlrpc-epi-devel}
 BuildRequires: yaz-devel
 BuildRequires: zip
 BuildRequires: zlib-devel >= 1.0.9
@@ -146,12 +168,13 @@ BuildRequires:    zziplib-devel
 # apache 1.3 vs apache 2.0
 %if %{_apache2}
 PreReq:                apache >= 2.0.40
+%requires_eq   apache
 %else
 PreReq:                apache(EAPI) < 2.0.0
 PreReq:                apache(EAPI) >= 1.3.9
 %endif
 PreReq:                perl
-PreReq:                %{_sbindir}/apxs
+PreReq:                /usr/sbin/apxs
 PreReq:                %{name}-common = %{version}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     phpfi
@@ -321,7 +344,8 @@ Manual da linguagem PHP, em formato HTML.
 Summary:       bcmath extension module for PHP
 Summary(pl):   Modu³ bcmath dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description bcmath
 This is a dynamic shared object (DSO) for Apache that will add bc
@@ -335,7 +359,8 @@ matematycznych takich jak w programie bc.
 Summary:       Bzip2 extension module for PHP
 Summary(pl):   Modu³ bzip2 dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description bzip2
 This is a dynamic shared object (DSO) for Apache that will add
@@ -348,7 +373,8 @@ Modu
 Summary:       Calendar extension module for PHP
 Summary(pl):   Modu³ funkcji kalendarza dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description calendar
 This is a dynamic shared object (DSO) for Apache that will add
@@ -362,7 +388,8 @@ wsparcie dla kalendarza.
 Summary:       cpdf extension module for PHP
 Summary(pl):   Modu³ cpdf dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description cpdf
 This is a dynamic shared object (DSO) for Apache that will add libcpdf
@@ -375,7 +402,8 @@ Modu
 Summary:       crack extension module for PHP
 Summary(pl):   Modu³ crack dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description crack
 This is a dynamic shared object (DSO) for Apache that will add
@@ -392,7 +420,8 @@ Uwaga: to jest modu
 Summary:       ctype extension module for PHP
 Summary(pl):   Modu³ ctype dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description ctype
 This is a dynamic shared object (DSO) for Apache that will add ctype
@@ -405,7 +434,8 @@ Modu
 Summary:       curl extension module for PHP
 Summary(pl):   Modu³ curl dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description curl
 This is a dynamic shared object (DSO) for Apache that will add curl
@@ -418,7 +448,8 @@ Modu
 Summary:       DBA extension module for PHP
 Summary(pl):   Modu³ DBA dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description dba
 This is a dynamic shared object (DSO) for Apache that will add
@@ -432,7 +463,8 @@ wsparcie dla baz danych opartych na plikach (DBA).
 Summary:       DBase extension module for PHP
 Summary(pl):   Modu³ DBase dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description dbase
 This is a dynamic shared object (DSO) for Apache that will add DBase
@@ -445,7 +477,8 @@ Modu
 Summary:       DBX extension module for PHP
 Summary(pl):   Modu³ DBX dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description dbx
 This is a dynamic shared object (DSO) for Apache that will add DB
@@ -461,7 +494,8 @@ mysql, pgsql, mssql, fbsql i inne.
 Summary:       Direct I/O extension module for PHP
 Summary(pl):   Modu³ Direct I/O dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description dio
 This is a dynamic shared object (DSO) for Apache that will add direct
@@ -479,6 +513,8 @@ Uwaga: to jest modu
 Summary:       DOM XML extension module for PHP
 Summary(pl):   Modu³ DOM XML dla PHP
 Group:         Libraries
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description domxml
 This is a dynamic shared object (DSO) for Apache that will add DOM XML
@@ -495,7 +531,8 @@ Uwaga: to jest modu
 Summary:       exif extension module for PHP
 Summary(pl):   Modu³ exif dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description exif
 This is a dynamic shared object (DSO) for Apache that will add exif
@@ -508,7 +545,8 @@ Modu
 Summary:       filePro extension module for PHP
 Summary(pl):   Modu³ filePro dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description filepro
 This is a dynamic shared object (DSO) for Apache that will add PHP
@@ -522,7 +560,8 @@ mo
 Summary:       FTP extension module for PHP
 Summary(pl):   Modu³ FTP dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description ftp
 This is a dynamic shared object (DSO) for Apache that will add FTP
@@ -535,8 +574,10 @@ Modu
 Summary:       GD extension module for PHP
 Summary:       Modu³ GD dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
-%{!?_without_gif:Provides:     %{name}-gd(gif) = %{epoch}:%{version}}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
+%{?with_gif:Requires:  gd(gif)}
+%{?with_gif:Provides:  %{name}-gd(gif) = %{epoch}:%{version}-%{release}}
 
 %description gd
 This is a dynamic shared object (DSO) for Apache that will add GD
@@ -552,7 +593,8 @@ obrazk
 Summary:       gettext extension module for PHP
 Summary(pl):   Modu³ gettext dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description gettext
 This is a dynamic shared object (DSO) for Apache that will add gettext
@@ -565,7 +607,8 @@ Modu
 Summary:       gmp extension module for PHP
 Summary(pl):   Modu³ gmp dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description gmp
 This is a dynamic shared object (DSO) for Apache that will add
@@ -578,7 +621,8 @@ Modu
 Summary:       Hyperwave extension module for PHP
 Summary(pl):   Modu³ Hyperwave dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description hyperwave
 This is a dynamic shared object (DSO) for Apache that will add
@@ -591,7 +635,8 @@ Modu
 Summary:       iconv extension module for PHP
 Summary(pl):   Modu³ iconv dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description iconv
 This is a dynamic shared object (DSO) for Apache that will add iconv
@@ -605,7 +650,8 @@ Summary:    IMAP extension module for PHP
 Summary(pl):   Modu³ IMAP dla PHP
 Summary(pt_BR):        Um módulo para aplicações PHP que usam IMAP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description imap
 This is a dynamic shared object (DSO) for Apache that will add IMAP
@@ -621,7 +667,8 @@ Um m
 Summary:       Interbase database module for PHP
 Summary(pl):   Modu³ bazy danych Interbase dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 Autoreq:       false
 
 %description interbase
@@ -637,7 +684,8 @@ Modu
 Summary:       Java extension module for PHP
 Summary(pl):   Modu³ Javy dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description java
 This is a dynamic shared object (DSO) for Apache that will add JAVA
@@ -653,7 +701,8 @@ Summary:    LDAP extension module for PHP
 Summary(pl):   Modu³ LDAP dla PHP
 Summary(pt_BR):        Um módulo para aplicações PHP que usam LDAP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description ldap
 This is a dynamic shared object (DSO) for Apache that will add LDAP
@@ -664,11 +713,13 @@ Modu
 
 %description ldap -l pt_BR
 Um módulo para aplicações PHP que usam LDAP.
+
 %package mbstring
 Summary:       mbstring extension module for PHP
 Summary(pl):   Modu³ mbstring dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description mbstring
 This is a dynamic shared object (DSO) for Apache that will add
@@ -681,7 +732,8 @@ Modu
 Summary:       mcal extension module for PHP
 Summary(pl):   Modu³ mcal dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description mcal
 This is a dynamic shared object (DSO) for Apache that will add mcal
@@ -695,7 +747,8 @@ do kalendarzy).
 Summary:       mcrypt extension module for PHP
 Summary(pl):   Modu³ mcrypt dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description mcrypt
 This is a dynamic shared object (DSO) for Apache that will add mcrypt
@@ -708,7 +761,8 @@ Modu
 Summary:       mhash extension module for PHP
 Summary(pl):   Modu³ mhash dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description mhash
 This is a dynamic shared object (DSO) for Apache that will add mhash
@@ -721,7 +775,8 @@ Modu
 Summary:       ming extension module for PHP
 Summary(pl):   Modu³ ming dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description ming
 This is a dynamic shared object (DSO) for Apache that will add ming
@@ -735,7 +790,8 @@ ming.
 Summary:       mnoGoSearch extension module for PHP
 Summary(pl):   Modu³ mnoGoSearch dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description mnogosearch
 This is a dynamic shared object (DSO) for Apache that will allow you
@@ -749,7 +805,8 @@ wyszukiwarki mnoGoSearch.
 Summary:       msession extension module for PHP
 Summary(pl):   Modu³ msession dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description msession
 This is a dynamic shared object (DSO) for Apache that will allow you
@@ -768,7 +825,8 @@ Summary:    MySQL database module for PHP
 Summary(pl):   Modu³ bazy danych MySQL dla PHP
 Summary(pt_BR):        Um módulo para aplicações PHP que usam bancos de dados MySQL
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description mysql
 This is a dynamic shared object (DSO) for Apache that will add MySQL
@@ -785,7 +843,8 @@ Um m
 Summary:       Oracle 8 database module for PHP
 Summary(pl):   Modu³ bazy danych Oracle 8 dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 Autoreq:       false
 
 %description oci8
@@ -802,7 +861,8 @@ Summary:    ODBC extension module for PHP
 Summary(pl):   Modu³ ODBC dla PHP
 Summary(pt_BR):        Um módulo para aplicações PHP que usam bases de dados ODBC
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 Requires:      unixODBC >= 2.1.1-3
 
 %description odbc
@@ -819,7 +879,8 @@ Um m
 Summary:       OpenSSL extension module for PHP
 Summary(pl):   Modu³ OpenSSL dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description openssl
 This is a dynamic shared object (DSO) for Apache that will add OpenSSL
@@ -836,7 +897,8 @@ Uwaga: to jest modu
 Summary:       Oracle 7 database module for PHP
 Summary(pl):   Modu³ bazy danych Oracle 7 dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 Autoreq:       false
 
 %description oracle
@@ -850,7 +912,8 @@ Modu
 Summary:       Overload extension module for PHP
 Summary(pl):   Modu³ Overload dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description overload
 This is a dynamic shared object (DSO) for Apache that will add
@@ -867,7 +930,8 @@ Uwaga: to jest modu
 Summary:       Process Control extension module for PHP
 Summary(pl):   Modu³ Process Control dla PHP
 Group:         Libraries
-PreReq:                %{name}-cgi = %{version}
+Requires(post,preun):  %{name}-cgi = %{version}
+Requires:      %{name}-cgi = %{version}
 
 %description pcntl
 This is a dynamic shared object (DSO) for Apache that will add process
@@ -888,7 +952,8 @@ u
 Summary:       PCRE extension module for PHP
 Summary(pl):   Modu³ PCRE dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description pcre
 This is a dynamic shared object (DSO) for Apache that will add Perl
@@ -902,8 +967,9 @@ Modu
 Summary:       libPDF module for PHP
 Summary(pl):   Modu³ do tworzenia plików PDF dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
 PreReq:                pdflib
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description pdf
 This is a dynamic shared object (DSO) for Apache that will add PDF
@@ -917,7 +983,8 @@ pdflib.
 Summary:       PostgreSQL database module for PHP
 Summary(pl):   Modu³ bazy danych PostgreSQL dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description pgsql
 This is a dynamic shared object (DSO) for Apache that will add
@@ -935,7 +1002,8 @@ Um m
 Summary:       POSIX extension module for PHP
 Summary(pl):   Modu³ POSIX dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description posix
 This is a dynamic shared object (DSO) for Apache that will add POSIX
@@ -948,7 +1016,8 @@ Modu
 Summary:       pspell extension module for PHP
 Summary(pl):   Modu³ pspell dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description pspell
 This is a dynamic shared object (DSO) for Apache that will add pspell
@@ -963,7 +1032,8 @@ sprawdzanie pisowni s
 Summary:       recode extension module for PHP
 Summary(pl):   Modu³ recode dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 Requires:      recode >= 3.5d-3
 
 %description recode
@@ -978,7 +1048,8 @@ bibliotek
 Summary:       session extension module for PHP
 Summary(pl):   Modu³ session dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description session
 This is a dynamic shared object (DSO) for Apache that will add session
@@ -991,7 +1062,8 @@ Modu
 Summary:       Shared Memory Operations extension module for PHP
 Summary(pl):   Modu³ shmop dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description shmop
 This is a dynamic shared object (DSO) for Apache that will add Shared
@@ -1008,7 +1080,8 @@ Uwaga: to jest modu
 Summary:       SNMP extension module for PHP
 Summary(pl):   Modu³ SNMP dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description snmp
 This is a dynamic shared object (DSO) for Apache that will add SNMP
@@ -1021,7 +1094,8 @@ Modu
 Summary:       sockets extension module for PHP
 Summary(pl):   Modu³ socket dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description sockets
 This is a dynamic shared object (DSO) for Apache that will add sockets
@@ -1038,7 +1112,8 @@ Uwaga: to jest modu
 Summary:       Sybase-CT extension module for PHP
 Summary(pl):   Modu³ Sybase-CT dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description sybase-ct
 This is a dynamic shared object (DSO) for Apache that will add Sybase
@@ -1052,7 +1127,8 @@ CT-lib.
 Summary:       SysV sem extension module for PHP
 Summary(pl):   Modu³ SysV sem dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description sysvsem
 This is a dynamic shared object (DSO) for Apache that will add SysV
@@ -1065,7 +1141,8 @@ Modu
 Summary:       SysV shm extension module for PHP
 Summary(pl):   Modu³ SysV shm dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description sysvshm
 This is a dynamic shared object (DSO) for Apache that will add SysV
@@ -1078,8 +1155,9 @@ Modu
 Summary:       wddx extension module for PHP
 Summary(pl):   Modu³ wddx dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
 PreReq:                %{name}-session = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description wddx
 This is a dynamic shared object (DSO) for Apache that will add wddx
@@ -1092,7 +1170,8 @@ Modu
 Summary:       XML extension module for PHP
 Summary(pl):   Modu³ XML dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description xml
 This is a dynamic shared object (DSO) for Apache that will add XML
@@ -1109,7 +1188,8 @@ zwi
 Summary:       xmlrpc extension module for PHP
 Summary(pl):   Modu³ xmlrpc dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description xmlrpc
 This is a dynamic shared object (DSO) for Apache that will add XMLRPC
@@ -1126,7 +1206,8 @@ Uwaga: to jest modu
 Summary:       xslt extension module for PHP
 Summary(pl):   Modu³ xslt dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description xslt
 This is a dynamic shared object (DSO) for Apache that will add xslt
@@ -1139,7 +1220,8 @@ Modu
 Summary:       yaz extension module for PHP
 Summary(pl):   Modu³ yaz dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description yaz
 This is a dynamic shared object (DSO) for Apache that will add yaz
@@ -1154,7 +1236,8 @@ Z39.50 s
 Summary:       NIS (yp) extension module for PHP
 Summary(pl):   Modu³ NIS (yp) dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description yp
 This is a dynamic shared object (DSO) for Apache that will add NIS
@@ -1168,7 +1251,8 @@ wsparcie dla NIS (Yellow Pages).
 Summary:       zip extension module for PHP
 Summary(pl):   Modu³ zip dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description zip
 This is a dynamic shared object (DSO) for Apache that will add ZZipLib
@@ -1182,7 +1266,8 @@ Modu
 Summary:       Zlib extension module for PHP
 Summary(pl):   Modu³ zlib dla PHP
 Group:         Libraries
-PreReq:                %{name}-common = %{version}
+Requires(post,preun):  %{name}-common = %{version}
+Requires:      %{name}-common = %{version}
 
 %description zlib
 This is a dynamic shared object (DSO) for Apache that will add
@@ -1247,7 +1332,7 @@ Repozytorium Aplikacji. Ten pakiet zawiera aplikacje potrzebne do
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
-#%patch6 -p1
+%patch6 -p1
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
@@ -1261,13 +1346,17 @@ Repozytorium Aplikacji. Ten pakiet zawiera aplikacje potrzebne do
 %patch17 -p1
 %patch18 -p1
 %patch19 -p1
-%patch20 -p1
 cp php.ini-dist php.ini
-%patch21 -p1
+%patch20 -p1
 # for ac2.53b/am1.6b - AC_LANG_CXX has AM_CONDITIONAL, so cannot be invoked
 # conditionally...
+%patch21 -p1
 %patch22 -p1
 %patch23 -p1
+%patch24 -p1
+%patch25 -p1
+%patch26 -p1
+%patch27 -p1
 
 install -d manual
 bzip2 -dc %{SOURCE3} | tar -xf - -C manual
@@ -1277,10 +1366,10 @@ CFLAGS="%{rpmcflags} -DEAPI=1 -I%{_prefix}/X11R6/include"
 EXTENSION_DIR="%{extensionsdir}"; export EXTENSION_DIR
 ./buildconf
 %{__libtoolize}
-aclocal
+%{__aclocal}
 autoconf
 #for i in cgi fastcgi apxs ; do
-PROG_SENDMAIL="/usr/lib/sendmail"; export PROG_SENDMAIL
+PROG_SENDMAIL="%{_prefix}/lib/sendmail"; export PROG_SENDMAIL
 for i in cgi apxs ; do
 %configure \
        `[ $i = cgi ] && echo --enable-discard-path` \
@@ -1306,7 +1395,7 @@ for i in cgi apxs ; do
        --enable-magic-quotes \
        --enable-mbstring=shared --disable-mbstr-enc-trans --enable-mbregex \
        --enable-overload=shared \
-       %{?_with_pcntl:--enable-pcntl=shared}%{!?_with_pcntl:--disable-pcntl} \
+       %{?with_pcntl:--enable-pcntl=shared}%{!?with_pcntl:--disable-pcntl} \
        --enable-posix=shared \
        --enable-session \
        --enable-shared \
@@ -1318,20 +1407,25 @@ for i in cgi apxs ; do
        --enable-safe-mode \
        --enable-sockets=shared \
        --enable-ucd-snmp-hack \
-       %{!?_without_wddx:--enable-wddx=shared} \
-       %{?_without_xml:--disable-xml}%{!?_without_xml:--enable-xml=shared} \
-       %{!?_without_xslt:--enable-xslt=shared} \
+       %{?with_wddx:--enable-wddx=shared} \
+       %{!?with_xml:--disable-xml}%{?with_xml:--enable-xml=shared} \
+       %{?with_xslt:--enable-xslt=shared} \
        --enable-yp=shared \
        --with-bz2=shared \
-       %{!?_without_cpdf:--with-cpdflib=shared} \
+       %{?with_cpdf:--with-cpdflib=shared} \
+       --with-cpdflin \
        --with-crack=shared \
+%if %{defined with_curl}
        --with-curl=shared \
+%else
+       --without-curl \
+%endif
        --without-db2 \
        --with-db3 \
        --with-dbase=shared \
        --with-dom=shared \
-       %{!?_without_domxslt:--with-dom-xslt=shared --with-dom-exslt=shared} \
-%if %(expr %{?_without_xml:0}%{!?_without_xml:1} + %{?_without_xmlrpc:0}%{!?_without_xmlrpc:1})
+       %{?with_domxslt:--with-dom-xslt=shared --with-dom-exslt=shared} \
+%if %{defined with_xml} || %{defined with_xmlrpc}
        --with-expat-dir=shared,/usr \
 %else
        --without-expat-dir \
@@ -1344,39 +1438,39 @@ for i in cgi apxs ; do
        --with-gdbm \
        --with-gmp=shared \
        --with-hyperwave=shared \
-       %{!?_without_imap:--with-imap=shared --with-imap-ssl} \
-       %{?_with_interbase:--with-interbase=shared} \
-       %{?_with_java:--with-java=/usr/lib/java} \
+       %{?with_imap:--with-imap=shared --with-imap-ssl} \
+       %{?with_interbase:--with-interbase=shared} \
+       %{?with_java:--with-java=/usr/lib/java} \
        --with-jpeg-dir=shared,/usr \
-       %{!?_without_ldap:--with-ldap=shared} \
+       %{?with_ldap:--with-ldap=shared} \
        --with-mcal=shared,/usr \
        --with-mcrypt=shared \
-       --with-mhash=shared \
-       --with-ming=shared \
-       %{!?_without_mm:--with-mm} \
-       --with-mnogosearch=shared,/usr \
-       %{!?_without_msession:--with-msession=shared}%{?_without_msession:--without-msession} \
+       %{?with_mhash:--with-mhash=shared} \
+       %{?with_ming:--with-ming=shared} \
+       %{?with_mm:--with-mm} \
+       %{!?with_mnogosearch:--without-mnogosearch}%{?with_mnogosearch:--with-mnogosearch=shared,/usr} \
+       %{?with_msession:--with-msession=shared}%{!?with_msession:--without-msession} \
        --with-mysql=shared,/usr \
        --with-mysql-sock=/var/lib/mysql/mysql.sock \
-       %{?_with_oci8:--with-oci8=shared} \
-       %{!?_without_openssl:--with-openssl=shared} \
-       %{?_with_oracle:--with-oracle=shared} \
-       %{?_without_pcre:--without-pcre-regex}%{!?_without_pcre:--with-pcre-regex=shared} \
-       %{!?_without_pdf:--with-pdflib=shared} \
+       %{?with_oci8:--with-oci8=shared} \
+       %{?with_openssl:--with-openssl=shared} \
+       %{?with_oracle:--with-oracle=shared} \
+       %{!?with_pcre:--without-pcre-regex}%{?with_pcre:--with-pcre-regex=shared} \
+       %{?with_pdf:--with-pdflib=shared} \
        --with-pear=%{php_pear_dir} \
-       --with-pgsql=shared,/usr \
+       %{!?with_pgsql:--without-pgsql}%{?with_pgsql:--with-pgsql=shared,/usr} \
        --with-png-dir=shared,/usr \
-       --with-pspell=shared \
-       %{!?_without_recode:--with-recode=shared} \
+       %{?with_pspell:--with-pspell=shared} \
+       %{?with_recode:--with-recode=shared} \
        --with-regex=php \
        --with-sablot-js=shared,no \
-       %{!?_without_snmp:--with-snmp=shared} \
-       %{!?_without_sybase_ct:--with-sybase-ct=shared,/usr} \
+       %{?with_snmp:--with-snmp=shared} \
+       %{?with_sybase_ct:--with-sybase-ct=shared,/usr} \
        --with-t1lib=shared \
        --with-tiff-dir=shared,/usr \
-       %{!?_without_odbc:--with-unixODBC=shared} \
-       %{?_without_xmlrpc:--without-xmlrpc}%{!?_without_xmlrpc:--with-xmlrpc=shared,/usr} \
-       %{!?_without_xslt:--with-xslt-sablot=shared} \
+       %{?with_odbc:--with-unixODBC=shared} \
+       %{!?with_xmlrpc:--without-xmlrpc}%{?with_xmlrpc:--with-xmlrpc=shared,/usr} \
+       %{?with_xslt:--with-xslt-sablot=shared} \
        --with-yaz=shared \
        --with-zip=shared \
        --with-zlib=shared \
@@ -1413,7 +1507,7 @@ install -d $RPM_BUILD_ROOT{%{_libdir}/{php,apache},%{_sysconfdir}/{apache,cgi}}
        INSTALL_ROOT=$RPM_BUILD_ROOT \
        INSTALL_IT="install libs/libphp4.so $RPM_BUILD_ROOT%{_libdir}/apache/ ; install libs/libphp_common*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}"
 
-%{?_with_java:install ext/java/php_java.jar $RPM_BUILD_ROOT%{_libdir}}
+%{?with_java:install ext/java/php_java.jar $RPM_BUILD_ROOT%{_libdir}}
 
 install .libs/php $RPM_BUILD_ROOT%{_bindir}/php
 
@@ -1990,7 +2084,7 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/calendar.so
 
-%if %{?_without_cpdf:0}%{!?_without_cpdf:1}
+%if %{defined with_cpdf}
 %files cpdf
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/cpdf.so
@@ -2004,9 +2098,11 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/ctype.so
 
+%if %{defined with_curl}
 %files curl
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/curl.so
+%endif
 
 %files dba
 %defattr(644,root,root,755)
@@ -2060,26 +2156,26 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/iconv.so
 
-%if %{?_without_imap:0}%{!?_without_imap:1}
+%if %{defined with_imap}
 %files imap
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/imap.so
 %endif
 
-%if %{?_with_interbase:1}%{!?_with_interbase:0}
+%if %{defined with_interbase}
 %files interbase
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/interbase.so
 %endif
 
-%if %{?_with_java:1}%{!?_with_java:0}
+%if %{defined with_java}
 %files java
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/java.so
 %{_libdir}/php_java.jar
 %endif
 
-%if %{?_without_ldap:0}%{!?_without_ldap:1}
+%if %{defined with_ldap}
 %files ldap
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/ldap.so
@@ -2097,19 +2193,25 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/mcrypt.so
 
+%if %{defined with_mhash}
 %files mhash
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/mhash.so
+%endif
 
+%if %{defined with_ming}
 %files ming
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/ming.so
+%endif
 
+%if %{defined with_mnogosearch}
 %files mnogosearch
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/mnogosearch.so
+%endif
 
-%if %{?_without_msession:0}%{!?_without_msession:1}
+%if %{defined with_msession}
 %files msession
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/msession.so
@@ -2119,25 +2221,25 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/mysql.so
 
-%if %{?_with_oci8:1}%{!?_with_oci8:0}
+%if %{defined with_oci8}
 %files oci8
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/oci8.so
 %endif
 
-%if %{?_without_odbc:0}%{!?_without_odbc:1}
+%if %{defined with_odbc}
 %files odbc
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/odbc.so
 %endif
 
-%if %{?_without_openssl:0}%{!?_without_openssl:1}
+%if %{defined with_openssl}
 %files openssl
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/openssl.so
 %endif
 
-%if %{?_with_oracle:1}%{!?_with_oracle:0}
+%if %{defined with_oracle}
 %files oracle
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/oracle.so
@@ -2147,37 +2249,41 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/overload.so
 
-%if %{?_with_pcntl:1}%{!?_with_pcntl:0}
+%if %{defined with_pcntl}
 %files pcntl
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/pcntl.so
 %endif
 
-%if %{?_without_pcre:0}%{!?_without_pcre:1}
+%if %{defined with_pcre}
 %files pcre
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/pcre.so
 %endif
 
-%if %{?_without_pdf:0}%{!?_without_pdf:1}
+%if %{defined with_pdf}
 %files pdf
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/pdf.so
 %endif
 
+%if %{defined with_pgsql}
 %files pgsql
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/pgsql.so
+%endif
 
 %files posix
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/posix.so
 
+%if %{defined with_pspell}
 %files pspell
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/pspell.so
+%endif
 
-%if %{?_without_recode:0}%{!?_without_recode:1}
+%if %{defined with_recode}
 %files recode
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/recode.so
@@ -2192,7 +2298,7 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/shmop.so
 
-%if %{?_without_snmp:0}%{!?_without_snmp:1}
+%if %{defined with_snmp}
 %files snmp
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/snmp.so
@@ -2202,7 +2308,7 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/sockets.so
 
-%if %{?_without_sybase_ct:0}%{!?_without_sybase_ct:1}
+%if %{defined with_sybase_ct}
 %files sybase-ct
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/sybase_ct.so
@@ -2216,25 +2322,25 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/sysvshm.so
 
-%if %{?_without_wddx:0}%{!?_without_wddx:1}
+%if %{defined with_wddx}
 %files wddx
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/wddx.so
 %endif
 
-%if %{?_without_xml:0}%{!?_without_xml:1}
+%if %{defined with_xml}
 %files xml
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/xml.so
 %endif
 
-%if %{?_without_xmlrpc:0}%{!?_without_xmlrpc:1}
+%if %{defined with_xmlrpc}
 %files xmlrpc
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/xmlrpc.so
 %endif
 
-%if %{?_without_xslt:0}%{!?_without_xslt:1}
+%if %{defined with_xslt}
 %files xslt
 %defattr(644,root,root,755)
 %attr(755,root,root) %{extensionsdir}/xslt.so
This page took 0.104775 seconds and 4 git commands to generate.