Author: glen                         Date: Tue May  2 21:29:56 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- api macros
- drop -devel dep on base once again
- rel 2

---- Files affected:
SPECS:
   php-pecl-PDO.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: SPECS/php-pecl-PDO.spec
diff -u SPECS/php-pecl-PDO.spec:1.14 SPECS/php-pecl-PDO.spec:1.15
--- SPECS/php-pecl-PDO.spec:1.14        Tue May  2 22:37:31 2006
+++ SPECS/php-pecl-PDO.spec     Tue May  2 23:29:51 2006
@@ -3,11 +3,14 @@
 %define                _status         stable
 %define                _sysconfdir     /etc/php
 %define                extensionsdir   %(php-config --extension-dir 
2>/dev/null)
+
+# must be in sync with source. extra check ensuring that it is so is done in 
%%build
+%define                php_pdo_api_version     20060409
 Summary:       %{_modname} - PHP Data Objects Interface
 Summary(pl):   %{_modname} - PHP-owy Interfejs Obiektów Danych
 Name:          php-pecl-%{_modname}
 Version:       1.0.3
-Release:       1
+Release:       2
 License:       PHP
 Group:         Development/Languages/PHP
 Source0:       http://pecl.php.net/get/%{_modname}-%{version}.tgz
@@ -17,6 +20,7 @@
 BuildRequires: rpmbuild(macros) >= 1.254
 %{?requires_php_extension}
 Requires:      %{_sysconfdir}/conf.d
+Provides:      php(PDO_API) = %{php_pdo_api_version}
 Obsoletes:     php-pear-%{_modname}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -41,8 +45,8 @@
 Summary:       Header files for PDO extension
 Summary(pl):   Pliki nagłówkowe rozszerzenia PDO
 Group:         Development/Libraries
+# does not need base!
 Requires:      php-devel
-Requires:      %{name} = %{version}-%{release}
 
 %description devel
 Header files for PDO extension.
@@ -55,6 +59,11 @@
 
 %build
 cd %{_modname}-%{version}
+API=$(awk '/#define PDO_DRIVER_API/{print $3}' php_pdo_driver.h)
+if [ $API != %{php_pdo_api_version} ]; then
+       echo "Set %%define php_pdo_api_version to $API and rerun."
+       exit 1
+fi
 phpize
 %configure
 %{__make}
@@ -99,6 +108,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2006/05/02 21:29:51  glen
+- api macros
+- drop -devel dep on base once again
+- rel 2
+
 Revision 1.14  2006/05/02 20:37:31  blues
 - scrict deps for devel
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/php-pecl-PDO.spec?r1=1.14&r2=1.15&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to