-# TODO
-# - NOTE: mysqlnd does not support ssl or compression (see FAQ at http://dev.mysql.com/downloads/connector/php-mysqlnd/)
+# NOTE: mysqlnd does not support ssl or compression (see FAQ at http://dev.mysql.com/downloads/connector/php-mysqlnd/)
+# TODO:
# - wddx: restore session support (not compiled in due DL extension check)
# - deal with modules removed from php and not moved to PECL, still not obsoleted anywhere
# - removed from php 5.0 (currently in php4):
-# db, hyperwave, java, mcal, overload, qtdom
+# db [pecl-svn], hyperwave [pecl-svn], java [pecl-svn], mcal [pecl-svn], overload [???], qtdom [pecl-svn]
# - removed from php 5.1:
-# cpdf, fam, oracle
+# oracle [pecl-svn]
# - removed from php 5.2:
-# filepro, hw
+# filepro [pecl-svn], hwapi [pecl-svn]
# - removed from php 5.3:
-# dbase, mime_magic, ming, ncurses, sybase
+# ming [pecl-svn or ming.spec?]
# - make additional headers and checking added by mail patch configurable
# - modularize standard (output from pure php -m)?
# - lib64 patch obsolete by $PHP_LIBDIR ?
# Reflection
#
# Conditional build:
-%bcond_with fdf # with FDF (PDF forms) module (BR: proprietary lib)
%bcond_with interbase_inst # use InterBase install., not Firebird (BR: proprietary libs)
%bcond_with oci8 # with Oracle oci8 extension module (BR: proprietary libs)
+%bcond_with instantclient # build Oracle oci8 extension module against oracle-instantclient package
%bcond_with system_gd # with system gd (we prefer internal since it enables few more features)
%bcond_with litespeed # build litespeed module
%bcond_without curl # without CURL extension module
%bcond_without mm # without mm support for session storage
%bcond_without mssql # without MS SQL extension module
# don't turn it on by default; see TODO item for mysqlnd in this spec
-%bcond_with mysqlnd # without mysqlnd support in mysql related extensions
+%bcond_with mysqlnd # with mysqlnd support in mysql related extensions
%bcond_without mysqli # without mysqli support (Requires mysql > 4.1)
%bcond_without odbc # without ODBC extension module
%bcond_without openssl # without OpenSSL support and OpenSSL extension (module)
%bcond_without apache1 # disable building Apache 1.3.x SAPI
%bcond_without apache2 # disable building Apache 2.x SAPI
%bcond_without zts # disable Zend Thread Safety
-%bcond_without cgi # disable CGI/FCGI SAPI
+%bcond_without cgi # disable CGI/FCGI SAPI
%bcond_without fpm # disable FPM
%bcond_without suhosin # with suhosin patch
%bcond_with tests # default off; test process very often hangs on builders, approx run time 45m; perform "make test"
%define apxs1 /usr/sbin/apxs1
%define apxs2 /usr/sbin/apxs
+%define litespeed_version 5.4
# disable all sapis
%if %{with gcov}
%undefine with_filter
%endif
-%define rel 5
+%define rel 9
Summary: PHP: Hypertext Preprocessor
Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
Summary(pl.UTF-8): Język skryptowy PHP
Source12: %{name}-branch.sh
Source13: dep-tests.sh
Source14: skip-tests.sh
+Source15: http://litespeedtech.com/packages/lsapi/%{name}-litespeed-%{litespeed_version}.tgz
+# Source15-md5: 8738d9e3a232c2a0518c514802c66d73
Patch0: %{name}-shared.patch
Patch1: %{name}-pldlogo.patch
Patch2: %{name}-mail.patch
Patch56: bug-51901.patch
Patch57: bug-52448.patch
Patch58: bug-52533.patch
+Patch59: %{name}-systzdata.patch
+Patch60: %{name}-oracle-instantclient.patch
+Patch61: %{name}-krb5-ac.patch
URL: http://www.php.net/
%{?with_interbase:%{!?with_interbase_inst:BuildRequires: Firebird-devel >= 1.0.2.908-2}}
%{?with_pspell:BuildRequires: aspell-devel >= 2:0.50.0}
BuildRequires: db-devel >= 4.0
BuildRequires: elfutils-devel
#BuildRequires: fcgi-devel
-%{?with_fdf:BuildRequires: fdftk-devel}
#BuildRequires: flex
BuildRequires: pkgconfig
BuildRequires: sed >= 4.0
%endif
BuildRequires: gdbm-devel
BuildRequires: gmp-devel
-%{?with_imap:BuildRequires: imap-devel >= 1:2001-0.BETA.200107022325.2}
+%{?with_imap:BuildRequires: imap-devel >= 1:2007e-2}
BuildRequires: libicu-devel
BuildRequires: libjpeg-devel
BuildRequires: libltdl-devel >= 1.4
%{?with_gcov:BuildRequires: lcov}
%{?with_snmp:%{?with_tests:BuildRequires: mibs-net-snmp}}
%{?with_snmp:BuildRequires: net-snmp-devel >= 5.0.7}
+%{?with_instantclient:BuildRequires: oracle-instantclient-devel}
BuildRequires: pam-devel
%{?with_pcre:BuildRequires: pcre-devel >= 6.6}
BuildRequires: pkgconfig
%package fpm
Summary: PHP FastCGI Process Manager
+Summary(pl.UTF-8): PHP FastCGI Process Manager - zarządca procesów FastCGI
Group: Development/Languages/PHP
URL: http://www.php-fpm.org/
Requires(post,preun): /sbin/chkconfig
%description fpm
PHP FastCGI Process Manager.
+%description fpm -l pl.UTF-8
+PHP FastCGI Process Manager - zarządca procesów FastCGI.
+
%package common
-Summary: Common files needed by both Apache modules and CGI/CLI SAPI-s
+Summary: Common files needed by both Apache modules and CGI/CLI SAPIs
Summary(pl.UTF-8): Wspólne pliki dla modułu Apache'a i programu CGI
Summary(ru.UTF-8): Разделяемые библиотеки для PHP
Summary(uk.UTF-8): Бібліотеки спільного використання для PHP
Requires: glibc >= 6:2.3.5
Requires: php-dirs
Requires: rpm-whiteout >= 1.28
+Requires: tzdata
Provides: php(date)
Provides: php(ereg)
Provides: php(hash)
Conflicts: rpm < 4.4.2-0.2
%description common
-Common files needed by both Apache modules and CGI/CLI SAPI-s.
+Common files needed by both Apache modules and CGI/CLI SAPIs.
%description common -l pl.UTF-8
Wspólne pliki dla modułu Apache'a i programu CGI.
%description exif -l pl.UTF-8
Moduł PHP dodający obsługę znaczników EXIF w plikach obrazków.
-%package fdf
-Summary: FDF extension module for PHP
-Summary(pl.UTF-8): Moduł FDF dla PHP
-Group: Libraries
-URL: http://www.php.net/manual/en/book.fdf.php
-Requires: %{name}-common = %{epoch}:%{version}-%{release}
-Provides: php(fdf)
-
-%description fdf
-This PHP module adds support for PDF Forms through Adobe FDFTK
-library.
-
-%description fdf -l pl.UTF-8
-Moduł PHP dodający obsługę formularzy PDF poprzez bibliotekę Adobe
-FDFTK.
-
%package fileinfo
Summary: libmagic bindings
+Summary(pl.UTF-8): Wiązania do libmagic
Group: Libraries
URL: http://www.php.net/manual/en/book.fileinfo.php
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
Provides: php(fileinfo)
+Obsoletes: php-mime_magic
Obsoletes: php-pecl-fileinfo
%description fileinfo
Additionally it can also be used to retrieve the MIME type for a
particular file and for text files proper language encoding.
+%description fileinfo -l pl.UTF-8
+To rozszerzenie pozwala na uzyskanie informacji dotyczących większości
+plików. Informacje mogą zawierać wymiary, jakość, długość itp.
+
+Ponadto rozszerzenie można wykorzystać do odczytania typu MIME danego
+pliku oraz kodowania plików tekstowych.
+
%package filter
Summary: Extension for safely dealing with input parameters
Summary(pl.UTF-8): Rozszerzenie do bezpiecznej obsługi danych wejściowych
URL: http://www.php.net/manual/en/book.imap.php
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-pcre = %{epoch}:%{version}-%{release}
+Requires: imap-lib >= 1:2007e-2
Provides: php(imap)
%description imap
%package intl
Summary: Internationalization extension (ICU wrapper)
-Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (wrapper ICU)
+Summary(pl.UTF-8): Rozszerzenie do internacjonalizacji (interfejs do ICU)
Group: Libraries
URL: http://www.php.net/intl
Requires: %{name}-common = %{epoch}:%{version}-%{release}
%description intl -l pl.UTF-8
Rozszerzenie do internacjonalizacji (dalej nazywane Intl) jest
-wrapperem biblioteki ICU, pozwalającym programistom PHP na wykonywanie
-w skryptach porównań zdgodnych z UCA oraz formatowań daty/czasu/walut.
+interfejsem do biblioteki ICU, pozwalającym programistom PHP na
+wykonywanie w skryptach porównań zgodnych z UCA oraz formatowania
+daty/czasu/walut.
%package json
Summary: PHP C extension for JSON serialization
Moduł PHP dodający obsługę baz danych MS SQL poprzez bibliotekę
FreeTDS.
-%package mysqlnd
-Summary: MySQL Native Client Driver for PHP
-Group: Libraries
-URL: http://www.php.net/manual/en/book.mysqlnd.php
-Requires: %{name}-common = %{epoch}:%{version}-%{release}
-Provides: php(mysqlnd)
-
-%description mysqlnd
-MySQL Native Driver is a replacement for the MySQL Client Library
-(libmysql).
-
-Because MySQL Native Driver is written as a PHP extension, it is
-tightly coupled to the workings of PHP. This leads to gains in
-efficiency, especially when it comes to memory usage, as the driver
-uses the PHP memory management system. It also supports the PHP memory
-limit. Using MySQL Native Driver leads to comparable or better
-performance than using MySQL Client Library, it always ensures the
-most efficient use of memory. One example of the memory efficiency is
-the fact that when using the MySQL Client Library, each row is stored
-in memory twice, whereas with the MySQL Native Driver each row is only
-stored once in memory.
-
%package mysql
Summary: MySQL database module for PHP
Summary(pl.UTF-8): Moduł bazy danych MySQL dla PHP
Różnicą między nim a modułem mysql jest dostęp do funkcjonalności
MySQL w wersji 4.1 i nowszych.
+%package mysqlnd
+Summary: MySQL Native Client Driver for PHP
+Summary(pl.UTF-8): Sterownik natywnego klienta MySQL dla PHP
+Group: Libraries
+URL: http://www.php.net/manual/en/book.mysqlnd.php
+Requires: %{name}-common = %{epoch}:%{version}-%{release}
+Provides: php(mysqlnd)
+
+%description mysqlnd
+MySQL Native Driver is a replacement for the MySQL Client Library
+(libmysql).
+
+Because MySQL Native Driver is written as a PHP extension, it is
+tightly coupled to the workings of PHP. This leads to gains in
+efficiency, especially when it comes to memory usage, as the driver
+uses the PHP memory management system. It also supports the PHP memory
+limit. Using MySQL Native Driver leads to comparable or better
+performance than using MySQL Client Library, it always ensures the
+most efficient use of memory. One example of the memory efficiency is
+the fact that when using the MySQL Client Library, each row is stored
+in memory twice, whereas with the MySQL Native Driver each row is only
+stored once in memory.
+
+%description mysqlnd -l pl.UTF-8
+MySQL Native Driver (natywny sterownik MySQL) to zamiennik biblioteki
+klienckiej MySQL (libmysql).
+
+Ponieważ sterownik natywny jest napisany jako rozszerzenie PHP, jest
+ściśle powiązany z pracą PHP. Daje to większą wydajność, zwłaszcza
+jeśli chodzi o wykorzystanie pamięci, jako że sterownik wykorzystuje
+system zarządzania pamięcią PHP; obsługuje także ograniczenie pamięci
+z PHP. Niniejszy sterownik ma wydajność porównywalną lub lepszą niż
+biblioteka kliencka MySQL, a pamięć zawsze wykorzystuje efektywniej.
+Przykładem tego może być fakt, że w przypadku biblioteki klienckiej
+każdy wiersz jest przechowywany w pamięci dwukrotnie, natomiast przy
+tym sterowniku - tylko raz.
+
%package oci8
Summary: Oracle 8+ database module for PHP
Summary(pl.UTF-8): Moduł bazy danych Oracle 8+ dla PHP
%package spl
Summary: Standard PHP Library module for PHP
-Summary(pl.UTF-8): Moduł SPL dla PHP
+Summary(pl.UTF-8): Moduł biblioteki standardowej (Standard PHP Library) dla PHP
Group: Libraries
URL: http://php.net/manual/en/book.spl.php
Requires: %{name}-common = %{epoch}:%{version}-%{release}
PHP Library support.
%description spl -l pl.UTF-8
-Moduł PHP dodający obsługę gniazdek.
+Moduł PHP z biblioteką standardową PHP (SPL - Standard PHP Library).
%package sqlite
Summary: SQLite extension module for PHP
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Provides: php(sybase-ct)
Obsoletes: php-sybase
-Conflicts: php-sybase
%description sybase-ct
This is a dynamic shared object (DSO) for PHP that will add Sybase and
%patch56 -p0
%patch57 -p1
%patch58 -p1
+%patch59 -p1
+%patch60 -p1
+%patch61 -p1
%if "%{pld_release}" != "ac"
sed -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
# conflict seems to be resolved by recode patches
-rm -f ext/recode/config9.m4
+%{__rm} ext/recode/config9.m4
# remove all bundled libraries not to link with them accidentally
-#rm -rf ext/sqlite/libsqlite
-rm -rf ext/sqlite3/libsqlite
-#rm -rf ext/bcmath/libbcmath
-#rm -rf ext/date/lib
-#rm -rf ext/fileinfo/libmagic
-#rm -rf ext/dba/libcdb
-#rm -rf ext/dba/libflatfile
-#rm -rf ext/dba/libinifile
-#rm -rf ext/gd/libgd
-#rm -rf ext/mbstring/libmbfl
-#rm -rf ext/mbstring/oniguruma
-rm -rf ext/pcre/pcrelib
-rm -rf ext/pdo_sqlite/libsqlite
-#rm -rf ext/soap/interop
-rm -r ext/xmlrpc/libxmlrpc
-#rm -rf ext/zip/lib
+#%{__rm} -r ext/sqlite/libsqlite
+%{__rm} -r ext/sqlite3/libsqlite
+#%{__rm} -r ext/bcmath/libbcmath
+#%{__rm} -r ext/date/lib
+#%{__rm} -r ext/fileinfo/libmagic
+#%{__rm} -r ext/dba/libcdb
+#%{__rm} -r ext/dba/libflatfile
+#%{__rm} -r ext/dba/libinifile
+#%{__rm} -r ext/gd/libgd
+#%{__rm} -r ext/mbstring/libmbfl
+#%{__rm} -r ext/mbstring/oniguruma
+%{__rm} -r ext/pcre/pcrelib
+#%{__rm} -r ext/soap/interop
+%{__rm} -r ext/xmlrpc/libxmlrpc
+#%{__rm} -r ext/zip/lib
cp -af Zend/LICENSE{,.Zend}
install -p %{SOURCE13} dep-tests.sh
mv sapi/cli/tests/022.phpt{,.broken}
# php-5.3.3/ext/standard/tests/file/statpage.phpt
-rm ext/standard/tests/file/statpage.phpt
+%{__rm} ext/standard/tests/file/statpage.phpt
# idiotic test, it will fail if somebody else makes space on disk or if disk
# space is not yet allocated (xfs). report upstream to advice bogus test is
# probably pointless.
-rm ext/standard/tests/file/disk_free_space_basic.phpt
+%{__rm} ext/standard/tests/file/disk_free_space_basic.phpt
sh -xe %{_sourcedir}/skip-tests.sh
--with-config-file-path=%{_sysconfdir} \
--with-config-file-scan-dir=%{_sysconfdir}/conf.d \
--with-exec-dir=%{_bindir} \
+ --with-system-tzdata \
--%{!?debug:dis}%{?debug:en}able-debug \
%{?with_zts:--enable-maintainer-zts} \
--enable-inline-optimization \
%endif
--with-mysql-sock=/var/lib/mysql/mysql.sock \
--with-pdo-mysql=shared%{?with_mysqlnd:,mysqlnd} \
- %{?with_oci8:--with-pdo-oci=shared} \
+ %{?with_oci8:--with-pdo-oci=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
%{?with_odbc:--with-pdo-odbc=shared,unixODBC,/usr} \
%{?with_pgsql:--with-pdo-pgsql=shared} \
%{?with_sqlite:--with-pdo-sqlite=shared,/usr} \
--with-bz2=shared \
%{__with_without curl curl shared} \
--with-db4 \
- %{?with_fdf:--with-fdftk=shared} \
--with-iconv=shared \
--with-freetype-dir=shared \
--with-gettext=shared \
%{?with_mysqlnd:--with-mysqlnd=shared} \
--with-mysql=shared%{?with_mysqlnd:,mysqlnd} \
%{?with_mysqli:--with-mysqli=shared%{?with_mysqlnd:,mysqlnd}} \
- %{?with_oci8:--with-oci8=shared} \
+ %{?with_oci8:--with-oci8=shared%{?with_instantclient:,instantclient,%{_libdir}}} \
%{?with_openssl:--with-openssl=shared} \
--with-kerberos \
%{__with_without pcre pcre-regex /usr} \
sed -i -e "s,@PHP_INSTALLED_SAPIS@,$sapis," "scripts/php-config.in"
# must make libphp_common first, so modules can link against it.
+cp -af php_config.h.cli main/php_config.h
+cp -af Makefile.cli Makefile
%{__make} libphp_common.la
%{__make} build-modules
%endif
%if %{with litespeed}
+gzip -dc %{SOURCE15} | tar xf - -C sapi/
%{__make} -f Makefile.litespeed
%endif
$RPM_BUILD_ROOT/etc/{apache/conf.d,httpd/conf.d} \
$RPM_BUILD_ROOT%{_mandir}/man1 \
-# install the Apache modules' files
-%{__make} install-headers install-build install-modules install-programs \
+cp -af php_config.h.cli main/php_config.h
+cp -af Makefile.cli Makefile
+%{__make} install \
INSTALL_ROOT=$RPM_BUILD_ROOT
+# make link relative
+ln -sfn phar.phar $RPM_BUILD_ROOT%{_bindir}/phar
+
# install Apache1 DSO module
%if %{with apache1}
libtool --silent --mode=install install sapi/apache/libphp5.la $RPM_BUILD_ROOT%{_libdir}/apache1
%endif
ln -snf %{_bindir}/shtool $RPM_BUILD_ROOT%{_libdir}/php/build
-# as a result of ext/pcre/pcrelib removal in %%prep, ext/pcre/php_pcre.h
-# isn't installed by install-headers make target, we do it manually here.
-# this header file is required by e.g. filter PECL extension
-install -D ext/pcre/php_pcre.h $RPM_BUILD_ROOT%{_includedir}/php/ext/pcre/php_pcre.h
# for php-pecl-mailparse
install -d $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
cp -a ext/mbstring/libmbfl/mbfl/*.h $RPM_BUILD_ROOT%{_includedir}/php/ext/mbstring
%clean
rm -rf $RPM_BUILD_ROOT
-%post common
-# PHP 5.3 requires timezone being setup, try setup it from tzdata
-if [ -f /etc/sysconfig/timezone ]; then
- TIMEZONE=
- . /etc/sysconfig/timezone
- if [ "$TIMEZONE" ]; then
- %{__sed} -i -e "s,^;date.timezone = .*,date.timezone = $TIMEZONE," /etc/php/php.ini
- fi
-fi
-
%post -n apache1-mod_php
if [ "$1" = "1" ]; then
%service -q apache restart
%userremove http
fi
-%post common -p /sbin/ldconfig
-%postun common -p /sbin/ldconfig
+%post common
+# PHP 5.3 requires timezone being setup, try setup it from tzdata
+if ! grep -q '^date.timezone[[:space:]]*=' %{_sysconfdir}/php.ini && [ -f /etc/sysconfig/timezone ]; then
+ TIMEZONE=
+ . /etc/sysconfig/timezone
+ if [ "$TIMEZONE" ]; then
+ %{__sed} -i -e "s,^;date.timezone[[:space:]]*=.*,date.timezone = $TIMEZONE," %{_sysconfdir}/php.ini
+ fi
+fi
%posttrans common
# minimizing apache restarts logics. we restart webserver:
%extension_scripts dba
%extension_scripts dom
%extension_scripts exif
-%extension_scripts fdf
%extension_scripts fileinfo
%extension_scripts filter
%extension_scripts ftp
%extension_scripts mbstring
%extension_scripts mcrypt
%extension_scripts mssql
-%extension_scripts mysqlnd
%extension_scripts mysql
%extension_scripts mysqli
+%extension_scripts mysqlnd
%extension_scripts oci8
%extension_scripts odbc
%extension_scripts openssl
%triggerun exif -- %{name}-exif < 4:5.0.4-9.1
%{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*exif\.so/d' %{_sysconfdir}/php.ini
-%triggerun fdf -- %{name}-fdf < 4:5.0.4-9.1
-%{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*fdf\.so/d' %{_sysconfdir}/php.ini
-
%triggerun ftp -- %{name}-ftp < 4:5.0.4-9.1
%{__sed} -i -e '/^extension[[:space:]]*=[[:space:]]*ftp\.so/d' %{_sysconfdir}/php.ini
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/dom.ini
%attr(755,root,root) %{php_extensiondir}/dom.so
-%if %{with fdf}
-%files fdf
+%files exif
%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/fdf.ini
-%attr(755,root,root) %{php_extensiondir}/fdf.so
-%endif
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
+%attr(755,root,root) %{php_extensiondir}/exif.so
%files fileinfo
%defattr(644,root,root,755)
%attr(755,root,root) %{php_extensiondir}/filter.so
%endif
-%files exif
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/exif.ini
-%attr(755,root,root) %{php_extensiondir}/exif.so
-
%files ftp
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/ftp.ini
%attr(755,root,root) %{php_extensiondir}/mssql.so
%endif
-%if %{with mysqlnd}
-%files mysqlnd
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
-%attr(755,root,root) %{php_extensiondir}/mysqlnd.so
-%endif
-
%files mysql
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/mysql.ini
%attr(755,root,root) %{php_extensiondir}/mysqli.so
%endif
+%if %{with mysqlnd}
+%files mysqlnd
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/MySQLND.ini
+%attr(755,root,root) %{php_extensiondir}/mysqlnd.so
+%endif
+
%if %{with oci8}
%files oci8
%defattr(644,root,root,755)
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/phar.ini
%attr(755,root,root) %{php_extensiondir}/phar.so
+%attr(755,root,root) %{_bindir}/phar
+%attr(755,root,root) %{_bindir}/phar.phar
%endif
%files posix
%attr(755,root,root) %{php_extensiondir}/recode.so
%endif
-%files simplexml
-%defattr(644,root,root,755)
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
-%attr(755,root,root) %{php_extensiondir}/simplexml.so
-
%files session
%defattr(644,root,root,755)
%doc ext/session/mod_files.sh
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/shmop.ini
%attr(755,root,root) %{php_extensiondir}/shmop.so
+%files simplexml
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/simplexml.ini
+%attr(755,root,root) %{php_extensiondir}/simplexml.so
+
%if %{with snmp}
%files snmp
%defattr(644,root,root,755)