%bcond_without apache2 # disable building apache 2.x module
%bcond_without fcgi # disable building FCGI SAPI
%bcond_without zts # disable experimental-zts
+%bcond_without tests
%bcond_with versioning # build with experimental versioning (to load php4/php5 into same apache)
%define apxs1 /usr/sbin/apxs1
%undefine with_filter
%endif
-%define _rel 2
+%define _rel 3
Summary: PHP: Hypertext Preprocessor
Summary(fr.UTF-8): Le langage de script embarque-HTML PHP
Summary(pl.UTF-8): Język skryptowy PHP
cp -af php_config.h.cli main/php_config.h
%{__make} sapi/cli/php -f Makefile.cli LDFLAGS=-lpthread
-%check
+%if %{with tests}
# Run tests, using the CLI SAPI
export NO_INTERACTION=1 REPORT_EXIT_STATUS=1 MALLOC_CHECK_=2
unset TZ LANG LC_ALL || :
%{__make} test
unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
+%endif
%install
rm -rf $RPM_BUILD_ROOT