]> git.pld-linux.org Git - packages/rpm-build-macros.git/commitdiff
- need php debug and thread-safety pair match between php and php modules/extensions
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 27 Oct 2005 14:19:56 +0000 (14:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.248

rpm.macros

index f821619d0943ad4d4a5a5235b35700044b7d7e5d..0c7191b25eb442ca1dc20eac80e22da364582e6a 100644 (file)
@@ -480,18 +480,25 @@ fi \
 # directory where php includes are installed on system.
 %__php_includedir              /usr/include/php
 %php_api_version               %(awk '/#define PHP_API_VERSION/{print $3}' %{__php_includedir}/main/php.h 2>/dev/null || echo ERROR)
+%php_debug                             %(awk '/#define ZEND_DEBUG/{print $3}' %{__php_includedir}/main/php_config.h 2>/dev/null || echo ERROR)
 %zend_module_api               %(awk '/#define ZEND_MODULE_API_NO/{print $3}' %{__php_includedir}/Zend/zend_modules.h 2>/dev/null || echo ERROR)
 %zend_extension_api            %(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' %{__php_includedir}/Zend/zend_extensions.h 2>/dev/null || echo ERROR)
+%zend_zts                              %(awk '/#define ZTS/{print $3}' %{__php_includedir}/main/php_config.h 2>/dev/null || echo ERROR)
 
 # helper macro
 %__php_api_requires() Requires: php(%{expand:%1}) = %{expand:%{%{!?2:%{1}}%{?2}}}
 
 # macros for public use
 # for php extensions (php-pecl)
-%requires_php_extension %{__php_api_requires modules_api php_api_version}
+%requires_php_extension %{__php_api_requires modules_api php_api_version} \
+%{__php_api_requires debug php_debug} \
+%{__php_api_requires thread-safety zend_zts}
+
 # for zend extensions
 %requires_zend_extension %{__php_api_requires zend_module_api} \
-%{__php_api_requires zend_extension_api}
+%{__php_api_requires zend_extension_api} \
+%{__php_api_requires debug php_debug} \
+%{__php_api_requires thread-safety zend_zts}
 
 # Python specific macro definitions.
 # python main version
This page took 0.041683 seconds and 4 git commands to generate.