SPECS: php.spec - add API versions for php-common package (modules...
glen
glen at pld-linux.org
Tue Sep 13 19:55:13 CEST 2005
Author: glen Date: Tue Sep 13 17:55:13 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add API versions for php-common package (modules_api, zend_module_api, zend_extension_api)
---- Files affected:
SPECS:
php.spec (1.472 -> 1.473)
---- Diffs:
================================================================
Index: SPECS/php.spec
diff -u SPECS/php.spec:1.472 SPECS/php.spec:1.473
--- SPECS/php.spec:1.472 Mon Sep 12 23:19:55 2005
+++ SPECS/php.spec Tue Sep 13 19:55:07 2005
@@ -78,7 +78,7 @@
Summary(uk): PHP ÷ĹŇÓŚ§ 5 - ÍĎ×Á ĐŇĹĐŇĎĂĹÓŐ×ÁÎÎŃ HTML-ĆÁĘĚŚ×, ×ÉËĎÎŐ×ÁÎÁ ÎÁ ÓĹŇ×ĹŇŚ
Name: php
Version: 5.0.5
-Release: 3%{?with_hardening:hardened}
+Release: 3.1%{?with_hardening:hardened}
Epoch: 4
Group: Libraries
License: PHP
@@ -207,6 +207,12 @@
%define _phpsharedir %{_datadir}/php
%define extensionsdir %{_libdir}/php
+# redefine to use versions from current source
+%define php_sourcedir %{_builddir}/%{name}-%{version}
+%define php_api_version %(awk '/#define PHP_API_VERSION/{print $3}' %{php_sourcedir}/main/php.h)
+%define zend_module_api %(awk '/#define ZEND_MODULE_API_NO/{print $3}' %{php_sourcedir}/Zend/zend_modules.h)
+%define zend_extension_api %(awk '/#define ZEND_EXTENSION_API_NO/{print $3}' %{php_sourcedir}/Zend/zend_extensions.h)
+
%description
PHP is an HTML-embedded scripting language. PHP attempts to make it
easy for developers to write dynamically generated web pages. PHP also
@@ -365,6 +371,9 @@
Requires: sed >= 4.0
Provides: %{name}-session = %{epoch}:%{version}-%{release}
Provides: php-common(apache-modules-api) = %{apache_modules_api}
+Provides: php(modules_api) = %{php_api_version}
+Provides: php(zend_module_api) = %{zend_module_api}
+Provides: php(zend_extension_api) = %{zend_extension_api}
Obsoletes: php-session < 3:4.2.1-2
# for the posttrans scriptlet, conflicts because in vserver enviroinment rpm package is not installed.
Conflicts: rpm < 4.4.2-0.2
@@ -1433,8 +1442,10 @@
Moduł PHP umożliwiający używanie kompresji zlib.
%prep
+# IMPORTANT: if you change '%setup', you should change %php_sourcedir macro earlier in this file
%setup -q
# this patch is broken by design, breaks --enable-versioning for example
+# update: --enable-version is broken by itself, it disables dynamic modules.
%patch0 -p1
%patch1 -p1
%patch2 -p1
@@ -2910,6 +2921,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.473 2005/09/13 17:55:07 glen
+- add API versions for php-common package (modules_api, zend_module_api, zend_extension_api)
+
Revision 1.472 2005/09/12 21:19:55 glen
- add /usr/share/php to php-common package for apps like jpgraph and phplib, rel 3; STBR
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/php.spec?r1=1.472&r2=1.473&f=u
More information about the pld-cvs-commit
mailing list