%define magic_mime /usr/share/misc/magic.mime
%endif
-%define rel 28
+%define rel 35
%define orgname php
%define ver_suffix 52
%define php_suffix %{!?with_default_php:%{ver_suffix}}
Patch78: php-bug-68486.patch
Patch79: libevent-2.1.patch
Patch80: mysqli-err.patch
+Patch81: openssl.patch
# CENTALT patches
# Backport from 5.3.6
Patch311: php-5.3.6-bug-47435.patch
Obsoletes: php70-devel
Obsoletes: php71-devel
Obsoletes: php72-devel
+Obsoletes: php73-devel
%description devel
The php-devel package lets you compile dynamic extensions to PHP.
%patch78 -p1
%patch79 -p1
%patch80 -p1
+%patch81 -p1
# Bugfix backport from 5.3.6
%patch311 -p1 -b .bug-47435
sh -xe %{_sourcedir}/skip-tests.sh
+# make colliding symbol static
+%{__sed} -i -e 's/^char \*yytext/static &/' Zend/zend_{ini,language}_scanner.c
+
%build
API=$(awk '/#define PHP_API_VERSION/{print $3}' main/php.h)
if [ $API != %{php_api_version} ]; then
esac
%configure \
+ CFLAGS="%{rpmcflags} -DOPENSSL_NO_SSL2=1 -DOPENSSL_NO_SSL3=1" \
FORCE_APACHE_VERSION="${apache_ver}" \
EXTRA_LDFLAGS="%{rpmldflags}" \
$sapi_args \
--with-system-tzdata \
--%{!?debug:dis}%{?debug:en}able-debug \
%{?with_zts:--enable-maintainer-zts} \
- %{?with_suhosin:--enable-suhosin} \
%{?with_zend_multibyte:--enable-zend-multibyte} \
--enable-inline-optimization \
--enable-bcmath=shared \